[2026-07-28 18:46:46] local.ERROR: include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php:576)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'include(/home/j...', '/home/junctionf...', 576)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'include(/home/j...', '/home/junctionf...', 576)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): include('/home/junctionf...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(427): Composer\\Autoload\\{closure}('/home/junctionf...')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(880): Composer\\Autoload\\ClassLoader->loadClass('App\\\\Providers\\\\R...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(814): Illuminate\\Foundation\\Application->resolveProvider('App\\\\Providers\\\\R...')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register('App\\\\Providers\\\\R...')
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(794): Illuminate\\Foundation\\ProviderRepository->load(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#14 {main}
"} 
[2026-07-28 18:46:52] local.ERROR: include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php:576)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'include(/home/j...', '/home/junctionf...', 576)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'include(/home/j...', '/home/junctionf...', 576)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): include('/home/junctionf...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(427): Composer\\Autoload\\{closure}('/home/junctionf...')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(880): Composer\\Autoload\\ClassLoader->loadClass('App\\\\Providers\\\\R...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(814): Illuminate\\Foundation\\Application->resolveProvider('App\\\\Providers\\\\R...')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register('App\\\\Providers\\\\R...')
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(794): Illuminate\\Foundation\\ProviderRepository->load(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#14 {main}
"} 
[2026-07-28 18:46:52] local.ERROR: include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php:576)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'include(/home/j...', '/home/junctionf...', 576)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'include(/home/j...', '/home/junctionf...', 576)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): include('/home/junctionf...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(427): Composer\\Autoload\\{closure}('/home/junctionf...')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(880): Composer\\Autoload\\ClassLoader->loadClass('App\\\\Providers\\\\R...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(814): Illuminate\\Foundation\\Application->resolveProvider('App\\\\Providers\\\\R...')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register('App\\\\Providers\\\\R...')
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(794): Illuminate\\Foundation\\ProviderRepository->load(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#14 {main}
"} 
[2026-07-28 18:46:58] local.ERROR: include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): include(/home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/../../app/Providers/RuntimeServiceProvider.php): Failed to open stream: No such file or directory at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php:576)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'include(/home/j...', '/home/junctionf...', 576)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'include(/home/j...', '/home/junctionf...', 576)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(576): include('/home/junctionf...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/composer/ClassLoader.php(427): Composer\\Autoload\\{closure}('/home/junctionf...')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(880): Composer\\Autoload\\ClassLoader->loadClass('App\\\\Providers\\\\R...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(814): Illuminate\\Foundation\\Application->resolveProvider('App\\\\Providers\\\\R...')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register('App\\\\Providers\\\\R...')
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(794): Illuminate\\Foundation\\ProviderRepository->load(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(286): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#14 {main}
"} 
[2026-07-28 18:47:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:04] local.INFO: Model: Journal  
[2026-07-28 18:47:04] local.INFO: Data received: {"id":"87a3c863-4a9f-4e0f-a95b-82f43a4ab60b","type":"Debit","amount":"20.00","rate":"147.500000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:19"} 
[2026-07-28 18:47:04] local.INFO: ID present? YES  
[2026-07-28 18:47:04] local.INFO: ID value: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:47:04] local.INFO: ID empty? NO  
[2026-07-28 18:47:04] local.INFO: Attempting to find record with ID: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:47:04] local.INFO: Record not found, creating new with ID: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:47:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (87a3c863-4a9f-4e0f-a95b-82f43a4ab60b, Debit, 20.00, 147.500000, 3024.000000, Buying TX: Funds into cashbox, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2b365171-aea7-4a4f-a0bf-91b91113557e, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 18:47:04, 2026-07-28 18:47:04))  
[2026-07-28 18:47:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:10] local.INFO: Model: Journal  
[2026-07-28 18:47:10] local.INFO: Data received: {"id":"87a3c863-4a9f-4e0f-a95b-82f43a4ab60b","type":"Debit","amount":"20.00","rate":"147.500000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:19"} 
[2026-07-28 18:47:10] local.INFO: ID present? YES  
[2026-07-28 18:47:10] local.INFO: ID value: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:47:10] local.INFO: ID empty? NO  
[2026-07-28 18:47:10] local.INFO: Attempting to find record with ID: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:47:10] local.INFO: Record not found, creating new with ID: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:47:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (87a3c863-4a9f-4e0f-a95b-82f43a4ab60b, Debit, 20.00, 147.500000, 3024.000000, Buying TX: Funds into cashbox, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2b365171-aea7-4a4f-a0bf-91b91113557e, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 18:47:10, 2026-07-28 18:47:10))  
[2026-07-28 18:47:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:11] local.INFO: Model: Journal  
[2026-07-28 18:47:11] local.INFO: Data received: {"id":"89716169-5ab5-4bfb-ba64-c42efb3e1e01","type":"Credit","amount":"14.00","rate":"127.500000","lcy_amount":"14.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:11] local.INFO: ID present? YES  
[2026-07-28 18:47:11] local.INFO: ID value: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:11] local.INFO: ID empty? NO  
[2026-07-28 18:47:11] local.INFO: Attempting to find record with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:11] local.INFO: Record not found, creating new with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89716169-5ab5-4bfb-ba64-c42efb3e1e01, Credit, 14.00, 127.500000, 14.000000, Buying TX: Funds out of cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:11, 2026-07-28 18:47:11))  
[2026-07-28 18:47:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:18] local.INFO: Model: Journal  
[2026-07-28 18:47:18] local.INFO: Data received: {"id":"89716169-5ab5-4bfb-ba64-c42efb3e1e01","type":"Credit","amount":"14.00","rate":"127.500000","lcy_amount":"14.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:18] local.INFO: ID present? YES  
[2026-07-28 18:47:18] local.INFO: ID value: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:18] local.INFO: ID empty? NO  
[2026-07-28 18:47:18] local.INFO: Attempting to find record with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:18] local.INFO: Record not found, creating new with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89716169-5ab5-4bfb-ba64-c42efb3e1e01, Credit, 14.00, 127.500000, 14.000000, Buying TX: Funds out of cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:18, 2026-07-28 18:47:18))  
[2026-07-28 18:47:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:24] local.INFO: Model: Journal  
[2026-07-28 18:47:24] local.INFO: Data received: {"id":"89716169-5ab5-4bfb-ba64-c42efb3e1e01","type":"Credit","amount":"14.00","rate":"127.500000","lcy_amount":"14.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:24] local.INFO: ID present? YES  
[2026-07-28 18:47:24] local.INFO: ID value: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:24] local.INFO: ID empty? NO  
[2026-07-28 18:47:24] local.INFO: Attempting to find record with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:24] local.INFO: Record not found, creating new with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89716169-5ab5-4bfb-ba64-c42efb3e1e01, Credit, 14.00, 127.500000, 14.000000, Buying TX: Funds out of cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:24, 2026-07-28 18:47:24))  
[2026-07-28 18:47:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:30] local.INFO: Model: Journal  
[2026-07-28 18:47:30] local.INFO: Data received: {"id":"89716169-5ab5-4bfb-ba64-c42efb3e1e01","type":"Credit","amount":"14.00","rate":"127.500000","lcy_amount":"14.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:30] local.INFO: ID present? YES  
[2026-07-28 18:47:30] local.INFO: ID value: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:30] local.INFO: ID empty? NO  
[2026-07-28 18:47:30] local.INFO: Attempting to find record with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:30] local.INFO: Record not found, creating new with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:47:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89716169-5ab5-4bfb-ba64-c42efb3e1e01, Credit, 14.00, 127.500000, 14.000000, Buying TX: Funds out of cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:30, 2026-07-28 18:47:30))  
[2026-07-28 18:47:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:32] local.INFO: Model: Journal  
[2026-07-28 18:47:32] local.INFO: Data received: {"id":"8d5ed635-6d47-4ad5-a65d-c4a075e5b12e","type":"Credit","amount":"0.19","rate":"127.500000","lcy_amount":"0.190000","narrative":"Gain on TR-3592-2026","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:32] local.INFO: ID present? YES  
[2026-07-28 18:47:32] local.INFO: ID value: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:32] local.INFO: ID empty? NO  
[2026-07-28 18:47:32] local.INFO: Attempting to find record with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:32] local.INFO: Record not found, creating new with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d5ed635-6d47-4ad5-a65d-c4a075e5b12e, Credit, 0.19, 127.500000, 0.190000, Gain on TR-3592-2026, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:32, 2026-07-28 18:47:32))  
[2026-07-28 18:47:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:38] local.INFO: Model: Journal  
[2026-07-28 18:47:38] local.INFO: Data received: {"id":"8d5ed635-6d47-4ad5-a65d-c4a075e5b12e","type":"Credit","amount":"0.19","rate":"127.500000","lcy_amount":"0.190000","narrative":"Gain on TR-3592-2026","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:38] local.INFO: ID present? YES  
[2026-07-28 18:47:38] local.INFO: ID value: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:38] local.INFO: ID empty? NO  
[2026-07-28 18:47:38] local.INFO: Attempting to find record with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:38] local.INFO: Record not found, creating new with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d5ed635-6d47-4ad5-a65d-c4a075e5b12e, Credit, 0.19, 127.500000, 0.190000, Gain on TR-3592-2026, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:38, 2026-07-28 18:47:38))  
[2026-07-28 18:47:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:44] local.INFO: Model: Journal  
[2026-07-28 18:47:44] local.INFO: Data received: {"id":"8d5ed635-6d47-4ad5-a65d-c4a075e5b12e","type":"Credit","amount":"0.19","rate":"127.500000","lcy_amount":"0.190000","narrative":"Gain on TR-3592-2026","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:44] local.INFO: ID present? YES  
[2026-07-28 18:47:44] local.INFO: ID value: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:44] local.INFO: ID empty? NO  
[2026-07-28 18:47:44] local.INFO: Attempting to find record with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:44] local.INFO: Record not found, creating new with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d5ed635-6d47-4ad5-a65d-c4a075e5b12e, Credit, 0.19, 127.500000, 0.190000, Gain on TR-3592-2026, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:44, 2026-07-28 18:47:44))  
[2026-07-28 18:47:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:50] local.INFO: Model: Journal  
[2026-07-28 18:47:50] local.INFO: Data received: {"id":"8d5ed635-6d47-4ad5-a65d-c4a075e5b12e","type":"Credit","amount":"0.19","rate":"127.500000","lcy_amount":"0.190000","narrative":"Gain on TR-3592-2026","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:47:50] local.INFO: ID present? YES  
[2026-07-28 18:47:50] local.INFO: ID value: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:50] local.INFO: ID empty? NO  
[2026-07-28 18:47:50] local.INFO: Attempting to find record with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:50] local.INFO: Record not found, creating new with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:47:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d5ed635-6d47-4ad5-a65d-c4a075e5b12e, Credit, 0.19, 127.500000, 0.190000, Gain on TR-3592-2026, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:50, 2026-07-28 18:47:50))  
[2026-07-28 18:47:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:51] local.INFO: Model: Journal  
[2026-07-28 18:47:51] local.INFO: Data received: {"id":"96c13aac-fd66-4606-b187-a2e03cb040b6","type":"Debit","amount":"2218.50","rate":"130.500000","lcy_amount":"2218.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:47:51] local.INFO: ID present? YES  
[2026-07-28 18:47:51] local.INFO: ID value: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:47:51] local.INFO: ID empty? NO  
[2026-07-28 18:47:51] local.INFO: Attempting to find record with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:47:51] local.INFO: Record not found, creating new with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:47:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (96c13aac-fd66-4606-b187-a2e03cb040b6, Debit, 2218.50, 130.500000, 2218.500000, Selling TX: Funds into cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:51, 2026-07-28 18:47:51))  
[2026-07-28 18:47:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:47:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:47:57] local.INFO: Model: Journal  
[2026-07-28 18:47:57] local.INFO: Data received: {"id":"96c13aac-fd66-4606-b187-a2e03cb040b6","type":"Debit","amount":"2218.50","rate":"130.500000","lcy_amount":"2218.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:47:57] local.INFO: ID present? YES  
[2026-07-28 18:47:57] local.INFO: ID value: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:47:57] local.INFO: ID empty? NO  
[2026-07-28 18:47:57] local.INFO: Attempting to find record with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:47:57] local.INFO: Record not found, creating new with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:47:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (96c13aac-fd66-4606-b187-a2e03cb040b6, Debit, 2218.50, 130.500000, 2218.500000, Selling TX: Funds into cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:47:57, 2026-07-28 18:47:57))  
[2026-07-28 18:47:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:04] local.INFO: Model: Journal  
[2026-07-28 18:48:04] local.INFO: Data received: {"id":"96c13aac-fd66-4606-b187-a2e03cb040b6","type":"Debit","amount":"2218.50","rate":"130.500000","lcy_amount":"2218.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:48:04] local.INFO: ID present? YES  
[2026-07-28 18:48:04] local.INFO: ID value: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:48:04] local.INFO: ID empty? NO  
[2026-07-28 18:48:04] local.INFO: Attempting to find record with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:48:04] local.INFO: Record not found, creating new with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:48:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (96c13aac-fd66-4606-b187-a2e03cb040b6, Debit, 2218.50, 130.500000, 2218.500000, Selling TX: Funds into cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:48:04, 2026-07-28 18:48:04))  
[2026-07-28 18:48:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:10] local.INFO: Model: Journal  
[2026-07-28 18:48:10] local.INFO: Data received: {"id":"96c13aac-fd66-4606-b187-a2e03cb040b6","type":"Debit","amount":"2218.50","rate":"130.500000","lcy_amount":"2218.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:48:10] local.INFO: ID present? YES  
[2026-07-28 18:48:10] local.INFO: ID value: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:48:10] local.INFO: ID empty? NO  
[2026-07-28 18:48:10] local.INFO: Attempting to find record with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:48:10] local.INFO: Record not found, creating new with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:48:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (96c13aac-fd66-4606-b187-a2e03cb040b6, Debit, 2218.50, 130.500000, 2218.500000, Selling TX: Funds into cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:48:10, 2026-07-28 18:48:10))  
[2026-07-28 18:48:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:11] local.INFO: Model: Journal  
[2026-07-28 18:48:11] local.INFO: Data received: {"id":"9e54fa77-fbc0-493f-a367-e8cc9d04b574","type":"Debit","amount":"0.11","rate":"127.500000","lcy_amount":"14.190000","narrative":"Buying TX: Funds into cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:48:11] local.INFO: ID present? YES  
[2026-07-28 18:48:11] local.INFO: ID value: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:11] local.INFO: ID empty? NO  
[2026-07-28 18:48:11] local.INFO: Attempting to find record with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:11] local.INFO: Record not found, creating new with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e54fa77-fbc0-493f-a367-e8cc9d04b574, Debit, 0.11, 127.500000, 14.190000, Buying TX: Funds into cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:11, 2026-07-28 18:48:11))  
[2026-07-28 18:48:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:17] local.INFO: Model: Journal  
[2026-07-28 18:48:17] local.INFO: Data received: {"id":"9e54fa77-fbc0-493f-a367-e8cc9d04b574","type":"Debit","amount":"0.11","rate":"127.500000","lcy_amount":"14.190000","narrative":"Buying TX: Funds into cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:48:17] local.INFO: ID present? YES  
[2026-07-28 18:48:17] local.INFO: ID value: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:17] local.INFO: ID empty? NO  
[2026-07-28 18:48:17] local.INFO: Attempting to find record with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:17] local.INFO: Record not found, creating new with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e54fa77-fbc0-493f-a367-e8cc9d04b574, Debit, 0.11, 127.500000, 14.190000, Buying TX: Funds into cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:17, 2026-07-28 18:48:17))  
[2026-07-28 18:48:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:23] local.INFO: Model: Journal  
[2026-07-28 18:48:23] local.INFO: Data received: {"id":"9e54fa77-fbc0-493f-a367-e8cc9d04b574","type":"Debit","amount":"0.11","rate":"127.500000","lcy_amount":"14.190000","narrative":"Buying TX: Funds into cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:48:23] local.INFO: ID present? YES  
[2026-07-28 18:48:23] local.INFO: ID value: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:23] local.INFO: ID empty? NO  
[2026-07-28 18:48:23] local.INFO: Attempting to find record with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:23] local.INFO: Record not found, creating new with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e54fa77-fbc0-493f-a367-e8cc9d04b574, Debit, 0.11, 127.500000, 14.190000, Buying TX: Funds into cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:23, 2026-07-28 18:48:23))  
[2026-07-28 18:48:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:29] local.INFO: Model: Journal  
[2026-07-28 18:48:29] local.INFO: Data received: {"id":"9e54fa77-fbc0-493f-a367-e8cc9d04b574","type":"Debit","amount":"0.11","rate":"127.500000","lcy_amount":"14.190000","narrative":"Buying TX: Funds into cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:48:29] local.INFO: ID present? YES  
[2026-07-28 18:48:29] local.INFO: ID value: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:29] local.INFO: ID empty? NO  
[2026-07-28 18:48:29] local.INFO: Attempting to find record with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:29] local.INFO: Record not found, creating new with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:48:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e54fa77-fbc0-493f-a367-e8cc9d04b574, Debit, 0.11, 127.500000, 14.190000, Buying TX: Funds into cashbox, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:29, 2026-07-28 18:48:29))  
[2026-07-28 18:48:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:30] local.INFO: Model: Journal  
[2026-07-28 18:48:30] local.INFO: Data received: {"id":"cad01be6-1968-4e97-8f43-294edee8dc55","type":"Credit","amount":"17.00","rate":"130.500000","lcy_amount":"2193.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:48:30] local.INFO: ID present? YES  
[2026-07-28 18:48:30] local.INFO: ID value: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:30] local.INFO: ID empty? NO  
[2026-07-28 18:48:30] local.INFO: Attempting to find record with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:30] local.INFO: Record not found, creating new with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cad01be6-1968-4e97-8f43-294edee8dc55, Credit, 17.00, 130.500000, 2193.000000, Selling TX: Funds out of cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:30, 2026-07-28 18:48:30))  
[2026-07-28 18:48:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:36] local.INFO: Model: Journal  
[2026-07-28 18:48:36] local.INFO: Data received: {"id":"cad01be6-1968-4e97-8f43-294edee8dc55","type":"Credit","amount":"17.00","rate":"130.500000","lcy_amount":"2193.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:48:36] local.INFO: ID present? YES  
[2026-07-28 18:48:36] local.INFO: ID value: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:36] local.INFO: ID empty? NO  
[2026-07-28 18:48:36] local.INFO: Attempting to find record with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:36] local.INFO: Record not found, creating new with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cad01be6-1968-4e97-8f43-294edee8dc55, Credit, 17.00, 130.500000, 2193.000000, Selling TX: Funds out of cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:36, 2026-07-28 18:48:36))  
[2026-07-28 18:48:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:42] local.INFO: Model: Journal  
[2026-07-28 18:48:42] local.INFO: Data received: {"id":"cad01be6-1968-4e97-8f43-294edee8dc55","type":"Credit","amount":"17.00","rate":"130.500000","lcy_amount":"2193.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:48:42] local.INFO: ID present? YES  
[2026-07-28 18:48:42] local.INFO: ID value: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:42] local.INFO: ID empty? NO  
[2026-07-28 18:48:42] local.INFO: Attempting to find record with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:42] local.INFO: Record not found, creating new with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cad01be6-1968-4e97-8f43-294edee8dc55, Credit, 17.00, 130.500000, 2193.000000, Selling TX: Funds out of cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:42, 2026-07-28 18:48:42))  
[2026-07-28 18:48:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:48] local.INFO: Model: Journal  
[2026-07-28 18:48:48] local.INFO: Data received: {"id":"cad01be6-1968-4e97-8f43-294edee8dc55","type":"Credit","amount":"17.00","rate":"130.500000","lcy_amount":"2193.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:48:48] local.INFO: ID present? YES  
[2026-07-28 18:48:48] local.INFO: ID value: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:48] local.INFO: ID empty? NO  
[2026-07-28 18:48:48] local.INFO: Attempting to find record with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:48] local.INFO: Record not found, creating new with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:48:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cad01be6-1968-4e97-8f43-294edee8dc55, Credit, 17.00, 130.500000, 2193.000000, Selling TX: Funds out of cashbox, 63164cea-28e1-4db1-ab7a-834c28979d52, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 63164cea-28e1-4db1-ab7a-834c28979d52, 2b365171-aea7-4a4f-a0bf-91b91113557e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 18:48:48, 2026-07-28 18:48:48))  
[2026-07-28 18:48:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:49] local.INFO: Model: Journal  
[2026-07-28 18:48:49] local.INFO: Data received: {"id":"d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6","type":"Credit","amount":"2950.00","rate":"147.500000","lcy_amount":"2950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:48:49] local.INFO: ID present? YES  
[2026-07-28 18:48:49] local.INFO: ID value: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:48:49] local.INFO: ID empty? NO  
[2026-07-28 18:48:49] local.INFO: Attempting to find record with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:48:49] local.INFO: Record not found, creating new with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:48:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6, Credit, 2950.00, 147.500000, 2950.000000, Buying TX: Funds out of cashbox, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:48:49, 2026-07-28 18:48:49))  
[2026-07-28 18:48:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:48:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:48:55] local.INFO: Model: Journal  
[2026-07-28 18:48:55] local.INFO: Data received: {"id":"d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6","type":"Credit","amount":"2950.00","rate":"147.500000","lcy_amount":"2950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:48:55] local.INFO: ID present? YES  
[2026-07-28 18:48:55] local.INFO: ID value: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:48:55] local.INFO: ID empty? NO  
[2026-07-28 18:48:55] local.INFO: Attempting to find record with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:48:55] local.INFO: Record not found, creating new with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:48:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6, Credit, 2950.00, 147.500000, 2950.000000, Buying TX: Funds out of cashbox, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:48:55, 2026-07-28 18:48:55))  
[2026-07-28 18:48:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:49:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:01] local.INFO: Model: Journal  
[2026-07-28 18:49:01] local.INFO: Data received: {"id":"d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6","type":"Credit","amount":"2950.00","rate":"147.500000","lcy_amount":"2950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:49:01] local.INFO: ID present? YES  
[2026-07-28 18:49:01] local.INFO: ID value: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:49:01] local.INFO: ID empty? NO  
[2026-07-28 18:49:01] local.INFO: Attempting to find record with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:49:01] local.INFO: Record not found, creating new with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:49:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6, Credit, 2950.00, 147.500000, 2950.000000, Buying TX: Funds out of cashbox, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 73e6c5f0-6d42-4842-acf3-027a33f34d12, 2b365171-aea7-4a4f-a0bf-91b91113557e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 18:49:01, 2026-07-28 18:49:01))  
[2026-07-28 18:49:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:49:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:09] local.INFO: Model: Customer  
[2026-07-28 18:49:09] local.INFO: Data received: {"id":"2b365171-aea7-4a4f-a0bf-91b91113557e","first_name":"Test","last_name":"customer","sur_name":"one","phone":"712121212","calling_code":"+254","email":"test@customer.co.ke","residence":"Kasarani, Nairobi, Kenya","id_type":"National ID","id_number":"9012234","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-27 15:20:35","updated_at":"2026-07-28 18:27:32"} 
[2026-07-28 18:49:09] local.INFO: ID present? YES  
[2026-07-28 18:49:09] local.INFO: ID value: 2b365171-aea7-4a4f-a0bf-91b91113557e  
[2026-07-28 18:49:09] local.INFO: ID empty? NO  
[2026-07-28 18:49:09] local.INFO: Attempting to find record with ID: 2b365171-aea7-4a4f-a0bf-91b91113557e  
[2026-07-28 18:49:09] local.INFO: Record not found, creating new with ID: 2b365171-aea7-4a4f-a0bf-91b91113557e  
[2026-07-28 18:49:09] local.INFO: Created record: {"id":"2b365171-aea7-4a4f-a0bf-91b91113557e","first_name":"Test","last_name":"customer","sur_name":"one","phone":"712121212","calling_code":"+254","email":"test@customer.co.ke","residence":"Kasarani, Nairobi, Kenya","id_type":"National ID","id_number":"9012234","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T15:49:09.000000Z","created_at":"2026-07-28T15:49:09.000000Z"} 
[2026-07-28 18:49:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:10] local.INFO: Model: Transaction  
[2026-07-28 18:49:10] local.INFO: Data received: {"id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","type":"Buying","amount":0.11000000000000000055511151231257827021181583404541015625,"rate":127.5,"negotiated_rate":"0","amount_paid":14,"amount_received":0.11000000000000000055511151231257827021181583404541015625,"narrative":null,"transaction_number":"TR-3592-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 15:22:27","updated_at":"2026-07-27 16:00:13"} 
[2026-07-28 18:49:10] local.INFO: ID present? YES  
[2026-07-28 18:49:10] local.INFO: ID value: 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf  
[2026-07-28 18:49:10] local.INFO: ID empty? NO  
[2026-07-28 18:49:10] local.INFO: Attempting to find record with ID: 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf  
[2026-07-28 18:49:10] local.INFO: Record not found, creating new with ID: 16f65fb4-6db6-41b6-9e84-3dfa9ea497bf  
[2026-07-28 18:49:10] local.INFO: Created record: {"id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","type":"Buying","amount":0.11000000000000000055511151231257827021181583404541015625,"rate":127.5,"negotiated_rate":"0","amount_paid":14,"amount_received":0.11000000000000000055511151231257827021181583404541015625,"narrative":null,"transaction_number":"TR-3592-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T15:49:10.000000Z","created_at":"2026-07-28T15:49:10.000000Z"} 
[2026-07-28 18:49:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:11] local.INFO: Model: Transaction  
[2026-07-28 18:49:11] local.INFO: Data received: {"id":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","type":"Selling","amount":17,"rate":130.5,"negotiated_rate":null,"amount_paid":17,"amount_received":2218.5,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-27 15:22:27","updated_at":"2026-07-27 16:00:14"} 
[2026-07-28 18:49:11] local.INFO: ID present? YES  
[2026-07-28 18:49:11] local.INFO: ID value: 63164cea-28e1-4db1-ab7a-834c28979d52  
[2026-07-28 18:49:11] local.INFO: ID empty? NO  
[2026-07-28 18:49:11] local.INFO: Attempting to find record with ID: 63164cea-28e1-4db1-ab7a-834c28979d52  
[2026-07-28 18:49:11] local.INFO: Record not found, creating new with ID: 63164cea-28e1-4db1-ab7a-834c28979d52  
[2026-07-28 18:49:11] local.INFO: Created record: {"id":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","type":"Selling","amount":17,"rate":130.5,"negotiated_rate":null,"amount_paid":17,"amount_received":2218.5,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-28T15:49:11.000000Z","created_at":"2026-07-28T15:49:11.000000Z"} 
[2026-07-28 18:49:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:12] local.INFO: Model: Transaction  
[2026-07-28 18:49:12] local.INFO: Data received: {"id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","type":"Buying","amount":20,"rate":147.5,"negotiated_rate":"0","amount_paid":2950,"amount_received":20,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-27 15:22:27","updated_at":"2026-07-27 16:00:15"} 
[2026-07-28 18:49:12] local.INFO: ID present? YES  
[2026-07-28 18:49:12] local.INFO: ID value: 73e6c5f0-6d42-4842-acf3-027a33f34d12  
[2026-07-28 18:49:12] local.INFO: ID empty? NO  
[2026-07-28 18:49:12] local.INFO: Attempting to find record with ID: 73e6c5f0-6d42-4842-acf3-027a33f34d12  
[2026-07-28 18:49:12] local.INFO: Record not found, creating new with ID: 73e6c5f0-6d42-4842-acf3-027a33f34d12  
[2026-07-28 18:49:12] local.INFO: Created record: {"id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","type":"Buying","amount":20,"rate":147.5,"negotiated_rate":"0","amount_paid":2950,"amount_received":20,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T15:49:12.000000Z","created_at":"2026-07-28T15:49:12.000000Z"} 
[2026-07-28 18:49:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:13] local.INFO: Model: Transaction  
[2026-07-28 18:49:13] local.INFO: Data received: {"id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","type":"Selling","amount":30,"rate":154.900000000000005684341886080801486968994140625,"negotiated_rate":null,"amount_paid":30,"amount_received":4647,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-27 15:22:27","updated_at":"2026-07-27 16:00:15"} 
[2026-07-28 18:49:13] local.INFO: ID present? YES  
[2026-07-28 18:49:13] local.INFO: ID value: b777a740-7e54-4168-a2a4-d93bcd0e4dde  
[2026-07-28 18:49:13] local.INFO: ID empty? NO  
[2026-07-28 18:49:13] local.INFO: Attempting to find record with ID: b777a740-7e54-4168-a2a4-d93bcd0e4dde  
[2026-07-28 18:49:13] local.INFO: Record not found, creating new with ID: b777a740-7e54-4168-a2a4-d93bcd0e4dde  
[2026-07-28 18:49:13] local.INFO: Created record: {"id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","type":"Selling","amount":30,"rate":154.900000000000005684341886080801486968994140625,"negotiated_rate":null,"amount_paid":30,"amount_received":4647,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 15:22:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"ea287fa8-c12d-44bf-a6d9-9c07c311af8b","cancellation_reason":null,"customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-28T15:49:13.000000Z","created_at":"2026-07-28T15:49:13.000000Z"} 
[2026-07-28 18:49:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:14] local.INFO: Model: Journal  
[2026-07-28 18:49:14] local.INFO: Data received: {"id":"06ccc8c7-4b73-4aec-a55f-fef9e216dbbd","type":"Credit","amount":"25.50","rate":"130.500000","lcy_amount":"25.500000","narrative":"Gain on TR-3593-2026","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:17"} 
[2026-07-28 18:49:14] local.INFO: ID present? YES  
[2026-07-28 18:49:14] local.INFO: ID value: 06ccc8c7-4b73-4aec-a55f-fef9e216dbbd  
[2026-07-28 18:49:14] local.INFO: ID empty? NO  
[2026-07-28 18:49:14] local.INFO: Attempting to find record with ID: 06ccc8c7-4b73-4aec-a55f-fef9e216dbbd  
[2026-07-28 18:49:14] local.INFO: Record not found, creating new with ID: 06ccc8c7-4b73-4aec-a55f-fef9e216dbbd  
[2026-07-28 18:49:15] local.INFO: Created record: {"id":"06ccc8c7-4b73-4aec-a55f-fef9e216dbbd","type":"Credit","amount":"25.50","rate":"130.500000","lcy_amount":"25.500000","narrative":"Gain on TR-3593-2026","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:14.000000Z","created_at":"2026-07-28T15:49:14.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-79047.0,"debit_total":"7200.00","credit_total":86247.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-23T22:44:54.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 18:49:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:16] local.INFO: Model: Journal  
[2026-07-28 18:49:16] local.INFO: Data received: {"id":"0f04f740-f84d-43a4-8072-ad4228d15a91","type":"Credit","amount":"111.00","rate":"154.900000","lcy_amount":"111.000000","narrative":"Gain on TR-3593-2026","uniqid":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:17"} 
[2026-07-28 18:49:16] local.INFO: ID present? YES  
[2026-07-28 18:49:16] local.INFO: ID value: 0f04f740-f84d-43a4-8072-ad4228d15a91  
[2026-07-28 18:49:16] local.INFO: ID empty? NO  
[2026-07-28 18:49:16] local.INFO: Attempting to find record with ID: 0f04f740-f84d-43a4-8072-ad4228d15a91  
[2026-07-28 18:49:16] local.INFO: Record not found, creating new with ID: 0f04f740-f84d-43a4-8072-ad4228d15a91  
[2026-07-28 18:49:16] local.INFO: Created record: {"id":"0f04f740-f84d-43a4-8072-ad4228d15a91","type":"Credit","amount":"111.00","rate":"154.900000","lcy_amount":"111.000000","narrative":"Gain on TR-3593-2026","uniqid":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:16.000000Z","created_at":"2026-07-28T15:49:16.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-79158.0,"debit_total":"7200.00","credit_total":86358.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T15:49:15.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 18:49:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:17] local.INFO: Model: Journal  
[2026-07-28 18:49:17] local.INFO: Data received: {"id":"1b0d411a-f593-4b98-8a89-864dcd5de3d0","type":"Credit","amount":"30.00","rate":"154.900000","lcy_amount":"4536.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:18"} 
[2026-07-28 18:49:17] local.INFO: ID present? YES  
[2026-07-28 18:49:17] local.INFO: ID value: 1b0d411a-f593-4b98-8a89-864dcd5de3d0  
[2026-07-28 18:49:17] local.INFO: ID empty? NO  
[2026-07-28 18:49:17] local.INFO: Attempting to find record with ID: 1b0d411a-f593-4b98-8a89-864dcd5de3d0  
[2026-07-28 18:49:17] local.INFO: Record not found, creating new with ID: 1b0d411a-f593-4b98-8a89-864dcd5de3d0  
[2026-07-28 18:49:17] local.INFO: Created record: {"id":"1b0d411a-f593-4b98-8a89-864dcd5de3d0","type":"Credit","amount":"30.00","rate":"154.900000","lcy_amount":"4536.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T15:49:17.000000Z","created_at":"2026-07-28T15:49:17.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3960.0,"debit_total":"15235.00","credit_total":19195.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T08:15:59.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:17] local.INFO: Model: Journal  
[2026-07-28 18:49:17] local.INFO: Data received: {"id":"790533e6-5024-4dc1-a890-777620fe0a87","type":"Debit","amount":"4647.00","rate":"154.900000","lcy_amount":"4647.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:18"} 
[2026-07-28 18:49:17] local.INFO: ID present? YES  
[2026-07-28 18:49:17] local.INFO: ID value: 790533e6-5024-4dc1-a890-777620fe0a87  
[2026-07-28 18:49:17] local.INFO: ID empty? NO  
[2026-07-28 18:49:17] local.INFO: Attempting to find record with ID: 790533e6-5024-4dc1-a890-777620fe0a87  
[2026-07-28 18:49:17] local.INFO: Record not found, creating new with ID: 790533e6-5024-4dc1-a890-777620fe0a87  
[2026-07-28 18:49:18] local.INFO: Created record: {"id":"790533e6-5024-4dc1-a890-777620fe0a87","type":"Debit","amount":"4647.00","rate":"154.900000","lcy_amount":"4647.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b777a740-7e54-4168-a2a4-d93bcd0e4dde","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:17.000000Z","created_at":"2026-07-28T15:49:17.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":918295.0,"debit_total":16458151.3000000007450580596923828125,"credit_total":"15539856.30","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T09:41:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:18] local.INFO: Model: Journal  
[2026-07-28 18:49:18] local.INFO: Data received: {"id":"87a3c863-4a9f-4e0f-a95b-82f43a4ab60b","type":"Debit","amount":"20.00","rate":"147.500000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:19"} 
[2026-07-28 18:49:18] local.INFO: ID present? YES  
[2026-07-28 18:49:18] local.INFO: ID value: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:49:18] local.INFO: ID empty? NO  
[2026-07-28 18:49:18] local.INFO: Attempting to find record with ID: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:49:18] local.INFO: Record not found, creating new with ID: 87a3c863-4a9f-4e0f-a95b-82f43a4ab60b  
[2026-07-28 18:49:18] local.INFO: Created record: {"id":"87a3c863-4a9f-4e0f-a95b-82f43a4ab60b","type":"Debit","amount":"20.00","rate":"147.500000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T15:49:18.000000Z","created_at":"2026-07-28T15:49:18.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3940.0,"debit_total":15255.0,"credit_total":"19195.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:17.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:19] local.INFO: Model: Journal  
[2026-07-28 18:49:19] local.INFO: Data received: {"id":"89716169-5ab5-4bfb-ba64-c42efb3e1e01","type":"Credit","amount":"14.00","rate":"127.500000","lcy_amount":"14.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:49:19] local.INFO: ID present? YES  
[2026-07-28 18:49:19] local.INFO: ID value: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:49:19] local.INFO: ID empty? NO  
[2026-07-28 18:49:19] local.INFO: Attempting to find record with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:49:19] local.INFO: Record not found, creating new with ID: 89716169-5ab5-4bfb-ba64-c42efb3e1e01  
[2026-07-28 18:49:19] local.INFO: Created record: {"id":"89716169-5ab5-4bfb-ba64-c42efb3e1e01","type":"Credit","amount":"14.00","rate":"127.500000","lcy_amount":"14.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:19.000000Z","created_at":"2026-07-28T15:49:19.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":918281.0,"debit_total":"16458151.30","credit_total":15539870.3000000007450580596923828125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:20] local.INFO: Model: Journal  
[2026-07-28 18:49:20] local.INFO: Data received: {"id":"8d5ed635-6d47-4ad5-a65d-c4a075e5b12e","type":"Credit","amount":"0.19","rate":"127.500000","lcy_amount":"0.190000","narrative":"Gain on TR-3592-2026","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:20"} 
[2026-07-28 18:49:20] local.INFO: ID present? YES  
[2026-07-28 18:49:20] local.INFO: ID value: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:49:20] local.INFO: ID empty? NO  
[2026-07-28 18:49:20] local.INFO: Attempting to find record with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:49:20] local.INFO: Record not found, creating new with ID: 8d5ed635-6d47-4ad5-a65d-c4a075e5b12e  
[2026-07-28 18:49:20] local.INFO: Created record: {"id":"8d5ed635-6d47-4ad5-a65d-c4a075e5b12e","type":"Credit","amount":"0.19","rate":"127.500000","lcy_amount":"0.190000","narrative":"Gain on TR-3592-2026","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:20.000000Z","created_at":"2026-07-28T15:49:20.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-79158.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":86358.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T15:49:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 18:49:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:21] local.INFO: Model: Journal  
[2026-07-28 18:49:21] local.INFO: Data received: {"id":"96c13aac-fd66-4606-b187-a2e03cb040b6","type":"Debit","amount":"2218.50","rate":"130.500000","lcy_amount":"2218.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:49:21] local.INFO: ID present? YES  
[2026-07-28 18:49:21] local.INFO: ID value: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:49:21] local.INFO: ID empty? NO  
[2026-07-28 18:49:21] local.INFO: Attempting to find record with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:49:21] local.INFO: Record not found, creating new with ID: 96c13aac-fd66-4606-b187-a2e03cb040b6  
[2026-07-28 18:49:21] local.INFO: Created record: {"id":"96c13aac-fd66-4606-b187-a2e03cb040b6","type":"Debit","amount":"2218.50","rate":"130.500000","lcy_amount":"2218.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:21.000000Z","created_at":"2026-07-28T15:49:21.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":920499.5,"debit_total":16460369.8000000007450580596923828125,"credit_total":"15539870.30","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:19.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:22] local.INFO: Model: Journal  
[2026-07-28 18:49:22] local.INFO: Data received: {"id":"9e54fa77-fbc0-493f-a367-e8cc9d04b574","type":"Debit","amount":"0.11","rate":"127.500000","lcy_amount":"14.190000","narrative":"Buying TX: Funds into cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:21"} 
[2026-07-28 18:49:22] local.INFO: ID present? YES  
[2026-07-28 18:49:22] local.INFO: ID value: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:49:22] local.INFO: ID empty? NO  
[2026-07-28 18:49:22] local.INFO: Attempting to find record with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:49:22] local.INFO: Record not found, creating new with ID: 9e54fa77-fbc0-493f-a367-e8cc9d04b574  
[2026-07-28 18:49:22] local.INFO: Created record: {"id":"9e54fa77-fbc0-493f-a367-e8cc9d04b574","type":"Debit","amount":"0.11","rate":"127.500000","lcy_amount":"14.190000","narrative":"Buying TX: Funds into cashbox","uniqid":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"16f65fb4-6db6-41b6-9e84-3dfa9ea497bf","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T15:49:22.000000Z","created_at":"2026-07-28T15:49:22.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-619.8899999999999863575794734060764312744140625,"debit_total":56052.110000000000582076609134674072265625,"credit_total":"56672.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T08:24:29.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:23] local.INFO: Model: Journal  
[2026-07-28 18:49:23] local.INFO: Data received: {"id":"cad01be6-1968-4e97-8f43-294edee8dc55","type":"Credit","amount":"17.00","rate":"130.500000","lcy_amount":"2193.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:49:23] local.INFO: ID present? YES  
[2026-07-28 18:49:23] local.INFO: ID value: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:49:23] local.INFO: ID empty? NO  
[2026-07-28 18:49:23] local.INFO: Attempting to find record with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:49:23] local.INFO: Record not found, creating new with ID: cad01be6-1968-4e97-8f43-294edee8dc55  
[2026-07-28 18:49:23] local.INFO: Created record: {"id":"cad01be6-1968-4e97-8f43-294edee8dc55","type":"Credit","amount":"17.00","rate":"130.500000","lcy_amount":"2193.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"63164cea-28e1-4db1-ab7a-834c28979d52","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"63164cea-28e1-4db1-ab7a-834c28979d52","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T15:49:23.000000Z","created_at":"2026-07-28T15:49:23.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-636.8899999999999863575794734060764312744140625,"debit_total":"56052.11","credit_total":56689.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:22.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:24] local.INFO: Model: Journal  
[2026-07-28 18:49:24] local.INFO: Data received: {"id":"d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6","type":"Credit","amount":"2950.00","rate":"147.500000","lcy_amount":"2950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:22"} 
[2026-07-28 18:49:24] local.INFO: ID present? YES  
[2026-07-28 18:49:24] local.INFO: ID value: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:49:24] local.INFO: ID empty? NO  
[2026-07-28 18:49:24] local.INFO: Attempting to find record with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:49:24] local.INFO: Record not found, creating new with ID: d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6  
[2026-07-28 18:49:24] local.INFO: Created record: {"id":"d9e7787c-1811-4b3c-b7bc-9dbec6e5c7e6","type":"Credit","amount":"2950.00","rate":"147.500000","lcy_amount":"2950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:24.000000Z","created_at":"2026-07-28T15:49:24.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":917549.5,"debit_total":"16460369.80","credit_total":15542820.3000000007450580596923828125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 18:49:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:25] local.INFO: Model: Journal  
[2026-07-28 18:49:25] local.INFO: Data received: {"id":"dea13e25-ac93-429b-ba8d-408ac13f6b45","type":"Credit","amount":"74.00","rate":"147.500000","lcy_amount":"74.000000","narrative":"Gain on TR-3593-2026","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 15:22:36","updated_at":"2026-07-27 16:00:23"} 
[2026-07-28 18:49:25] local.INFO: ID present? YES  
[2026-07-28 18:49:25] local.INFO: ID value: dea13e25-ac93-429b-ba8d-408ac13f6b45  
[2026-07-28 18:49:25] local.INFO: ID empty? NO  
[2026-07-28 18:49:25] local.INFO: Attempting to find record with ID: dea13e25-ac93-429b-ba8d-408ac13f6b45  
[2026-07-28 18:49:25] local.INFO: Record not found, creating new with ID: dea13e25-ac93-429b-ba8d-408ac13f6b45  
[2026-07-28 18:49:25] local.INFO: Created record: {"id":"dea13e25-ac93-429b-ba8d-408ac13f6b45","type":"Credit","amount":"74.00","rate":"147.500000","lcy_amount":"74.000000","narrative":"Gain on TR-3593-2026","uniqid":"73e6c5f0-6d42-4842-acf3-027a33f34d12","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"73e6c5f0-6d42-4842-acf3-027a33f34d12","customer_id":"2b365171-aea7-4a4f-a0bf-91b91113557e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T15:49:25.000000Z","created_at":"2026-07-28T15:49:25.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-79232.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":86432.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T15:49:20.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 18:49:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:49:56] local.INFO: Model: Transaction  
[2026-07-28 18:49:56] local.INFO: Data received: {"id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","type":"Buying","amount":40,"rate":169,"negotiated_rate":"0","amount_paid":6760,"amount_received":40,"narrative":null,"transaction_number":"TR-3551-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:33:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f51c62ea-2f3a-431d-875a-75bbd9ee0289","cancellation_reason":null,"customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-21 17:33:23","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 18:49:56] local.INFO: ID present? YES  
[2026-07-28 18:49:56] local.INFO: ID value: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:49:56] local.INFO: ID empty? NO  
[2026-07-28 18:49:56] local.INFO: Attempting to find record with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:49:56] local.INFO: Record not found, creating new with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:49:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 40, 169, 0, 6760, 40, ?, TR-3551-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:33:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f51c62ea-2f3a-431d-875a-75bbd9ee0289, ?, c2b7cd22-2a19-4126-a913-c4db931349cb, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 18:49:56, 2026-07-28 18:49:56))  
[2026-07-28 18:49:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:02] local.INFO: Model: Transaction  
[2026-07-28 18:50:02] local.INFO: Data received: {"id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","type":"Buying","amount":40,"rate":169,"negotiated_rate":"0","amount_paid":6760,"amount_received":40,"narrative":null,"transaction_number":"TR-3551-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:33:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f51c62ea-2f3a-431d-875a-75bbd9ee0289","cancellation_reason":null,"customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-21 17:33:23","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 18:50:02] local.INFO: ID present? YES  
[2026-07-28 18:50:02] local.INFO: ID value: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:02] local.INFO: ID empty? NO  
[2026-07-28 18:50:02] local.INFO: Attempting to find record with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:02] local.INFO: Record not found, creating new with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 40, 169, 0, 6760, 40, ?, TR-3551-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:33:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f51c62ea-2f3a-431d-875a-75bbd9ee0289, ?, c2b7cd22-2a19-4126-a913-c4db931349cb, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 18:50:02, 2026-07-28 18:50:02))  
[2026-07-28 18:50:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:08] local.INFO: Model: Transaction  
[2026-07-28 18:50:08] local.INFO: Data received: {"id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","type":"Buying","amount":40,"rate":169,"negotiated_rate":"0","amount_paid":6760,"amount_received":40,"narrative":null,"transaction_number":"TR-3551-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:33:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f51c62ea-2f3a-431d-875a-75bbd9ee0289","cancellation_reason":null,"customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-21 17:33:23","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 18:50:08] local.INFO: ID present? YES  
[2026-07-28 18:50:08] local.INFO: ID value: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:08] local.INFO: ID empty? NO  
[2026-07-28 18:50:08] local.INFO: Attempting to find record with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:08] local.INFO: Record not found, creating new with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 40, 169, 0, 6760, 40, ?, TR-3551-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:33:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f51c62ea-2f3a-431d-875a-75bbd9ee0289, ?, c2b7cd22-2a19-4126-a913-c4db931349cb, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 18:50:08, 2026-07-28 18:50:08))  
[2026-07-28 18:50:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:15] local.INFO: Model: Transaction  
[2026-07-28 18:50:15] local.INFO: Data received: {"id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","type":"Buying","amount":40,"rate":169,"negotiated_rate":"0","amount_paid":6760,"amount_received":40,"narrative":null,"transaction_number":"TR-3551-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:33:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f51c62ea-2f3a-431d-875a-75bbd9ee0289","cancellation_reason":null,"customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-21 17:33:23","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 18:50:15] local.INFO: ID present? YES  
[2026-07-28 18:50:15] local.INFO: ID value: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:15] local.INFO: ID empty? NO  
[2026-07-28 18:50:15] local.INFO: Attempting to find record with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:15] local.INFO: Record not found, creating new with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 18:50:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 40, 169, 0, 6760, 40, ?, TR-3551-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:33:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f51c62ea-2f3a-431d-875a-75bbd9ee0289, ?, c2b7cd22-2a19-4126-a913-c4db931349cb, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 18:50:15, 2026-07-28 18:50:15))  
[2026-07-28 18:50:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:16] local.INFO: Model: Transaction  
[2026-07-28 18:50:16] local.INFO: Data received: {"id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","type":"Buying","amount":120000,"rate":0.040000000000000000832667268468867405317723751068115234375,"negotiated_rate":"0","amount_paid":4800,"amount_received":120000,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 18:50:16] local.INFO: ID present? YES  
[2026-07-28 18:50:16] local.INFO: ID value: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:16] local.INFO: ID empty? NO  
[2026-07-28 18:50:16] local.INFO: Attempting to find record with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:16] local.INFO: Record not found, creating new with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 120000, 0.04, 0, 4800, 120000, ?, TR-3594-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, 2026-07-28 18:50:16, 2026-07-28 18:50:16))  
[2026-07-28 18:50:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:22] local.INFO: Model: Transaction  
[2026-07-28 18:50:22] local.INFO: Data received: {"id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","type":"Buying","amount":120000,"rate":0.040000000000000000832667268468867405317723751068115234375,"negotiated_rate":"0","amount_paid":4800,"amount_received":120000,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 18:50:22] local.INFO: ID present? YES  
[2026-07-28 18:50:22] local.INFO: ID value: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:22] local.INFO: ID empty? NO  
[2026-07-28 18:50:22] local.INFO: Attempting to find record with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:22] local.INFO: Record not found, creating new with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 120000, 0.04, 0, 4800, 120000, ?, TR-3594-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, 2026-07-28 18:50:22, 2026-07-28 18:50:22))  
[2026-07-28 18:50:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:28] local.INFO: Model: Transaction  
[2026-07-28 18:50:28] local.INFO: Data received: {"id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","type":"Buying","amount":120000,"rate":0.040000000000000000832667268468867405317723751068115234375,"negotiated_rate":"0","amount_paid":4800,"amount_received":120000,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 18:50:28] local.INFO: ID present? YES  
[2026-07-28 18:50:28] local.INFO: ID value: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:28] local.INFO: ID empty? NO  
[2026-07-28 18:50:28] local.INFO: Attempting to find record with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:28] local.INFO: Record not found, creating new with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 120000, 0.04, 0, 4800, 120000, ?, TR-3594-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, 2026-07-28 18:50:28, 2026-07-28 18:50:28))  
[2026-07-28 18:50:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:35] local.INFO: Model: Transaction  
[2026-07-28 18:50:35] local.INFO: Data received: {"id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","type":"Buying","amount":120000,"rate":0.040000000000000000832667268468867405317723751068115234375,"negotiated_rate":"0","amount_paid":4800,"amount_received":120000,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 18:50:35] local.INFO: ID present? YES  
[2026-07-28 18:50:35] local.INFO: ID value: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:35] local.INFO: ID empty? NO  
[2026-07-28 18:50:35] local.INFO: Attempting to find record with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:35] local.INFO: Record not found, creating new with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 18:50:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 120000, 0.04, 0, 4800, 120000, ?, TR-3594-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, 2026-07-28 18:50:35, 2026-07-28 18:50:35))  
[2026-07-28 18:50:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:36] local.INFO: Model: Transaction  
[2026-07-28 18:50:36] local.INFO: Data received: {"id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3546-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 16:45:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f9c9923d-4290-4908-a25a-6a018ec5540d","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 16:45:32","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 18:50:36] local.INFO: ID present? YES  
[2026-07-28 18:50:36] local.INFO: ID value: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:36] local.INFO: ID empty? NO  
[2026-07-28 18:50:36] local.INFO: Attempting to find record with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:36] local.INFO: Record not found, creating new with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3546-2026, ?, ?, Completed, ?, ?, 2026-07-18 16:45:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f9c9923d-4290-4908-a25a-6a018ec5540d, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:50:36, 2026-07-28 18:50:36))  
[2026-07-28 18:50:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:42] local.INFO: Model: Transaction  
[2026-07-28 18:50:42] local.INFO: Data received: {"id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3546-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 16:45:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f9c9923d-4290-4908-a25a-6a018ec5540d","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 16:45:32","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 18:50:42] local.INFO: ID present? YES  
[2026-07-28 18:50:42] local.INFO: ID value: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:42] local.INFO: ID empty? NO  
[2026-07-28 18:50:42] local.INFO: Attempting to find record with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:42] local.INFO: Record not found, creating new with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3546-2026, ?, ?, Completed, ?, ?, 2026-07-18 16:45:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f9c9923d-4290-4908-a25a-6a018ec5540d, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:50:42, 2026-07-28 18:50:42))  
[2026-07-28 18:50:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:48] local.INFO: Model: Transaction  
[2026-07-28 18:50:48] local.INFO: Data received: {"id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3546-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 16:45:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f9c9923d-4290-4908-a25a-6a018ec5540d","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 16:45:32","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 18:50:48] local.INFO: ID present? YES  
[2026-07-28 18:50:48] local.INFO: ID value: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:48] local.INFO: ID empty? NO  
[2026-07-28 18:50:48] local.INFO: Attempting to find record with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:48] local.INFO: Record not found, creating new with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3546-2026, ?, ?, Completed, ?, ?, 2026-07-18 16:45:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f9c9923d-4290-4908-a25a-6a018ec5540d, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:50:48, 2026-07-28 18:50:48))  
[2026-07-28 18:50:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:55] local.INFO: Model: Transaction  
[2026-07-28 18:50:55] local.INFO: Data received: {"id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3546-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 16:45:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f9c9923d-4290-4908-a25a-6a018ec5540d","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 16:45:32","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 18:50:55] local.INFO: ID present? YES  
[2026-07-28 18:50:55] local.INFO: ID value: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:55] local.INFO: ID empty? NO  
[2026-07-28 18:50:55] local.INFO: Attempting to find record with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:55] local.INFO: Record not found, creating new with ID: 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a  
[2026-07-28 18:50:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3546-2026, ?, ?, Completed, ?, ?, 2026-07-18 16:45:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, f9c9923d-4290-4908-a25a-6a018ec5540d, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:50:55, 2026-07-28 18:50:55))  
[2026-07-28 18:50:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:50:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:50:56] local.INFO: Model: Transaction  
[2026-07-28 18:50:56] local.INFO: Data received: {"id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3569-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:03:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"63ef953e-9f5b-4da5-b1c0-6431cab23fb3","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 18:02:50","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 18:50:56] local.INFO: ID present? YES  
[2026-07-28 18:50:56] local.INFO: ID value: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:50:56] local.INFO: ID empty? NO  
[2026-07-28 18:50:56] local.INFO: Attempting to find record with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:50:56] local.INFO: Record not found, creating new with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:50:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 25, 145, 0, 3625, 25, ?, TR-3569-2026, ?, ?, Completed, ?, ?, 2026-07-25 18:03:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 63ef953e-9f5b-4da5-b1c0-6431cab23fb3, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:50:56, 2026-07-28 18:50:56))  
[2026-07-28 18:50:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:02] local.INFO: Model: Transaction  
[2026-07-28 18:51:02] local.INFO: Data received: {"id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3569-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:03:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"63ef953e-9f5b-4da5-b1c0-6431cab23fb3","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 18:02:50","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 18:51:02] local.INFO: ID present? YES  
[2026-07-28 18:51:02] local.INFO: ID value: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:02] local.INFO: ID empty? NO  
[2026-07-28 18:51:02] local.INFO: Attempting to find record with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:02] local.INFO: Record not found, creating new with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 25, 145, 0, 3625, 25, ?, TR-3569-2026, ?, ?, Completed, ?, ?, 2026-07-25 18:03:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 63ef953e-9f5b-4da5-b1c0-6431cab23fb3, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:02, 2026-07-28 18:51:02))  
[2026-07-28 18:51:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:09] local.INFO: Model: Transaction  
[2026-07-28 18:51:09] local.INFO: Data received: {"id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3569-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:03:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"63ef953e-9f5b-4da5-b1c0-6431cab23fb3","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 18:02:50","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 18:51:09] local.INFO: ID present? YES  
[2026-07-28 18:51:09] local.INFO: ID value: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:09] local.INFO: ID empty? NO  
[2026-07-28 18:51:09] local.INFO: Attempting to find record with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:09] local.INFO: Record not found, creating new with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 25, 145, 0, 3625, 25, ?, TR-3569-2026, ?, ?, Completed, ?, ?, 2026-07-25 18:03:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 63ef953e-9f5b-4da5-b1c0-6431cab23fb3, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:09, 2026-07-28 18:51:09))  
[2026-07-28 18:51:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:15] local.INFO: Model: Transaction  
[2026-07-28 18:51:15] local.INFO: Data received: {"id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3569-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:03:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"63ef953e-9f5b-4da5-b1c0-6431cab23fb3","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 18:02:50","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 18:51:15] local.INFO: ID present? YES  
[2026-07-28 18:51:15] local.INFO: ID value: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:15] local.INFO: ID empty? NO  
[2026-07-28 18:51:15] local.INFO: Attempting to find record with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:15] local.INFO: Record not found, creating new with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 18:51:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 25, 145, 0, 3625, 25, ?, TR-3569-2026, ?, ?, Completed, ?, ?, 2026-07-25 18:03:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 63ef953e-9f5b-4da5-b1c0-6431cab23fb3, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:15, 2026-07-28 18:51:15))  
[2026-07-28 18:51:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:16] local.INFO: Model: Transaction  
[2026-07-28 18:51:16] local.INFO: Data received: {"id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","type":"Buying","amount":70,"rate":145,"negotiated_rate":"0","amount_paid":10150,"amount_received":70,"narrative":null,"transaction_number":"TR-3581-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:24:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51380887-0114-4ca2-bb26-66fa086e9f76","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:24:16","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 18:51:16] local.INFO: ID present? YES  
[2026-07-28 18:51:16] local.INFO: ID value: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:16] local.INFO: ID empty? NO  
[2026-07-28 18:51:16] local.INFO: Attempting to find record with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:16] local.INFO: Record not found, creating new with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 70, 145, 0, 10150, 70, ?, TR-3581-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:24:18, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 51380887-0114-4ca2-bb26-66fa086e9f76, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:16, 2026-07-28 18:51:16))  
[2026-07-28 18:51:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:22] local.INFO: Model: Transaction  
[2026-07-28 18:51:22] local.INFO: Data received: {"id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","type":"Buying","amount":70,"rate":145,"negotiated_rate":"0","amount_paid":10150,"amount_received":70,"narrative":null,"transaction_number":"TR-3581-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:24:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51380887-0114-4ca2-bb26-66fa086e9f76","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:24:16","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 18:51:22] local.INFO: ID present? YES  
[2026-07-28 18:51:22] local.INFO: ID value: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:22] local.INFO: ID empty? NO  
[2026-07-28 18:51:22] local.INFO: Attempting to find record with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:22] local.INFO: Record not found, creating new with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 70, 145, 0, 10150, 70, ?, TR-3581-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:24:18, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 51380887-0114-4ca2-bb26-66fa086e9f76, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:22, 2026-07-28 18:51:22))  
[2026-07-28 18:51:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:29] local.INFO: Model: Transaction  
[2026-07-28 18:51:29] local.INFO: Data received: {"id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","type":"Buying","amount":70,"rate":145,"negotiated_rate":"0","amount_paid":10150,"amount_received":70,"narrative":null,"transaction_number":"TR-3581-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:24:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51380887-0114-4ca2-bb26-66fa086e9f76","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:24:16","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 18:51:29] local.INFO: ID present? YES  
[2026-07-28 18:51:29] local.INFO: ID value: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:29] local.INFO: ID empty? NO  
[2026-07-28 18:51:29] local.INFO: Attempting to find record with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:29] local.INFO: Record not found, creating new with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 70, 145, 0, 10150, 70, ?, TR-3581-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:24:18, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 51380887-0114-4ca2-bb26-66fa086e9f76, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:29, 2026-07-28 18:51:29))  
[2026-07-28 18:51:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:35] local.INFO: Model: Transaction  
[2026-07-28 18:51:35] local.INFO: Data received: {"id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","type":"Buying","amount":70,"rate":145,"negotiated_rate":"0","amount_paid":10150,"amount_received":70,"narrative":null,"transaction_number":"TR-3581-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:24:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51380887-0114-4ca2-bb26-66fa086e9f76","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:24:16","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 18:51:35] local.INFO: ID present? YES  
[2026-07-28 18:51:35] local.INFO: ID value: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:35] local.INFO: ID empty? NO  
[2026-07-28 18:51:35] local.INFO: Attempting to find record with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:35] local.INFO: Record not found, creating new with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 18:51:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 70, 145, 0, 10150, 70, ?, TR-3581-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:24:18, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 51380887-0114-4ca2-bb26-66fa086e9f76, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:35, 2026-07-28 18:51:35))  
[2026-07-28 18:51:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:36] local.INFO: Model: Transaction  
[2026-07-28 18:51:36] local.INFO: Data received: {"id":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3585-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:37:16","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"19c6ddae-9d81-4860-bc92-db1428d325ed","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:37:14","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 18:51:36] local.INFO: ID present? YES  
[2026-07-28 18:51:36] local.INFO: ID value: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:36] local.INFO: ID empty? NO  
[2026-07-28 18:51:36] local.INFO: Attempting to find record with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:36] local.INFO: Record not found, creating new with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3585-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:37:16, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 19c6ddae-9d81-4860-bc92-db1428d325ed, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:51:36, 2026-07-28 18:51:36))  
[2026-07-28 18:51:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:43] local.INFO: Model: Transaction  
[2026-07-28 18:51:43] local.INFO: Data received: {"id":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3585-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:37:16","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"19c6ddae-9d81-4860-bc92-db1428d325ed","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:37:14","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 18:51:43] local.INFO: ID present? YES  
[2026-07-28 18:51:43] local.INFO: ID value: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:43] local.INFO: ID empty? NO  
[2026-07-28 18:51:43] local.INFO: Attempting to find record with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:43] local.INFO: Record not found, creating new with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3585-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:37:16, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 19c6ddae-9d81-4860-bc92-db1428d325ed, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:51:43, 2026-07-28 18:51:43))  
[2026-07-28 18:51:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:49] local.INFO: Model: Transaction  
[2026-07-28 18:51:49] local.INFO: Data received: {"id":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3585-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:37:16","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"19c6ddae-9d81-4860-bc92-db1428d325ed","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:37:14","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 18:51:49] local.INFO: ID present? YES  
[2026-07-28 18:51:49] local.INFO: ID value: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:49] local.INFO: ID empty? NO  
[2026-07-28 18:51:49] local.INFO: Attempting to find record with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:49] local.INFO: Record not found, creating new with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3585-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:37:16, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 19c6ddae-9d81-4860-bc92-db1428d325ed, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:51:49, 2026-07-28 18:51:49))  
[2026-07-28 18:51:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:55] local.INFO: Model: Transaction  
[2026-07-28 18:51:55] local.INFO: Data received: {"id":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3585-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:37:16","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"19c6ddae-9d81-4860-bc92-db1428d325ed","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:37:14","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 18:51:55] local.INFO: ID present? YES  
[2026-07-28 18:51:55] local.INFO: ID value: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:55] local.INFO: ID empty? NO  
[2026-07-28 18:51:55] local.INFO: Attempting to find record with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:55] local.INFO: Record not found, creating new with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 18:51:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3585-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:37:16, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 19c6ddae-9d81-4860-bc92-db1428d325ed, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:51:55, 2026-07-28 18:51:55))  
[2026-07-28 18:51:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:51:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:51:56] local.INFO: Model: Transaction  
[2026-07-28 18:51:56] local.INFO: Data received: {"id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3588-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 09:54:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6a766cad-64a0-45c5-bcf3-d56027870fdc","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-27 09:54:29","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 18:51:56] local.INFO: ID present? YES  
[2026-07-28 18:51:56] local.INFO: ID value: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:51:56] local.INFO: ID empty? NO  
[2026-07-28 18:51:56] local.INFO: Attempting to find record with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:51:56] local.INFO: Record not found, creating new with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:51:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 200, 145, 0, 29000, 200, ?, TR-3588-2026, ?, ?, Completed, ?, ?, 2026-07-27 09:54:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 6a766cad-64a0-45c5-bcf3-d56027870fdc, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:51:56, 2026-07-28 18:51:56))  
[2026-07-28 18:51:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:03] local.INFO: Model: Transaction  
[2026-07-28 18:52:03] local.INFO: Data received: {"id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3588-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 09:54:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6a766cad-64a0-45c5-bcf3-d56027870fdc","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-27 09:54:29","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 18:52:03] local.INFO: ID present? YES  
[2026-07-28 18:52:03] local.INFO: ID value: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:03] local.INFO: ID empty? NO  
[2026-07-28 18:52:03] local.INFO: Attempting to find record with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:03] local.INFO: Record not found, creating new with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 200, 145, 0, 29000, 200, ?, TR-3588-2026, ?, ?, Completed, ?, ?, 2026-07-27 09:54:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 6a766cad-64a0-45c5-bcf3-d56027870fdc, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:03, 2026-07-28 18:52:03))  
[2026-07-28 18:52:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:09] local.INFO: Model: Transaction  
[2026-07-28 18:52:09] local.INFO: Data received: {"id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3588-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 09:54:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6a766cad-64a0-45c5-bcf3-d56027870fdc","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-27 09:54:29","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 18:52:09] local.INFO: ID present? YES  
[2026-07-28 18:52:09] local.INFO: ID value: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:09] local.INFO: ID empty? NO  
[2026-07-28 18:52:09] local.INFO: Attempting to find record with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:09] local.INFO: Record not found, creating new with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 200, 145, 0, 29000, 200, ?, TR-3588-2026, ?, ?, Completed, ?, ?, 2026-07-27 09:54:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 6a766cad-64a0-45c5-bcf3-d56027870fdc, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:09, 2026-07-28 18:52:09))  
[2026-07-28 18:52:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:15] local.INFO: Model: Transaction  
[2026-07-28 18:52:15] local.INFO: Data received: {"id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3588-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 09:54:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6a766cad-64a0-45c5-bcf3-d56027870fdc","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-27 09:54:29","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 18:52:15] local.INFO: ID present? YES  
[2026-07-28 18:52:15] local.INFO: ID value: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:15] local.INFO: ID empty? NO  
[2026-07-28 18:52:15] local.INFO: Attempting to find record with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:15] local.INFO: Record not found, creating new with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 18:52:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 200, 145, 0, 29000, 200, ?, TR-3588-2026, ?, ?, Completed, ?, ?, 2026-07-27 09:54:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 6a766cad-64a0-45c5-bcf3-d56027870fdc, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:15, 2026-07-28 18:52:15))  
[2026-07-28 18:52:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:17] local.INFO: Model: Transaction  
[2026-07-28 18:52:17] local.INFO: Data received: {"id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3539-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:52:17] local.INFO: ID present? YES  
[2026-07-28 18:52:17] local.INFO: ID value: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:17] local.INFO: ID empty? NO  
[2026-07-28 18:52:17] local.INFO: Attempting to find record with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:17] local.INFO: Record not found, creating new with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 50, 145, 0, 7250, 50, ?, TR-3539-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:17, 2026-07-28 18:52:17))  
[2026-07-28 18:52:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:23] local.INFO: Model: Transaction  
[2026-07-28 18:52:23] local.INFO: Data received: {"id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3539-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:52:23] local.INFO: ID present? YES  
[2026-07-28 18:52:23] local.INFO: ID value: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:23] local.INFO: ID empty? NO  
[2026-07-28 18:52:23] local.INFO: Attempting to find record with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:23] local.INFO: Record not found, creating new with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 50, 145, 0, 7250, 50, ?, TR-3539-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:23, 2026-07-28 18:52:23))  
[2026-07-28 18:52:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:29] local.INFO: Model: Transaction  
[2026-07-28 18:52:29] local.INFO: Data received: {"id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3539-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:52:29] local.INFO: ID present? YES  
[2026-07-28 18:52:29] local.INFO: ID value: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:29] local.INFO: ID empty? NO  
[2026-07-28 18:52:29] local.INFO: Attempting to find record with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:29] local.INFO: Record not found, creating new with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 50, 145, 0, 7250, 50, ?, TR-3539-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:29, 2026-07-28 18:52:29))  
[2026-07-28 18:52:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:35] local.INFO: Model: Transaction  
[2026-07-28 18:52:35] local.INFO: Data received: {"id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3539-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:52:35] local.INFO: ID present? YES  
[2026-07-28 18:52:35] local.INFO: ID value: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:35] local.INFO: ID empty? NO  
[2026-07-28 18:52:35] local.INFO: Attempting to find record with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:35] local.INFO: Record not found, creating new with ID: 3d4cfa46-ed40-4814-af06-cdc027ad6cc2  
[2026-07-28 18:52:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 50, 145, 0, 7250, 50, ?, TR-3539-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:35, 2026-07-28 18:52:35))  
[2026-07-28 18:52:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:37] local.INFO: Model: Transaction  
[2026-07-28 18:52:37] local.INFO: Data received: {"id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3580-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:31:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"99503e29-57fb-4c38-8571-87666adfe6d4","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 12:31:03","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 18:52:37] local.INFO: ID present? YES  
[2026-07-28 18:52:37] local.INFO: ID value: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:37] local.INFO: ID empty? NO  
[2026-07-28 18:52:37] local.INFO: Attempting to find record with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:37] local.INFO: Record not found, creating new with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3580-2026, ?, ?, Completed, ?, ?, 2026-07-26 12:31:05, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 99503e29-57fb-4c38-8571-87666adfe6d4, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:52:37, 2026-07-28 18:52:37))  
[2026-07-28 18:52:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:43] local.INFO: Model: Transaction  
[2026-07-28 18:52:43] local.INFO: Data received: {"id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3580-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:31:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"99503e29-57fb-4c38-8571-87666adfe6d4","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 12:31:03","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 18:52:43] local.INFO: ID present? YES  
[2026-07-28 18:52:43] local.INFO: ID value: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:43] local.INFO: ID empty? NO  
[2026-07-28 18:52:43] local.INFO: Attempting to find record with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:43] local.INFO: Record not found, creating new with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3580-2026, ?, ?, Completed, ?, ?, 2026-07-26 12:31:05, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 99503e29-57fb-4c38-8571-87666adfe6d4, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:52:43, 2026-07-28 18:52:43))  
[2026-07-28 18:52:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:49] local.INFO: Model: Transaction  
[2026-07-28 18:52:49] local.INFO: Data received: {"id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3580-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:31:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"99503e29-57fb-4c38-8571-87666adfe6d4","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 12:31:03","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 18:52:49] local.INFO: ID present? YES  
[2026-07-28 18:52:49] local.INFO: ID value: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:49] local.INFO: ID empty? NO  
[2026-07-28 18:52:49] local.INFO: Attempting to find record with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:49] local.INFO: Record not found, creating new with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3580-2026, ?, ?, Completed, ?, ?, 2026-07-26 12:31:05, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 99503e29-57fb-4c38-8571-87666adfe6d4, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:52:49, 2026-07-28 18:52:49))  
[2026-07-28 18:52:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:56] local.INFO: Model: Transaction  
[2026-07-28 18:52:56] local.INFO: Data received: {"id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3580-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:31:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"99503e29-57fb-4c38-8571-87666adfe6d4","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 12:31:03","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 18:52:56] local.INFO: ID present? YES  
[2026-07-28 18:52:56] local.INFO: ID value: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:56] local.INFO: ID empty? NO  
[2026-07-28 18:52:56] local.INFO: Attempting to find record with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:56] local.INFO: Record not found, creating new with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 18:52:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3580-2026, ?, ?, Completed, ?, ?, 2026-07-26 12:31:05, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 99503e29-57fb-4c38-8571-87666adfe6d4, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:52:56, 2026-07-28 18:52:56))  
[2026-07-28 18:52:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:52:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:52:57] local.INFO: Model: Transaction  
[2026-07-28 18:52:57] local.INFO: Data received: {"id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3552-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:40:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c1a01635-b173-439c-988a-29f77ddada97","cancellation_reason":null,"customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-21 17:40:35","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 18:52:57] local.INFO: ID present? YES  
[2026-07-28 18:52:57] local.INFO: ID value: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:52:57] local.INFO: ID empty? NO  
[2026-07-28 18:52:57] local.INFO: Attempting to find record with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:52:57] local.INFO: Record not found, creating new with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:52:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 400, 145, 0, 58000, 400, ?, TR-3552-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:40:37, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c1a01635-b173-439c-988a-29f77ddada97, ?, 01e97b5e-0b84-4371-a9a4-b453a56ab660, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:52:57, 2026-07-28 18:52:57))  
[2026-07-28 18:52:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:03] local.INFO: Model: Transaction  
[2026-07-28 18:53:03] local.INFO: Data received: {"id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3552-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:40:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c1a01635-b173-439c-988a-29f77ddada97","cancellation_reason":null,"customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-21 17:40:35","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 18:53:03] local.INFO: ID present? YES  
[2026-07-28 18:53:03] local.INFO: ID value: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:03] local.INFO: ID empty? NO  
[2026-07-28 18:53:03] local.INFO: Attempting to find record with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:03] local.INFO: Record not found, creating new with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 400, 145, 0, 58000, 400, ?, TR-3552-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:40:37, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c1a01635-b173-439c-988a-29f77ddada97, ?, 01e97b5e-0b84-4371-a9a4-b453a56ab660, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:03, 2026-07-28 18:53:03))  
[2026-07-28 18:53:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:09] local.INFO: Model: Transaction  
[2026-07-28 18:53:09] local.INFO: Data received: {"id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3552-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:40:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c1a01635-b173-439c-988a-29f77ddada97","cancellation_reason":null,"customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-21 17:40:35","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 18:53:09] local.INFO: ID present? YES  
[2026-07-28 18:53:09] local.INFO: ID value: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:09] local.INFO: ID empty? NO  
[2026-07-28 18:53:09] local.INFO: Attempting to find record with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:09] local.INFO: Record not found, creating new with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 400, 145, 0, 58000, 400, ?, TR-3552-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:40:37, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c1a01635-b173-439c-988a-29f77ddada97, ?, 01e97b5e-0b84-4371-a9a4-b453a56ab660, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:09, 2026-07-28 18:53:09))  
[2026-07-28 18:53:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:16] local.INFO: Model: Transaction  
[2026-07-28 18:53:16] local.INFO: Data received: {"id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3552-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:40:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c1a01635-b173-439c-988a-29f77ddada97","cancellation_reason":null,"customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-21 17:40:35","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 18:53:16] local.INFO: ID present? YES  
[2026-07-28 18:53:16] local.INFO: ID value: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:16] local.INFO: ID empty? NO  
[2026-07-28 18:53:16] local.INFO: Attempting to find record with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:16] local.INFO: Record not found, creating new with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 18:53:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 400, 145, 0, 58000, 400, ?, TR-3552-2026, ?, ?, Completed, ?, ?, 2026-07-21 17:40:37, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c1a01635-b173-439c-988a-29f77ddada97, ?, 01e97b5e-0b84-4371-a9a4-b453a56ab660, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:16, 2026-07-28 18:53:16))  
[2026-07-28 18:53:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:17] local.INFO: Model: Transaction  
[2026-07-28 18:53:17] local.INFO: Data received: {"id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3590-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:21:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5626f0e7-3a21-4c33-8995-485af9fe4bab","cancellation_reason":null,"customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 11:21:33","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 18:53:17] local.INFO: ID present? YES  
[2026-07-28 18:53:17] local.INFO: ID value: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:17] local.INFO: ID empty? NO  
[2026-07-28 18:53:17] local.INFO: Attempting to find record with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:17] local.INFO: Record not found, creating new with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3590-2026, ?, ?, Completed, ?, ?, 2026-07-27 11:21:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5626f0e7-3a21-4c33-8995-485af9fe4bab, ?, 681aac17-1e34-49d6-acdb-3e73571eb855, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:53:17, 2026-07-28 18:53:17))  
[2026-07-28 18:53:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:23] local.INFO: Model: Transaction  
[2026-07-28 18:53:23] local.INFO: Data received: {"id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3590-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:21:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5626f0e7-3a21-4c33-8995-485af9fe4bab","cancellation_reason":null,"customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 11:21:33","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 18:53:23] local.INFO: ID present? YES  
[2026-07-28 18:53:23] local.INFO: ID value: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:23] local.INFO: ID empty? NO  
[2026-07-28 18:53:23] local.INFO: Attempting to find record with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:23] local.INFO: Record not found, creating new with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3590-2026, ?, ?, Completed, ?, ?, 2026-07-27 11:21:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5626f0e7-3a21-4c33-8995-485af9fe4bab, ?, 681aac17-1e34-49d6-acdb-3e73571eb855, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:53:23, 2026-07-28 18:53:23))  
[2026-07-28 18:53:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:30] local.INFO: Model: Transaction  
[2026-07-28 18:53:30] local.INFO: Data received: {"id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3590-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:21:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5626f0e7-3a21-4c33-8995-485af9fe4bab","cancellation_reason":null,"customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 11:21:33","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 18:53:30] local.INFO: ID present? YES  
[2026-07-28 18:53:30] local.INFO: ID value: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:30] local.INFO: ID empty? NO  
[2026-07-28 18:53:30] local.INFO: Attempting to find record with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:30] local.INFO: Record not found, creating new with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3590-2026, ?, ?, Completed, ?, ?, 2026-07-27 11:21:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5626f0e7-3a21-4c33-8995-485af9fe4bab, ?, 681aac17-1e34-49d6-acdb-3e73571eb855, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:53:30, 2026-07-28 18:53:30))  
[2026-07-28 18:53:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:36] local.INFO: Model: Transaction  
[2026-07-28 18:53:36] local.INFO: Data received: {"id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3590-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:21:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5626f0e7-3a21-4c33-8995-485af9fe4bab","cancellation_reason":null,"customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 11:21:33","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 18:53:36] local.INFO: ID present? YES  
[2026-07-28 18:53:36] local.INFO: ID value: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:36] local.INFO: ID empty? NO  
[2026-07-28 18:53:36] local.INFO: Attempting to find record with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:36] local.INFO: Record not found, creating new with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 18:53:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3590-2026, ?, ?, Completed, ?, ?, 2026-07-27 11:21:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5626f0e7-3a21-4c33-8995-485af9fe4bab, ?, 681aac17-1e34-49d6-acdb-3e73571eb855, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:53:36, 2026-07-28 18:53:36))  
[2026-07-28 18:53:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:37] local.INFO: Model: Transaction  
[2026-07-28 18:53:37] local.INFO: Data received: {"id":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3560-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:18:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:18:43","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 18:53:37] local.INFO: ID present? YES  
[2026-07-28 18:53:37] local.INFO: ID value: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:37] local.INFO: ID empty? NO  
[2026-07-28 18:53:37] local.INFO: Attempting to find record with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:37] local.INFO: Record not found, creating new with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 40, 145, 0, 5800, 40, ?, TR-3560-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:18:45, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:37, 2026-07-28 18:53:37))  
[2026-07-28 18:53:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:44] local.INFO: Model: Transaction  
[2026-07-28 18:53:44] local.INFO: Data received: {"id":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3560-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:18:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:18:43","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 18:53:44] local.INFO: ID present? YES  
[2026-07-28 18:53:44] local.INFO: ID value: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:44] local.INFO: ID empty? NO  
[2026-07-28 18:53:44] local.INFO: Attempting to find record with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:44] local.INFO: Record not found, creating new with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 40, 145, 0, 5800, 40, ?, TR-3560-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:18:45, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:44, 2026-07-28 18:53:44))  
[2026-07-28 18:53:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:50] local.INFO: Model: Transaction  
[2026-07-28 18:53:50] local.INFO: Data received: {"id":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3560-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:18:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:18:43","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 18:53:50] local.INFO: ID present? YES  
[2026-07-28 18:53:50] local.INFO: ID value: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:50] local.INFO: ID empty? NO  
[2026-07-28 18:53:50] local.INFO: Attempting to find record with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:50] local.INFO: Record not found, creating new with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 40, 145, 0, 5800, 40, ?, TR-3560-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:18:45, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:50, 2026-07-28 18:53:50))  
[2026-07-28 18:53:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:56] local.INFO: Model: Transaction  
[2026-07-28 18:53:56] local.INFO: Data received: {"id":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3560-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:18:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:18:43","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 18:53:56] local.INFO: ID present? YES  
[2026-07-28 18:53:56] local.INFO: ID value: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:56] local.INFO: ID empty? NO  
[2026-07-28 18:53:56] local.INFO: Attempting to find record with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:56] local.INFO: Record not found, creating new with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 18:53:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 40, 145, 0, 5800, 40, ?, TR-3560-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:18:45, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:56, 2026-07-28 18:53:56))  
[2026-07-28 18:53:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:53:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:53:57] local.INFO: Model: Transaction  
[2026-07-28 18:53:57] local.INFO: Data received: {"id":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","type":"Buying","amount":60,"rate":144.5,"negotiated_rate":"0","amount_paid":8670,"amount_received":60,"narrative":null,"transaction_number":"TR-3555-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:46:03","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"9b8e711c-8ec3-4738-b32b-438e54347150","cancellation_reason":null,"customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 13:46:01","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 18:53:57] local.INFO: ID present? YES  
[2026-07-28 18:53:57] local.INFO: ID value: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:53:57] local.INFO: ID empty? NO  
[2026-07-28 18:53:57] local.INFO: Attempting to find record with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:53:57] local.INFO: Record not found, creating new with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:53:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 60, 144.5, 0, 8670, 60, ?, TR-3555-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:46:03, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, 9b8e711c-8ec3-4738-b32b-438e54347150, ?, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:53:57, 2026-07-28 18:53:57))  
[2026-07-28 18:53:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:04] local.INFO: Model: Transaction  
[2026-07-28 18:54:04] local.INFO: Data received: {"id":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","type":"Buying","amount":60,"rate":144.5,"negotiated_rate":"0","amount_paid":8670,"amount_received":60,"narrative":null,"transaction_number":"TR-3555-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:46:03","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"9b8e711c-8ec3-4738-b32b-438e54347150","cancellation_reason":null,"customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 13:46:01","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 18:54:04] local.INFO: ID present? YES  
[2026-07-28 18:54:04] local.INFO: ID value: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:04] local.INFO: ID empty? NO  
[2026-07-28 18:54:04] local.INFO: Attempting to find record with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:04] local.INFO: Record not found, creating new with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 60, 144.5, 0, 8670, 60, ?, TR-3555-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:46:03, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, 9b8e711c-8ec3-4738-b32b-438e54347150, ?, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:04, 2026-07-28 18:54:04))  
[2026-07-28 18:54:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:10] local.INFO: Model: Transaction  
[2026-07-28 18:54:10] local.INFO: Data received: {"id":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","type":"Buying","amount":60,"rate":144.5,"negotiated_rate":"0","amount_paid":8670,"amount_received":60,"narrative":null,"transaction_number":"TR-3555-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:46:03","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"9b8e711c-8ec3-4738-b32b-438e54347150","cancellation_reason":null,"customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 13:46:01","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 18:54:10] local.INFO: ID present? YES  
[2026-07-28 18:54:10] local.INFO: ID value: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:10] local.INFO: ID empty? NO  
[2026-07-28 18:54:10] local.INFO: Attempting to find record with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:10] local.INFO: Record not found, creating new with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 60, 144.5, 0, 8670, 60, ?, TR-3555-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:46:03, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, 9b8e711c-8ec3-4738-b32b-438e54347150, ?, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:10, 2026-07-28 18:54:10))  
[2026-07-28 18:54:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:16] local.INFO: Model: Transaction  
[2026-07-28 18:54:16] local.INFO: Data received: {"id":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","type":"Buying","amount":60,"rate":144.5,"negotiated_rate":"0","amount_paid":8670,"amount_received":60,"narrative":null,"transaction_number":"TR-3555-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:46:03","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"9b8e711c-8ec3-4738-b32b-438e54347150","cancellation_reason":null,"customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 13:46:01","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 18:54:16] local.INFO: ID present? YES  
[2026-07-28 18:54:16] local.INFO: ID value: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:16] local.INFO: ID empty? NO  
[2026-07-28 18:54:16] local.INFO: Attempting to find record with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:16] local.INFO: Record not found, creating new with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 18:54:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 60, 144.5, 0, 8670, 60, ?, TR-3555-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:46:03, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, 9b8e711c-8ec3-4738-b32b-438e54347150, ?, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:16, 2026-07-28 18:54:16))  
[2026-07-28 18:54:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:18] local.INFO: Model: Transaction  
[2026-07-28 18:54:18] local.INFO: Data received: {"id":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3568-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:57:56","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"35e035d4-60ba-4c5a-bb0d-e6c202ada8ac","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:57:52","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 18:54:18] local.INFO: ID present? YES  
[2026-07-28 18:54:18] local.INFO: ID value: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:18] local.INFO: ID empty? NO  
[2026-07-28 18:54:18] local.INFO: Attempting to find record with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:18] local.INFO: Record not found, creating new with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 150, 145, 0, 21750, 150, ?, TR-3568-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:57:56, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 35e035d4-60ba-4c5a-bb0d-e6c202ada8ac, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:18, 2026-07-28 18:54:18))  
[2026-07-28 18:54:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:24] local.INFO: Model: Transaction  
[2026-07-28 18:54:24] local.INFO: Data received: {"id":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3568-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:57:56","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"35e035d4-60ba-4c5a-bb0d-e6c202ada8ac","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:57:52","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 18:54:24] local.INFO: ID present? YES  
[2026-07-28 18:54:24] local.INFO: ID value: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:24] local.INFO: ID empty? NO  
[2026-07-28 18:54:24] local.INFO: Attempting to find record with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:24] local.INFO: Record not found, creating new with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 150, 145, 0, 21750, 150, ?, TR-3568-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:57:56, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 35e035d4-60ba-4c5a-bb0d-e6c202ada8ac, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:24, 2026-07-28 18:54:24))  
[2026-07-28 18:54:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:30] local.INFO: Model: Transaction  
[2026-07-28 18:54:30] local.INFO: Data received: {"id":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3568-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:57:56","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"35e035d4-60ba-4c5a-bb0d-e6c202ada8ac","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:57:52","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 18:54:30] local.INFO: ID present? YES  
[2026-07-28 18:54:30] local.INFO: ID value: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:30] local.INFO: ID empty? NO  
[2026-07-28 18:54:30] local.INFO: Attempting to find record with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:30] local.INFO: Record not found, creating new with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 150, 145, 0, 21750, 150, ?, TR-3568-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:57:56, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 35e035d4-60ba-4c5a-bb0d-e6c202ada8ac, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:30, 2026-07-28 18:54:30))  
[2026-07-28 18:54:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:37] local.INFO: Model: Transaction  
[2026-07-28 18:54:37] local.INFO: Data received: {"id":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3568-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:57:56","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"35e035d4-60ba-4c5a-bb0d-e6c202ada8ac","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:57:52","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 18:54:37] local.INFO: ID present? YES  
[2026-07-28 18:54:37] local.INFO: ID value: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:37] local.INFO: ID empty? NO  
[2026-07-28 18:54:37] local.INFO: Attempting to find record with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:37] local.INFO: Record not found, creating new with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 18:54:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 150, 145, 0, 21750, 150, ?, TR-3568-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:57:56, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 35e035d4-60ba-4c5a-bb0d-e6c202ada8ac, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:37, 2026-07-28 18:54:37))  
[2026-07-28 18:54:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:38] local.INFO: Model: Transaction  
[2026-07-28 18:54:38] local.INFO: Data received: {"id":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","type":"Buying","amount":75,"rate":145,"negotiated_rate":"0","amount_paid":10875,"amount_received":75,"narrative":null,"transaction_number":"TR-3572-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:33:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7dc2185b-4cef-4838-b1f7-61fb47eabe7f","cancellation_reason":null,"customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:33:09","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 18:54:38] local.INFO: ID present? YES  
[2026-07-28 18:54:38] local.INFO: ID value: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:38] local.INFO: ID empty? NO  
[2026-07-28 18:54:38] local.INFO: Attempting to find record with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:38] local.INFO: Record not found, creating new with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 75, 145, 0, 10875, 75, ?, TR-3572-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:33:11, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 7dc2185b-4cef-4838-b1f7-61fb47eabe7f, ?, eebd93cd-e521-4801-8bcf-4ee59786c637, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:38, 2026-07-28 18:54:38))  
[2026-07-28 18:54:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:44] local.INFO: Model: Transaction  
[2026-07-28 18:54:44] local.INFO: Data received: {"id":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","type":"Buying","amount":75,"rate":145,"negotiated_rate":"0","amount_paid":10875,"amount_received":75,"narrative":null,"transaction_number":"TR-3572-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:33:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7dc2185b-4cef-4838-b1f7-61fb47eabe7f","cancellation_reason":null,"customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:33:09","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 18:54:44] local.INFO: ID present? YES  
[2026-07-28 18:54:44] local.INFO: ID value: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:44] local.INFO: ID empty? NO  
[2026-07-28 18:54:44] local.INFO: Attempting to find record with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:44] local.INFO: Record not found, creating new with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 75, 145, 0, 10875, 75, ?, TR-3572-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:33:11, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 7dc2185b-4cef-4838-b1f7-61fb47eabe7f, ?, eebd93cd-e521-4801-8bcf-4ee59786c637, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:44, 2026-07-28 18:54:44))  
[2026-07-28 18:54:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:50] local.INFO: Model: Transaction  
[2026-07-28 18:54:50] local.INFO: Data received: {"id":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","type":"Buying","amount":75,"rate":145,"negotiated_rate":"0","amount_paid":10875,"amount_received":75,"narrative":null,"transaction_number":"TR-3572-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:33:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7dc2185b-4cef-4838-b1f7-61fb47eabe7f","cancellation_reason":null,"customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:33:09","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 18:54:50] local.INFO: ID present? YES  
[2026-07-28 18:54:50] local.INFO: ID value: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:50] local.INFO: ID empty? NO  
[2026-07-28 18:54:50] local.INFO: Attempting to find record with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:50] local.INFO: Record not found, creating new with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 75, 145, 0, 10875, 75, ?, TR-3572-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:33:11, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 7dc2185b-4cef-4838-b1f7-61fb47eabe7f, ?, eebd93cd-e521-4801-8bcf-4ee59786c637, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:50, 2026-07-28 18:54:50))  
[2026-07-28 18:54:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:57] local.INFO: Model: Transaction  
[2026-07-28 18:54:57] local.INFO: Data received: {"id":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","type":"Buying","amount":75,"rate":145,"negotiated_rate":"0","amount_paid":10875,"amount_received":75,"narrative":null,"transaction_number":"TR-3572-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:33:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7dc2185b-4cef-4838-b1f7-61fb47eabe7f","cancellation_reason":null,"customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:33:09","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 18:54:57] local.INFO: ID present? YES  
[2026-07-28 18:54:57] local.INFO: ID value: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:57] local.INFO: ID empty? NO  
[2026-07-28 18:54:57] local.INFO: Attempting to find record with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:57] local.INFO: Record not found, creating new with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 18:54:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 75, 145, 0, 10875, 75, ?, TR-3572-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:33:11, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 7dc2185b-4cef-4838-b1f7-61fb47eabe7f, ?, eebd93cd-e521-4801-8bcf-4ee59786c637, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:57, 2026-07-28 18:54:57))  
[2026-07-28 18:54:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:54:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:54:58] local.INFO: Model: Transaction  
[2026-07-28 18:54:58] local.INFO: Data received: {"id":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3559-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:08:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4a21a957-1822-4f47-9643-1bac7df6c8bd","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:07:57","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 18:54:58] local.INFO: ID present? YES  
[2026-07-28 18:54:58] local.INFO: ID value: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:54:58] local.INFO: ID empty? NO  
[2026-07-28 18:54:58] local.INFO: Attempting to find record with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:54:58] local.INFO: Record not found, creating new with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:54:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 300, 145, 0, 43500, 300, ?, TR-3559-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:08:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4a21a957-1822-4f47-9643-1bac7df6c8bd, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:54:58, 2026-07-28 18:54:58))  
[2026-07-28 18:54:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:04] local.INFO: Model: Transaction  
[2026-07-28 18:55:04] local.INFO: Data received: {"id":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3559-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:08:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4a21a957-1822-4f47-9643-1bac7df6c8bd","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:07:57","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 18:55:04] local.INFO: ID present? YES  
[2026-07-28 18:55:04] local.INFO: ID value: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:04] local.INFO: ID empty? NO  
[2026-07-28 18:55:04] local.INFO: Attempting to find record with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:04] local.INFO: Record not found, creating new with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 300, 145, 0, 43500, 300, ?, TR-3559-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:08:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4a21a957-1822-4f47-9643-1bac7df6c8bd, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:55:04, 2026-07-28 18:55:04))  
[2026-07-28 18:55:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:10] local.INFO: Model: Transaction  
[2026-07-28 18:55:10] local.INFO: Data received: {"id":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3559-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:08:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4a21a957-1822-4f47-9643-1bac7df6c8bd","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:07:57","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 18:55:10] local.INFO: ID present? YES  
[2026-07-28 18:55:10] local.INFO: ID value: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:10] local.INFO: ID empty? NO  
[2026-07-28 18:55:10] local.INFO: Attempting to find record with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:10] local.INFO: Record not found, creating new with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 300, 145, 0, 43500, 300, ?, TR-3559-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:08:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4a21a957-1822-4f47-9643-1bac7df6c8bd, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:55:10, 2026-07-28 18:55:10))  
[2026-07-28 18:55:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:17] local.INFO: Model: Transaction  
[2026-07-28 18:55:17] local.INFO: Data received: {"id":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3559-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:08:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4a21a957-1822-4f47-9643-1bac7df6c8bd","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:07:57","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 18:55:17] local.INFO: ID present? YES  
[2026-07-28 18:55:17] local.INFO: ID value: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:17] local.INFO: ID empty? NO  
[2026-07-28 18:55:17] local.INFO: Attempting to find record with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:17] local.INFO: Record not found, creating new with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 18:55:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 300, 145, 0, 43500, 300, ?, TR-3559-2026, ?, ?, Completed, ?, ?, 2026-07-24 15:08:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4a21a957-1822-4f47-9643-1bac7df6c8bd, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:55:17, 2026-07-28 18:55:17))  
[2026-07-28 18:55:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:18] local.INFO: Model: Transaction  
[2026-07-28 18:55:18] local.INFO: Data received: {"id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3562-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:01:38","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ee134ada-c588-4f38-863a-956783466e0b","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 16:01:36","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 18:55:18] local.INFO: ID present? YES  
[2026-07-28 18:55:18] local.INFO: ID value: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:18] local.INFO: ID empty? NO  
[2026-07-28 18:55:18] local.INFO: Attempting to find record with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:18] local.INFO: Record not found, creating new with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3562-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:01:38, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, ee134ada-c588-4f38-863a-956783466e0b, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:55:18, 2026-07-28 18:55:18))  
[2026-07-28 18:55:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:24] local.INFO: Model: Transaction  
[2026-07-28 18:55:24] local.INFO: Data received: {"id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3562-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:01:38","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ee134ada-c588-4f38-863a-956783466e0b","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 16:01:36","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 18:55:24] local.INFO: ID present? YES  
[2026-07-28 18:55:24] local.INFO: ID value: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:24] local.INFO: ID empty? NO  
[2026-07-28 18:55:24] local.INFO: Attempting to find record with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:24] local.INFO: Record not found, creating new with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3562-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:01:38, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, ee134ada-c588-4f38-863a-956783466e0b, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:55:24, 2026-07-28 18:55:24))  
[2026-07-28 18:55:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:31] local.INFO: Model: Transaction  
[2026-07-28 18:55:31] local.INFO: Data received: {"id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3562-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:01:38","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ee134ada-c588-4f38-863a-956783466e0b","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 16:01:36","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 18:55:31] local.INFO: ID present? YES  
[2026-07-28 18:55:31] local.INFO: ID value: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:31] local.INFO: ID empty? NO  
[2026-07-28 18:55:31] local.INFO: Attempting to find record with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:31] local.INFO: Record not found, creating new with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3562-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:01:38, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, ee134ada-c588-4f38-863a-956783466e0b, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:55:31, 2026-07-28 18:55:31))  
[2026-07-28 18:55:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:37] local.INFO: Model: Transaction  
[2026-07-28 18:55:37] local.INFO: Data received: {"id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3562-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:01:38","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ee134ada-c588-4f38-863a-956783466e0b","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 16:01:36","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 18:55:37] local.INFO: ID present? YES  
[2026-07-28 18:55:37] local.INFO: ID value: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:37] local.INFO: ID empty? NO  
[2026-07-28 18:55:37] local.INFO: Attempting to find record with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:37] local.INFO: Record not found, creating new with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 18:55:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3562-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:01:38, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, ee134ada-c588-4f38-863a-956783466e0b, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:55:37, 2026-07-28 18:55:37))  
[2026-07-28 18:55:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:38] local.INFO: Model: Transaction  
[2026-07-28 18:55:38] local.INFO: Data received: {"id":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3586-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:38:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"879e1709-4d91-499e-9601-0909465d4ed8","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:38:24","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 18:55:38] local.INFO: ID present? YES  
[2026-07-28 18:55:38] local.INFO: ID value: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:38] local.INFO: ID empty? NO  
[2026-07-28 18:55:38] local.INFO: Attempting to find record with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:38] local.INFO: Record not found, creating new with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3586-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:38:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 879e1709-4d91-499e-9601-0909465d4ed8, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:55:38, 2026-07-28 18:55:38))  
[2026-07-28 18:55:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:44] local.INFO: Model: Transaction  
[2026-07-28 18:55:44] local.INFO: Data received: {"id":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3586-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:38:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"879e1709-4d91-499e-9601-0909465d4ed8","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:38:24","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 18:55:44] local.INFO: ID present? YES  
[2026-07-28 18:55:44] local.INFO: ID value: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:44] local.INFO: ID empty? NO  
[2026-07-28 18:55:44] local.INFO: Attempting to find record with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:44] local.INFO: Record not found, creating new with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3586-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:38:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 879e1709-4d91-499e-9601-0909465d4ed8, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:55:44, 2026-07-28 18:55:44))  
[2026-07-28 18:55:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:51] local.INFO: Model: Transaction  
[2026-07-28 18:55:51] local.INFO: Data received: {"id":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3586-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:38:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"879e1709-4d91-499e-9601-0909465d4ed8","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:38:24","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 18:55:51] local.INFO: ID present? YES  
[2026-07-28 18:55:51] local.INFO: ID value: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:51] local.INFO: ID empty? NO  
[2026-07-28 18:55:51] local.INFO: Attempting to find record with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:51] local.INFO: Record not found, creating new with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3586-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:38:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 879e1709-4d91-499e-9601-0909465d4ed8, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:55:51, 2026-07-28 18:55:51))  
[2026-07-28 18:55:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:57] local.INFO: Model: Transaction  
[2026-07-28 18:55:57] local.INFO: Data received: {"id":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3586-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:38:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"879e1709-4d91-499e-9601-0909465d4ed8","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:38:24","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 18:55:57] local.INFO: ID present? YES  
[2026-07-28 18:55:57] local.INFO: ID value: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:57] local.INFO: ID empty? NO  
[2026-07-28 18:55:57] local.INFO: Attempting to find record with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:57] local.INFO: Record not found, creating new with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 18:55:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 100, 127.5, 0, 12750, 100, ?, TR-3586-2026, ?, ?, Completed, ?, ?, 2026-07-26 16:38:26, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 879e1709-4d91-499e-9601-0909465d4ed8, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:55:57, 2026-07-28 18:55:57))  
[2026-07-28 18:55:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:55:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:55:58] local.INFO: Model: Transaction  
[2026-07-28 18:55:58] local.INFO: Data received: {"id":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","type":"Buying","amount":90,"rate":127.5,"negotiated_rate":"0","amount_paid":11475,"amount_received":90,"narrative":null,"transaction_number":"TR-3538-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:55:58] local.INFO: ID present? YES  
[2026-07-28 18:55:58] local.INFO: ID value: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:55:58] local.INFO: ID empty? NO  
[2026-07-28 18:55:58] local.INFO: Attempting to find record with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:55:58] local.INFO: Record not found, creating new with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:55:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 90, 127.5, 0, 11475, 90, ?, TR-3538-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:55:58, 2026-07-28 18:55:58))  
[2026-07-28 18:55:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:05] local.INFO: Model: Transaction  
[2026-07-28 18:56:05] local.INFO: Data received: {"id":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","type":"Buying","amount":90,"rate":127.5,"negotiated_rate":"0","amount_paid":11475,"amount_received":90,"narrative":null,"transaction_number":"TR-3538-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:56:05] local.INFO: ID present? YES  
[2026-07-28 18:56:05] local.INFO: ID value: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:05] local.INFO: ID empty? NO  
[2026-07-28 18:56:05] local.INFO: Attempting to find record with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:05] local.INFO: Record not found, creating new with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 90, 127.5, 0, 11475, 90, ?, TR-3538-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:56:05, 2026-07-28 18:56:05))  
[2026-07-28 18:56:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:11] local.INFO: Model: Transaction  
[2026-07-28 18:56:11] local.INFO: Data received: {"id":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","type":"Buying","amount":90,"rate":127.5,"negotiated_rate":"0","amount_paid":11475,"amount_received":90,"narrative":null,"transaction_number":"TR-3538-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:56:11] local.INFO: ID present? YES  
[2026-07-28 18:56:11] local.INFO: ID value: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:11] local.INFO: ID empty? NO  
[2026-07-28 18:56:11] local.INFO: Attempting to find record with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:11] local.INFO: Record not found, creating new with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 90, 127.5, 0, 11475, 90, ?, TR-3538-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:56:11, 2026-07-28 18:56:11))  
[2026-07-28 18:56:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:17] local.INFO: Model: Transaction  
[2026-07-28 18:56:17] local.INFO: Data received: {"id":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","type":"Buying","amount":90,"rate":127.5,"negotiated_rate":"0","amount_paid":11475,"amount_received":90,"narrative":null,"transaction_number":"TR-3538-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-07 15:51:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4ec785dc-4c38-4c72-954f-5ef3fb612c6b","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-07 15:51:14","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 18:56:17] local.INFO: ID present? YES  
[2026-07-28 18:56:17] local.INFO: ID value: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:17] local.INFO: ID empty? NO  
[2026-07-28 18:56:17] local.INFO: Attempting to find record with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:17] local.INFO: Record not found, creating new with ID: 76bb0073-4ae4-400a-9dea-b111852fa433  
[2026-07-28 18:56:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 90, 127.5, 0, 11475, 90, ?, TR-3538-2026, ?, ?, Completed, ?, ?, 2026-07-07 15:51:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 4ec785dc-4c38-4c72-954f-5ef3fb612c6b, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:56:17, 2026-07-28 18:56:17))  
[2026-07-28 18:56:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:18] local.INFO: Model: Transaction  
[2026-07-28 18:56:18] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 18:56:18] local.INFO: ID present? YES  
[2026-07-28 18:56:18] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:18] local.INFO: ID empty? NO  
[2026-07-28 18:56:18] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:18] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 18:56:18, 2026-07-28 18:56:18))  
[2026-07-28 18:56:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:25] local.INFO: Model: Transaction  
[2026-07-28 18:56:25] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 18:56:25] local.INFO: ID present? YES  
[2026-07-28 18:56:25] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:25] local.INFO: ID empty? NO  
[2026-07-28 18:56:25] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:25] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 18:56:25, 2026-07-28 18:56:25))  
[2026-07-28 18:56:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:31] local.INFO: Model: Transaction  
[2026-07-28 18:56:31] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 18:56:31] local.INFO: ID present? YES  
[2026-07-28 18:56:31] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:31] local.INFO: ID empty? NO  
[2026-07-28 18:56:31] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:31] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 18:56:31, 2026-07-28 18:56:31))  
[2026-07-28 18:56:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:37] local.INFO: Model: Transaction  
[2026-07-28 18:56:37] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 18:56:37] local.INFO: ID present? YES  
[2026-07-28 18:56:37] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:37] local.INFO: ID empty? NO  
[2026-07-28 18:56:37] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:37] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 18:56:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 18:56:37, 2026-07-28 18:56:37))  
[2026-07-28 18:56:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:38] local.INFO: Model: Transaction  
[2026-07-28 18:56:38] local.INFO: Data received: {"id":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","type":"Selling","amount":225,"rate":150.69999999999998863131622783839702606201171875,"negotiated_rate":"0","amount_paid":225,"amount_received":33907.5,"narrative":null,"transaction_number":"TR-3598-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:25:40","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"88cd9ca2-eca8-4953-b726-12d95986c23a","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28 17:25:37","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 18:56:38] local.INFO: ID present? YES  
[2026-07-28 18:56:38] local.INFO: ID value: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:38] local.INFO: ID empty? NO  
[2026-07-28 18:56:38] local.INFO: Attempting to find record with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:38] local.INFO: Record not found, creating new with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 225, 150.7, 0, 225, 33907.5, ?, TR-3598-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:25:40, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 88cd9ca2-eca8-4953-b726-12d95986c23a, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 059c4799-e3cc-4177-98f6-327e7a36fab7, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 18:56:38, 2026-07-28 18:56:38))  
[2026-07-28 18:56:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:45] local.INFO: Model: Transaction  
[2026-07-28 18:56:45] local.INFO: Data received: {"id":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","type":"Selling","amount":225,"rate":150.69999999999998863131622783839702606201171875,"negotiated_rate":"0","amount_paid":225,"amount_received":33907.5,"narrative":null,"transaction_number":"TR-3598-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:25:40","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"88cd9ca2-eca8-4953-b726-12d95986c23a","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28 17:25:37","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 18:56:45] local.INFO: ID present? YES  
[2026-07-28 18:56:45] local.INFO: ID value: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:45] local.INFO: ID empty? NO  
[2026-07-28 18:56:45] local.INFO: Attempting to find record with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:45] local.INFO: Record not found, creating new with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 225, 150.7, 0, 225, 33907.5, ?, TR-3598-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:25:40, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 88cd9ca2-eca8-4953-b726-12d95986c23a, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 059c4799-e3cc-4177-98f6-327e7a36fab7, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 18:56:45, 2026-07-28 18:56:45))  
[2026-07-28 18:56:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:51] local.INFO: Model: Transaction  
[2026-07-28 18:56:51] local.INFO: Data received: {"id":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","type":"Selling","amount":225,"rate":150.69999999999998863131622783839702606201171875,"negotiated_rate":"0","amount_paid":225,"amount_received":33907.5,"narrative":null,"transaction_number":"TR-3598-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:25:40","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"88cd9ca2-eca8-4953-b726-12d95986c23a","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28 17:25:37","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 18:56:51] local.INFO: ID present? YES  
[2026-07-28 18:56:51] local.INFO: ID value: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:51] local.INFO: ID empty? NO  
[2026-07-28 18:56:51] local.INFO: Attempting to find record with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:51] local.INFO: Record not found, creating new with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 225, 150.7, 0, 225, 33907.5, ?, TR-3598-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:25:40, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 88cd9ca2-eca8-4953-b726-12d95986c23a, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 059c4799-e3cc-4177-98f6-327e7a36fab7, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 18:56:51, 2026-07-28 18:56:51))  
[2026-07-28 18:56:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:57] local.INFO: Model: Transaction  
[2026-07-28 18:56:57] local.INFO: Data received: {"id":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","type":"Selling","amount":225,"rate":150.69999999999998863131622783839702606201171875,"negotiated_rate":"0","amount_paid":225,"amount_received":33907.5,"narrative":null,"transaction_number":"TR-3598-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:25:40","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"88cd9ca2-eca8-4953-b726-12d95986c23a","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28 17:25:37","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 18:56:57] local.INFO: ID present? YES  
[2026-07-28 18:56:57] local.INFO: ID value: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:57] local.INFO: ID empty? NO  
[2026-07-28 18:56:57] local.INFO: Attempting to find record with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:57] local.INFO: Record not found, creating new with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 18:56:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 225, 150.7, 0, 225, 33907.5, ?, TR-3598-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:25:40, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 88cd9ca2-eca8-4953-b726-12d95986c23a, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 059c4799-e3cc-4177-98f6-327e7a36fab7, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 18:56:57, 2026-07-28 18:56:57))  
[2026-07-28 18:56:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:56:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:56:59] local.INFO: Model: Transaction  
[2026-07-28 18:56:59] local.INFO: Data received: {"id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3558-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:56:42","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"384c3176-0b9c-4599-a733-e91db2f47c08","cancellation_reason":null,"customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:56:40","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 18:56:59] local.INFO: ID present? YES  
[2026-07-28 18:56:59] local.INFO: ID value: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:56:59] local.INFO: ID empty? NO  
[2026-07-28 18:56:59] local.INFO: Attempting to find record with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:56:59] local.INFO: Record not found, creating new with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:56:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3558-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:56:42, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 384c3176-0b9c-4599-a733-e91db2f47c08, ?, 0cb527ce-dc0f-4362-a4ac-df5850718eda, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:56:59, 2026-07-28 18:56:59))  
[2026-07-28 18:56:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:05] local.INFO: Model: Transaction  
[2026-07-28 18:57:05] local.INFO: Data received: {"id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3558-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:56:42","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"384c3176-0b9c-4599-a733-e91db2f47c08","cancellation_reason":null,"customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:56:40","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 18:57:05] local.INFO: ID present? YES  
[2026-07-28 18:57:05] local.INFO: ID value: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:05] local.INFO: ID empty? NO  
[2026-07-28 18:57:05] local.INFO: Attempting to find record with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:05] local.INFO: Record not found, creating new with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3558-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:56:42, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 384c3176-0b9c-4599-a733-e91db2f47c08, ?, 0cb527ce-dc0f-4362-a4ac-df5850718eda, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:57:05, 2026-07-28 18:57:05))  
[2026-07-28 18:57:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:11] local.INFO: Model: Transaction  
[2026-07-28 18:57:11] local.INFO: Data received: {"id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3558-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:56:42","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"384c3176-0b9c-4599-a733-e91db2f47c08","cancellation_reason":null,"customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:56:40","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 18:57:11] local.INFO: ID present? YES  
[2026-07-28 18:57:11] local.INFO: ID value: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:11] local.INFO: ID empty? NO  
[2026-07-28 18:57:11] local.INFO: Attempting to find record with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:11] local.INFO: Record not found, creating new with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3558-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:56:42, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 384c3176-0b9c-4599-a733-e91db2f47c08, ?, 0cb527ce-dc0f-4362-a4ac-df5850718eda, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:57:11, 2026-07-28 18:57:11))  
[2026-07-28 18:57:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:18] local.INFO: Model: Transaction  
[2026-07-28 18:57:18] local.INFO: Data received: {"id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3558-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:56:42","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"384c3176-0b9c-4599-a733-e91db2f47c08","cancellation_reason":null,"customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:56:40","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 18:57:18] local.INFO: ID present? YES  
[2026-07-28 18:57:18] local.INFO: ID value: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:18] local.INFO: ID empty? NO  
[2026-07-28 18:57:18] local.INFO: Attempting to find record with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:18] local.INFO: Record not found, creating new with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 18:57:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 50, 145, 0, 7250, 50, ?, TR-3558-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:56:42, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 384c3176-0b9c-4599-a733-e91db2f47c08, ?, 0cb527ce-dc0f-4362-a4ac-df5850718eda, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:57:18, 2026-07-28 18:57:18))  
[2026-07-28 18:57:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:19] local.INFO: Model: Transaction  
[2026-07-28 18:57:19] local.INFO: Data received: {"id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","type":"Buying","amount":20,"rate":127.5,"negotiated_rate":"0","amount_paid":2550,"amount_received":20,"narrative":null,"transaction_number":"TR-3563-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:33:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a02d8fa-c045-47b9-9216-1779b3756a1f","cancellation_reason":null,"customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 16:33:44","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 18:57:19] local.INFO: ID present? YES  
[2026-07-28 18:57:19] local.INFO: ID value: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:19] local.INFO: ID empty? NO  
[2026-07-28 18:57:19] local.INFO: Attempting to find record with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:19] local.INFO: Record not found, creating new with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 20, 127.5, 0, 2550, 20, ?, TR-3563-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:33:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a02d8fa-c045-47b9-9216-1779b3756a1f, ?, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:57:19, 2026-07-28 18:57:19))  
[2026-07-28 18:57:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:25] local.INFO: Model: Transaction  
[2026-07-28 18:57:25] local.INFO: Data received: {"id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","type":"Buying","amount":20,"rate":127.5,"negotiated_rate":"0","amount_paid":2550,"amount_received":20,"narrative":null,"transaction_number":"TR-3563-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:33:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a02d8fa-c045-47b9-9216-1779b3756a1f","cancellation_reason":null,"customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 16:33:44","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 18:57:25] local.INFO: ID present? YES  
[2026-07-28 18:57:25] local.INFO: ID value: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:25] local.INFO: ID empty? NO  
[2026-07-28 18:57:25] local.INFO: Attempting to find record with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:25] local.INFO: Record not found, creating new with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 20, 127.5, 0, 2550, 20, ?, TR-3563-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:33:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a02d8fa-c045-47b9-9216-1779b3756a1f, ?, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:57:25, 2026-07-28 18:57:25))  
[2026-07-28 18:57:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:31] local.INFO: Model: Transaction  
[2026-07-28 18:57:31] local.INFO: Data received: {"id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","type":"Buying","amount":20,"rate":127.5,"negotiated_rate":"0","amount_paid":2550,"amount_received":20,"narrative":null,"transaction_number":"TR-3563-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:33:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a02d8fa-c045-47b9-9216-1779b3756a1f","cancellation_reason":null,"customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 16:33:44","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 18:57:31] local.INFO: ID present? YES  
[2026-07-28 18:57:31] local.INFO: ID value: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:31] local.INFO: ID empty? NO  
[2026-07-28 18:57:31] local.INFO: Attempting to find record with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:31] local.INFO: Record not found, creating new with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 20, 127.5, 0, 2550, 20, ?, TR-3563-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:33:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a02d8fa-c045-47b9-9216-1779b3756a1f, ?, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:57:31, 2026-07-28 18:57:31))  
[2026-07-28 18:57:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:38] local.INFO: Model: Transaction  
[2026-07-28 18:57:38] local.INFO: Data received: {"id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","type":"Buying","amount":20,"rate":127.5,"negotiated_rate":"0","amount_paid":2550,"amount_received":20,"narrative":null,"transaction_number":"TR-3563-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:33:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a02d8fa-c045-47b9-9216-1779b3756a1f","cancellation_reason":null,"customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 16:33:44","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 18:57:38] local.INFO: ID present? YES  
[2026-07-28 18:57:38] local.INFO: ID value: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:38] local.INFO: ID empty? NO  
[2026-07-28 18:57:38] local.INFO: Attempting to find record with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:38] local.INFO: Record not found, creating new with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 18:57:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 20, 127.5, 0, 2550, 20, ?, TR-3563-2026, ?, ?, Completed, ?, ?, 2026-07-24 16:33:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a02d8fa-c045-47b9-9216-1779b3756a1f, ?, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:57:38, 2026-07-28 18:57:38))  
[2026-07-28 18:57:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:39] local.INFO: Model: Transaction  
[2026-07-28 18:57:39] local.INFO: Data received: {"id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3582-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:37:07","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"653bc0ea-2a4e-4621-9921-f2eea24c5e73","cancellation_reason":null,"customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:37:05","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 18:57:39] local.INFO: ID present? YES  
[2026-07-28 18:57:39] local.INFO: ID value: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:39] local.INFO: ID empty? NO  
[2026-07-28 18:57:39] local.INFO: Attempting to find record with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:39] local.INFO: Record not found, creating new with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 100, 145, 0, 14500, 100, ?, TR-3582-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:37:07, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 653bc0ea-2a4e-4621-9921-f2eea24c5e73, ?, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:57:39, 2026-07-28 18:57:39))  
[2026-07-28 18:57:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:45] local.INFO: Model: Transaction  
[2026-07-28 18:57:45] local.INFO: Data received: {"id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3582-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:37:07","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"653bc0ea-2a4e-4621-9921-f2eea24c5e73","cancellation_reason":null,"customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:37:05","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 18:57:45] local.INFO: ID present? YES  
[2026-07-28 18:57:45] local.INFO: ID value: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:45] local.INFO: ID empty? NO  
[2026-07-28 18:57:45] local.INFO: Attempting to find record with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:45] local.INFO: Record not found, creating new with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 100, 145, 0, 14500, 100, ?, TR-3582-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:37:07, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 653bc0ea-2a4e-4621-9921-f2eea24c5e73, ?, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:57:45, 2026-07-28 18:57:45))  
[2026-07-28 18:57:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:52] local.INFO: Model: Transaction  
[2026-07-28 18:57:52] local.INFO: Data received: {"id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3582-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:37:07","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"653bc0ea-2a4e-4621-9921-f2eea24c5e73","cancellation_reason":null,"customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:37:05","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 18:57:52] local.INFO: ID present? YES  
[2026-07-28 18:57:52] local.INFO: ID value: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:52] local.INFO: ID empty? NO  
[2026-07-28 18:57:52] local.INFO: Attempting to find record with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:52] local.INFO: Record not found, creating new with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 100, 145, 0, 14500, 100, ?, TR-3582-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:37:07, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 653bc0ea-2a4e-4621-9921-f2eea24c5e73, ?, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:57:52, 2026-07-28 18:57:52))  
[2026-07-28 18:57:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:58] local.INFO: Model: Transaction  
[2026-07-28 18:57:58] local.INFO: Data received: {"id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3582-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:37:07","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"653bc0ea-2a4e-4621-9921-f2eea24c5e73","cancellation_reason":null,"customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:37:05","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 18:57:58] local.INFO: ID present? YES  
[2026-07-28 18:57:58] local.INFO: ID value: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:58] local.INFO: ID empty? NO  
[2026-07-28 18:57:58] local.INFO: Attempting to find record with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:58] local.INFO: Record not found, creating new with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 18:57:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 100, 145, 0, 14500, 100, ?, TR-3582-2026, ?, ?, Completed, ?, ?, 2026-07-26 13:37:07, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 653bc0ea-2a4e-4621-9921-f2eea24c5e73, ?, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:57:58, 2026-07-28 18:57:58))  
[2026-07-28 18:57:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:57:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:57:59] local.INFO: Model: Transaction  
[2026-07-28 18:57:59] local.INFO: Data received: {"id":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","type":"Buying","amount":300,"rate":127.5,"negotiated_rate":"0","amount_paid":38250,"amount_received":300,"narrative":null,"transaction_number":"TR-3540-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 11:37:50","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fbbb1139-856c-4842-9126-f90a6dc640ed","cancellation_reason":null,"customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 11:34:57","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 18:57:59] local.INFO: ID present? YES  
[2026-07-28 18:57:59] local.INFO: ID value: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:57:59] local.INFO: ID empty? NO  
[2026-07-28 18:57:59] local.INFO: Attempting to find record with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:57:59] local.INFO: Record not found, creating new with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:57:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 300, 127.5, 0, 38250, 300, ?, TR-3540-2026, ?, ?, Completed, ?, ?, 2026-07-18 11:37:50, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fbbb1139-856c-4842-9126-f90a6dc640ed, ?, e7358bee-1c51-4a53-b952-0daa0368ed99, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:57:59, 2026-07-28 18:57:59))  
[2026-07-28 18:57:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:05] local.INFO: Model: Transaction  
[2026-07-28 18:58:05] local.INFO: Data received: {"id":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","type":"Buying","amount":300,"rate":127.5,"negotiated_rate":"0","amount_paid":38250,"amount_received":300,"narrative":null,"transaction_number":"TR-3540-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 11:37:50","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fbbb1139-856c-4842-9126-f90a6dc640ed","cancellation_reason":null,"customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 11:34:57","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 18:58:05] local.INFO: ID present? YES  
[2026-07-28 18:58:05] local.INFO: ID value: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:05] local.INFO: ID empty? NO  
[2026-07-28 18:58:05] local.INFO: Attempting to find record with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:05] local.INFO: Record not found, creating new with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 300, 127.5, 0, 38250, 300, ?, TR-3540-2026, ?, ?, Completed, ?, ?, 2026-07-18 11:37:50, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fbbb1139-856c-4842-9126-f90a6dc640ed, ?, e7358bee-1c51-4a53-b952-0daa0368ed99, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:58:05, 2026-07-28 18:58:05))  
[2026-07-28 18:58:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:12] local.INFO: Model: Transaction  
[2026-07-28 18:58:12] local.INFO: Data received: {"id":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","type":"Buying","amount":300,"rate":127.5,"negotiated_rate":"0","amount_paid":38250,"amount_received":300,"narrative":null,"transaction_number":"TR-3540-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 11:37:50","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fbbb1139-856c-4842-9126-f90a6dc640ed","cancellation_reason":null,"customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 11:34:57","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 18:58:12] local.INFO: ID present? YES  
[2026-07-28 18:58:12] local.INFO: ID value: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:12] local.INFO: ID empty? NO  
[2026-07-28 18:58:12] local.INFO: Attempting to find record with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:12] local.INFO: Record not found, creating new with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 300, 127.5, 0, 38250, 300, ?, TR-3540-2026, ?, ?, Completed, ?, ?, 2026-07-18 11:37:50, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fbbb1139-856c-4842-9126-f90a6dc640ed, ?, e7358bee-1c51-4a53-b952-0daa0368ed99, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:58:12, 2026-07-28 18:58:12))  
[2026-07-28 18:58:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:18] local.INFO: Model: Transaction  
[2026-07-28 18:58:18] local.INFO: Data received: {"id":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","type":"Buying","amount":300,"rate":127.5,"negotiated_rate":"0","amount_paid":38250,"amount_received":300,"narrative":null,"transaction_number":"TR-3540-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 11:37:50","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fbbb1139-856c-4842-9126-f90a6dc640ed","cancellation_reason":null,"customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-18 11:34:57","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 18:58:18] local.INFO: ID present? YES  
[2026-07-28 18:58:18] local.INFO: ID value: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:18] local.INFO: ID empty? NO  
[2026-07-28 18:58:18] local.INFO: Attempting to find record with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:18] local.INFO: Record not found, creating new with ID: 865e304e-db2e-47eb-a33a-155bde9c76d8  
[2026-07-28 18:58:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 300, 127.5, 0, 38250, 300, ?, TR-3540-2026, ?, ?, Completed, ?, ?, 2026-07-18 11:37:50, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fbbb1139-856c-4842-9126-f90a6dc640ed, ?, e7358bee-1c51-4a53-b952-0daa0368ed99, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:58:18, 2026-07-28 18:58:18))  
[2026-07-28 18:58:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:19] local.INFO: Model: Transaction  
[2026-07-28 18:58:19] local.INFO: Data received: {"id":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","type":"Buying","amount":30,"rate":145,"negotiated_rate":"0","amount_paid":4350,"amount_received":30,"narrative":null,"transaction_number":"TR-3583-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 14:02:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d2440bf8-e529-497e-b31a-1d6e03fe4c1c","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 14:02:40","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 18:58:19] local.INFO: ID present? YES  
[2026-07-28 18:58:19] local.INFO: ID value: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:19] local.INFO: ID empty? NO  
[2026-07-28 18:58:19] local.INFO: Attempting to find record with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:19] local.INFO: Record not found, creating new with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 30, 145, 0, 4350, 30, ?, TR-3583-2026, ?, ?, Completed, ?, ?, 2026-07-26 14:02:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d2440bf8-e529-497e-b31a-1d6e03fe4c1c, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:19, 2026-07-28 18:58:19))  
[2026-07-28 18:58:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:26] local.INFO: Model: Transaction  
[2026-07-28 18:58:26] local.INFO: Data received: {"id":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","type":"Buying","amount":30,"rate":145,"negotiated_rate":"0","amount_paid":4350,"amount_received":30,"narrative":null,"transaction_number":"TR-3583-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 14:02:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d2440bf8-e529-497e-b31a-1d6e03fe4c1c","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 14:02:40","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 18:58:26] local.INFO: ID present? YES  
[2026-07-28 18:58:26] local.INFO: ID value: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:26] local.INFO: ID empty? NO  
[2026-07-28 18:58:26] local.INFO: Attempting to find record with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:26] local.INFO: Record not found, creating new with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 30, 145, 0, 4350, 30, ?, TR-3583-2026, ?, ?, Completed, ?, ?, 2026-07-26 14:02:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d2440bf8-e529-497e-b31a-1d6e03fe4c1c, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:26, 2026-07-28 18:58:26))  
[2026-07-28 18:58:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:32] local.INFO: Model: Transaction  
[2026-07-28 18:58:32] local.INFO: Data received: {"id":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","type":"Buying","amount":30,"rate":145,"negotiated_rate":"0","amount_paid":4350,"amount_received":30,"narrative":null,"transaction_number":"TR-3583-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 14:02:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d2440bf8-e529-497e-b31a-1d6e03fe4c1c","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 14:02:40","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 18:58:32] local.INFO: ID present? YES  
[2026-07-28 18:58:32] local.INFO: ID value: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:32] local.INFO: ID empty? NO  
[2026-07-28 18:58:32] local.INFO: Attempting to find record with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:32] local.INFO: Record not found, creating new with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 30, 145, 0, 4350, 30, ?, TR-3583-2026, ?, ?, Completed, ?, ?, 2026-07-26 14:02:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d2440bf8-e529-497e-b31a-1d6e03fe4c1c, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:32, 2026-07-28 18:58:32))  
[2026-07-28 18:58:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:38] local.INFO: Model: Transaction  
[2026-07-28 18:58:38] local.INFO: Data received: {"id":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","type":"Buying","amount":30,"rate":145,"negotiated_rate":"0","amount_paid":4350,"amount_received":30,"narrative":null,"transaction_number":"TR-3583-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 14:02:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d2440bf8-e529-497e-b31a-1d6e03fe4c1c","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 14:02:40","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 18:58:38] local.INFO: ID present? YES  
[2026-07-28 18:58:38] local.INFO: ID value: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:38] local.INFO: ID empty? NO  
[2026-07-28 18:58:38] local.INFO: Attempting to find record with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:38] local.INFO: Record not found, creating new with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 18:58:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 30, 145, 0, 4350, 30, ?, TR-3583-2026, ?, ?, Completed, ?, ?, 2026-07-26 14:02:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d2440bf8-e529-497e-b31a-1d6e03fe4c1c, ?, 6ab2a452-a0c2-404c-878c-03f897122334, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:38, 2026-07-28 18:58:38))  
[2026-07-28 18:58:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:39] local.INFO: Model: Transaction  
[2026-07-28 18:58:39] local.INFO: Data received: {"id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3571-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:31:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c3eccb4a-aad4-469c-ab26-ee57f9d5d935","cancellation_reason":null,"customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:30:58","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 18:58:39] local.INFO: ID present? YES  
[2026-07-28 18:58:39] local.INFO: ID value: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:39] local.INFO: ID empty? NO  
[2026-07-28 18:58:39] local.INFO: Attempting to find record with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:39] local.INFO: Record not found, creating new with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 50, 145, 0, 7250, 50, ?, TR-3571-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:31:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c3eccb4a-aad4-469c-ab26-ee57f9d5d935, ?, 653473cc-1b4c-4586-81f3-8b175e96af25, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:39, 2026-07-28 18:58:39))  
[2026-07-28 18:58:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:46] local.INFO: Model: Transaction  
[2026-07-28 18:58:46] local.INFO: Data received: {"id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3571-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:31:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c3eccb4a-aad4-469c-ab26-ee57f9d5d935","cancellation_reason":null,"customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:30:58","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 18:58:46] local.INFO: ID present? YES  
[2026-07-28 18:58:46] local.INFO: ID value: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:46] local.INFO: ID empty? NO  
[2026-07-28 18:58:46] local.INFO: Attempting to find record with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:46] local.INFO: Record not found, creating new with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 50, 145, 0, 7250, 50, ?, TR-3571-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:31:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c3eccb4a-aad4-469c-ab26-ee57f9d5d935, ?, 653473cc-1b4c-4586-81f3-8b175e96af25, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:46, 2026-07-28 18:58:46))  
[2026-07-28 18:58:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:52] local.INFO: Model: Transaction  
[2026-07-28 18:58:52] local.INFO: Data received: {"id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3571-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:31:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c3eccb4a-aad4-469c-ab26-ee57f9d5d935","cancellation_reason":null,"customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:30:58","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 18:58:52] local.INFO: ID present? YES  
[2026-07-28 18:58:52] local.INFO: ID value: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:52] local.INFO: ID empty? NO  
[2026-07-28 18:58:52] local.INFO: Attempting to find record with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:52] local.INFO: Record not found, creating new with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 50, 145, 0, 7250, 50, ?, TR-3571-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:31:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c3eccb4a-aad4-469c-ab26-ee57f9d5d935, ?, 653473cc-1b4c-4586-81f3-8b175e96af25, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:52, 2026-07-28 18:58:52))  
[2026-07-28 18:58:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:58:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:58:58] local.INFO: Model: Transaction  
[2026-07-28 18:58:58] local.INFO: Data received: {"id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3571-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:31:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c3eccb4a-aad4-469c-ab26-ee57f9d5d935","cancellation_reason":null,"customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:30:58","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 18:58:58] local.INFO: ID present? YES  
[2026-07-28 18:58:58] local.INFO: ID value: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:58] local.INFO: ID empty? NO  
[2026-07-28 18:58:58] local.INFO: Attempting to find record with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:58] local.INFO: Record not found, creating new with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 18:58:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 50, 145, 0, 7250, 50, ?, TR-3571-2026, ?, ?, Completed, ?, ?, 2026-07-26 10:31:00, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c3eccb4a-aad4-469c-ab26-ee57f9d5d935, ?, 653473cc-1b4c-4586-81f3-8b175e96af25, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:58:58, 2026-07-28 18:58:58))  
[2026-07-28 18:58:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:00] local.INFO: Model: Transaction  
[2026-07-28 18:59:00] local.INFO: Data received: {"id":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3554-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:44:49","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fae1deb9-4b7f-47e8-a58b-29452374d690","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 13:44:47","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 18:59:00] local.INFO: ID present? YES  
[2026-07-28 18:59:00] local.INFO: ID value: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:00] local.INFO: ID empty? NO  
[2026-07-28 18:59:00] local.INFO: Attempting to find record with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:00] local.INFO: Record not found, creating new with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3554-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:44:49, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fae1deb9-4b7f-47e8-a58b-29452374d690, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:00, 2026-07-28 18:59:00))  
[2026-07-28 18:59:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:06] local.INFO: Model: Transaction  
[2026-07-28 18:59:06] local.INFO: Data received: {"id":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3554-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:44:49","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fae1deb9-4b7f-47e8-a58b-29452374d690","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 13:44:47","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 18:59:06] local.INFO: ID present? YES  
[2026-07-28 18:59:06] local.INFO: ID value: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:06] local.INFO: ID empty? NO  
[2026-07-28 18:59:06] local.INFO: Attempting to find record with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:06] local.INFO: Record not found, creating new with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3554-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:44:49, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fae1deb9-4b7f-47e8-a58b-29452374d690, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:06, 2026-07-28 18:59:06))  
[2026-07-28 18:59:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:12] local.INFO: Model: Transaction  
[2026-07-28 18:59:12] local.INFO: Data received: {"id":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3554-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:44:49","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fae1deb9-4b7f-47e8-a58b-29452374d690","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 13:44:47","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 18:59:12] local.INFO: ID present? YES  
[2026-07-28 18:59:12] local.INFO: ID value: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:12] local.INFO: ID empty? NO  
[2026-07-28 18:59:12] local.INFO: Attempting to find record with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:12] local.INFO: Record not found, creating new with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3554-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:44:49, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fae1deb9-4b7f-47e8-a58b-29452374d690, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:12, 2026-07-28 18:59:12))  
[2026-07-28 18:59:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:19] local.INFO: Model: Transaction  
[2026-07-28 18:59:19] local.INFO: Data received: {"id":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3554-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:44:49","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fae1deb9-4b7f-47e8-a58b-29452374d690","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 13:44:47","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 18:59:19] local.INFO: ID present? YES  
[2026-07-28 18:59:19] local.INFO: ID value: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:19] local.INFO: ID empty? NO  
[2026-07-28 18:59:19] local.INFO: Attempting to find record with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:19] local.INFO: Record not found, creating new with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 18:59:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3554-2026, ?, ?, Completed, ?, ?, 2026-07-24 13:44:49, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, fae1deb9-4b7f-47e8-a58b-29452374d690, ?, 188bc3ee-7fab-49c3-b496-123714afd47e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:19, 2026-07-28 18:59:19))  
[2026-07-28 18:59:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:20] local.INFO: Model: Transaction  
[2026-07-28 18:59:20] local.INFO: Data received: {"id":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3557-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:37:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"56295b3d-890a-4382-b1a8-56716237135d","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:37:32","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 18:59:20] local.INFO: ID present? YES  
[2026-07-28 18:59:20] local.INFO: ID value: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:20] local.INFO: ID empty? NO  
[2026-07-28 18:59:20] local.INFO: Attempting to find record with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:20] local.INFO: Record not found, creating new with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 200, 145, 0, 29000, 200, ?, TR-3557-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:37:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 56295b3d-890a-4382-b1a8-56716237135d, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:59:20, 2026-07-28 18:59:20))  
[2026-07-28 18:59:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:26] local.INFO: Model: Transaction  
[2026-07-28 18:59:26] local.INFO: Data received: {"id":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3557-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:37:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"56295b3d-890a-4382-b1a8-56716237135d","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:37:32","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 18:59:26] local.INFO: ID present? YES  
[2026-07-28 18:59:26] local.INFO: ID value: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:26] local.INFO: ID empty? NO  
[2026-07-28 18:59:26] local.INFO: Attempting to find record with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:26] local.INFO: Record not found, creating new with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 200, 145, 0, 29000, 200, ?, TR-3557-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:37:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 56295b3d-890a-4382-b1a8-56716237135d, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:59:26, 2026-07-28 18:59:26))  
[2026-07-28 18:59:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:33] local.INFO: Model: Transaction  
[2026-07-28 18:59:33] local.INFO: Data received: {"id":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3557-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:37:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"56295b3d-890a-4382-b1a8-56716237135d","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:37:32","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 18:59:33] local.INFO: ID present? YES  
[2026-07-28 18:59:33] local.INFO: ID value: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:33] local.INFO: ID empty? NO  
[2026-07-28 18:59:33] local.INFO: Attempting to find record with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:33] local.INFO: Record not found, creating new with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 200, 145, 0, 29000, 200, ?, TR-3557-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:37:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 56295b3d-890a-4382-b1a8-56716237135d, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:59:33, 2026-07-28 18:59:33))  
[2026-07-28 18:59:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:39] local.INFO: Model: Transaction  
[2026-07-28 18:59:39] local.INFO: Data received: {"id":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3557-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:37:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"56295b3d-890a-4382-b1a8-56716237135d","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:37:32","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 18:59:39] local.INFO: ID present? YES  
[2026-07-28 18:59:39] local.INFO: ID value: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:39] local.INFO: ID empty? NO  
[2026-07-28 18:59:39] local.INFO: Attempting to find record with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:39] local.INFO: Record not found, creating new with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 18:59:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 200, 145, 0, 29000, 200, ?, TR-3557-2026, ?, ?, Completed, ?, ?, 2026-07-24 14:37:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 56295b3d-890a-4382-b1a8-56716237135d, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 18:59:39, 2026-07-28 18:59:39))  
[2026-07-28 18:59:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:40] local.INFO: Model: Transaction  
[2026-07-28 18:59:40] local.INFO: Data received: {"id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","type":"Buying","amount":400,"rate":128,"negotiated_rate":"0","amount_paid":51200,"amount_received":400,"narrative":null,"transaction_number":"TR-3565-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:51:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"bca2aa0e-e66c-4bec-ae9c-477d56bf7011","cancellation_reason":null,"customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-25 11:51:32","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 18:59:40] local.INFO: ID present? YES  
[2026-07-28 18:59:40] local.INFO: ID value: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:40] local.INFO: ID empty? NO  
[2026-07-28 18:59:40] local.INFO: Attempting to find record with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:40] local.INFO: Record not found, creating new with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 400, 128, 0, 51200, 400, ?, TR-3565-2026, ?, ?, Completed, ?, ?, 2026-07-25 11:51:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, bca2aa0e-e66c-4bec-ae9c-477d56bf7011, ?, 0db3b090-e1de-40cd-bc79-b6bbcc870750, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:40, 2026-07-28 18:59:40))  
[2026-07-28 18:59:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:46] local.INFO: Model: Transaction  
[2026-07-28 18:59:46] local.INFO: Data received: {"id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","type":"Buying","amount":400,"rate":128,"negotiated_rate":"0","amount_paid":51200,"amount_received":400,"narrative":null,"transaction_number":"TR-3565-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:51:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"bca2aa0e-e66c-4bec-ae9c-477d56bf7011","cancellation_reason":null,"customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-25 11:51:32","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 18:59:46] local.INFO: ID present? YES  
[2026-07-28 18:59:46] local.INFO: ID value: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:46] local.INFO: ID empty? NO  
[2026-07-28 18:59:46] local.INFO: Attempting to find record with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:46] local.INFO: Record not found, creating new with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 400, 128, 0, 51200, 400, ?, TR-3565-2026, ?, ?, Completed, ?, ?, 2026-07-25 11:51:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, bca2aa0e-e66c-4bec-ae9c-477d56bf7011, ?, 0db3b090-e1de-40cd-bc79-b6bbcc870750, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:46, 2026-07-28 18:59:46))  
[2026-07-28 18:59:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:53] local.INFO: Model: Transaction  
[2026-07-28 18:59:53] local.INFO: Data received: {"id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","type":"Buying","amount":400,"rate":128,"negotiated_rate":"0","amount_paid":51200,"amount_received":400,"narrative":null,"transaction_number":"TR-3565-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:51:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"bca2aa0e-e66c-4bec-ae9c-477d56bf7011","cancellation_reason":null,"customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-25 11:51:32","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 18:59:53] local.INFO: ID present? YES  
[2026-07-28 18:59:53] local.INFO: ID value: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:53] local.INFO: ID empty? NO  
[2026-07-28 18:59:53] local.INFO: Attempting to find record with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:53] local.INFO: Record not found, creating new with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 400, 128, 0, 51200, 400, ?, TR-3565-2026, ?, ?, Completed, ?, ?, 2026-07-25 11:51:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, bca2aa0e-e66c-4bec-ae9c-477d56bf7011, ?, 0db3b090-e1de-40cd-bc79-b6bbcc870750, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:53, 2026-07-28 18:59:53))  
[2026-07-28 18:59:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 18:59:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 18:59:59] local.INFO: Model: Transaction  
[2026-07-28 18:59:59] local.INFO: Data received: {"id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","type":"Buying","amount":400,"rate":128,"negotiated_rate":"0","amount_paid":51200,"amount_received":400,"narrative":null,"transaction_number":"TR-3565-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:51:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"bca2aa0e-e66c-4bec-ae9c-477d56bf7011","cancellation_reason":null,"customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-25 11:51:32","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 18:59:59] local.INFO: ID present? YES  
[2026-07-28 18:59:59] local.INFO: ID value: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:59] local.INFO: ID empty? NO  
[2026-07-28 18:59:59] local.INFO: Attempting to find record with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:59] local.INFO: Record not found, creating new with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 18:59:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 400, 128, 0, 51200, 400, ?, TR-3565-2026, ?, ?, Completed, ?, ?, 2026-07-25 11:51:34, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, bca2aa0e-e66c-4bec-ae9c-477d56bf7011, ?, 0db3b090-e1de-40cd-bc79-b6bbcc870750, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 18:59:59, 2026-07-28 18:59:59))  
[2026-07-28 18:59:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:00] local.INFO: Model: Transaction  
[2026-07-28 19:00:00] local.INFO: Data received: {"id":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3549-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:27:51","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8ec39f9d-12a3-45a3-9ffe-17529feca6b1","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-20 09:27:49","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:00:00] local.INFO: ID present? YES  
[2026-07-28 19:00:00] local.INFO: ID value: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:00] local.INFO: ID empty? NO  
[2026-07-28 19:00:00] local.INFO: Attempting to find record with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:00] local.INFO: Record not found, creating new with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 400, 145, 0, 58000, 400, ?, TR-3549-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:27:51, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8ec39f9d-12a3-45a3-9ffe-17529feca6b1, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:00, 2026-07-28 19:00:00))  
[2026-07-28 19:00:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:07] local.INFO: Model: Transaction  
[2026-07-28 19:00:07] local.INFO: Data received: {"id":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3549-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:27:51","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8ec39f9d-12a3-45a3-9ffe-17529feca6b1","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-20 09:27:49","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:00:07] local.INFO: ID present? YES  
[2026-07-28 19:00:07] local.INFO: ID value: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:07] local.INFO: ID empty? NO  
[2026-07-28 19:00:07] local.INFO: Attempting to find record with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:07] local.INFO: Record not found, creating new with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 400, 145, 0, 58000, 400, ?, TR-3549-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:27:51, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8ec39f9d-12a3-45a3-9ffe-17529feca6b1, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:07, 2026-07-28 19:00:07))  
[2026-07-28 19:00:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:13] local.INFO: Model: Transaction  
[2026-07-28 19:00:13] local.INFO: Data received: {"id":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3549-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:27:51","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8ec39f9d-12a3-45a3-9ffe-17529feca6b1","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-20 09:27:49","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:00:13] local.INFO: ID present? YES  
[2026-07-28 19:00:13] local.INFO: ID value: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:13] local.INFO: ID empty? NO  
[2026-07-28 19:00:13] local.INFO: Attempting to find record with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:13] local.INFO: Record not found, creating new with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 400, 145, 0, 58000, 400, ?, TR-3549-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:27:51, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8ec39f9d-12a3-45a3-9ffe-17529feca6b1, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:13, 2026-07-28 19:00:13))  
[2026-07-28 19:00:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:19] local.INFO: Model: Transaction  
[2026-07-28 19:00:19] local.INFO: Data received: {"id":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3549-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:27:51","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8ec39f9d-12a3-45a3-9ffe-17529feca6b1","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-20 09:27:49","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:00:19] local.INFO: ID present? YES  
[2026-07-28 19:00:19] local.INFO: ID value: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:19] local.INFO: ID empty? NO  
[2026-07-28 19:00:19] local.INFO: Attempting to find record with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:19] local.INFO: Record not found, creating new with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 19:00:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 400, 145, 0, 58000, 400, ?, TR-3549-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:27:51, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 8ec39f9d-12a3-45a3-9ffe-17529feca6b1, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:19, 2026-07-28 19:00:19))  
[2026-07-28 19:00:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:20] local.INFO: Model: Transaction  
[2026-07-28 19:00:20] local.INFO: Data received: {"id":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","type":"Buying","amount":250,"rate":128,"negotiated_rate":"0","amount_paid":32000,"amount_received":250,"narrative":null,"transaction_number":"TR-3596-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 13:47:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c595c4f8-f442-4bb1-a2e0-0e758653d2a3","cancellation_reason":null,"customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 13:47:45","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:00:20] local.INFO: ID present? YES  
[2026-07-28 19:00:20] local.INFO: ID value: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:20] local.INFO: ID empty? NO  
[2026-07-28 19:00:20] local.INFO: Attempting to find record with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:20] local.INFO: Record not found, creating new with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 250, 128, 0, 32000, 250, ?, TR-3596-2026, ?, ?, Completed, ?, ?, 2026-07-28 13:47:47, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c595c4f8-f442-4bb1-a2e0-0e758653d2a3, ?, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:00:20, 2026-07-28 19:00:20))  
[2026-07-28 19:00:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:27] local.INFO: Model: Transaction  
[2026-07-28 19:00:27] local.INFO: Data received: {"id":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","type":"Buying","amount":250,"rate":128,"negotiated_rate":"0","amount_paid":32000,"amount_received":250,"narrative":null,"transaction_number":"TR-3596-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 13:47:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c595c4f8-f442-4bb1-a2e0-0e758653d2a3","cancellation_reason":null,"customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 13:47:45","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:00:27] local.INFO: ID present? YES  
[2026-07-28 19:00:27] local.INFO: ID value: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:27] local.INFO: ID empty? NO  
[2026-07-28 19:00:27] local.INFO: Attempting to find record with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:27] local.INFO: Record not found, creating new with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 250, 128, 0, 32000, 250, ?, TR-3596-2026, ?, ?, Completed, ?, ?, 2026-07-28 13:47:47, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c595c4f8-f442-4bb1-a2e0-0e758653d2a3, ?, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:00:27, 2026-07-28 19:00:27))  
[2026-07-28 19:00:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:33] local.INFO: Model: Transaction  
[2026-07-28 19:00:33] local.INFO: Data received: {"id":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","type":"Buying","amount":250,"rate":128,"negotiated_rate":"0","amount_paid":32000,"amount_received":250,"narrative":null,"transaction_number":"TR-3596-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 13:47:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c595c4f8-f442-4bb1-a2e0-0e758653d2a3","cancellation_reason":null,"customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 13:47:45","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:00:33] local.INFO: ID present? YES  
[2026-07-28 19:00:33] local.INFO: ID value: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:33] local.INFO: ID empty? NO  
[2026-07-28 19:00:33] local.INFO: Attempting to find record with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:33] local.INFO: Record not found, creating new with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 250, 128, 0, 32000, 250, ?, TR-3596-2026, ?, ?, Completed, ?, ?, 2026-07-28 13:47:47, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c595c4f8-f442-4bb1-a2e0-0e758653d2a3, ?, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:00:33, 2026-07-28 19:00:33))  
[2026-07-28 19:00:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:39] local.INFO: Model: Transaction  
[2026-07-28 19:00:39] local.INFO: Data received: {"id":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","type":"Buying","amount":250,"rate":128,"negotiated_rate":"0","amount_paid":32000,"amount_received":250,"narrative":null,"transaction_number":"TR-3596-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 13:47:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c595c4f8-f442-4bb1-a2e0-0e758653d2a3","cancellation_reason":null,"customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 13:47:45","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:00:39] local.INFO: ID present? YES  
[2026-07-28 19:00:39] local.INFO: ID value: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:39] local.INFO: ID empty? NO  
[2026-07-28 19:00:39] local.INFO: Attempting to find record with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:39] local.INFO: Record not found, creating new with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 19:00:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 250, 128, 0, 32000, 250, ?, TR-3596-2026, ?, ?, Completed, ?, ?, 2026-07-28 13:47:47, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c595c4f8-f442-4bb1-a2e0-0e758653d2a3, ?, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:00:39, 2026-07-28 19:00:39))  
[2026-07-28 19:00:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:40] local.INFO: Model: Transaction  
[2026-07-28 19:00:40] local.INFO: Data received: {"id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","type":"Buying","amount":60,"rate":145,"negotiated_rate":"0","amount_paid":8700,"amount_received":60,"narrative":null,"transaction_number":"TR-3567-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:52:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b0938d78-f032-4ca8-90e7-4cb078fcfe7f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:52:40","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:00:40] local.INFO: ID present? YES  
[2026-07-28 19:00:40] local.INFO: ID value: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:40] local.INFO: ID empty? NO  
[2026-07-28 19:00:40] local.INFO: Attempting to find record with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:40] local.INFO: Record not found, creating new with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 60, 145, 0, 8700, 60, ?, TR-3567-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:52:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, b0938d78-f032-4ca8-90e7-4cb078fcfe7f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:40, 2026-07-28 19:00:40))  
[2026-07-28 19:00:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:47] local.INFO: Model: Transaction  
[2026-07-28 19:00:47] local.INFO: Data received: {"id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","type":"Buying","amount":60,"rate":145,"negotiated_rate":"0","amount_paid":8700,"amount_received":60,"narrative":null,"transaction_number":"TR-3567-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:52:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b0938d78-f032-4ca8-90e7-4cb078fcfe7f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:52:40","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:00:47] local.INFO: ID present? YES  
[2026-07-28 19:00:47] local.INFO: ID value: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:47] local.INFO: ID empty? NO  
[2026-07-28 19:00:47] local.INFO: Attempting to find record with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:47] local.INFO: Record not found, creating new with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 60, 145, 0, 8700, 60, ?, TR-3567-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:52:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, b0938d78-f032-4ca8-90e7-4cb078fcfe7f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:47, 2026-07-28 19:00:47))  
[2026-07-28 19:00:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:53] local.INFO: Model: Transaction  
[2026-07-28 19:00:53] local.INFO: Data received: {"id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","type":"Buying","amount":60,"rate":145,"negotiated_rate":"0","amount_paid":8700,"amount_received":60,"narrative":null,"transaction_number":"TR-3567-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:52:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b0938d78-f032-4ca8-90e7-4cb078fcfe7f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:52:40","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:00:53] local.INFO: ID present? YES  
[2026-07-28 19:00:53] local.INFO: ID value: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:53] local.INFO: ID empty? NO  
[2026-07-28 19:00:53] local.INFO: Attempting to find record with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:53] local.INFO: Record not found, creating new with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 60, 145, 0, 8700, 60, ?, TR-3567-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:52:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, b0938d78-f032-4ca8-90e7-4cb078fcfe7f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:53, 2026-07-28 19:00:53))  
[2026-07-28 19:00:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:00:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:00:59] local.INFO: Model: Transaction  
[2026-07-28 19:00:59] local.INFO: Data received: {"id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","type":"Buying","amount":60,"rate":145,"negotiated_rate":"0","amount_paid":8700,"amount_received":60,"narrative":null,"transaction_number":"TR-3567-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:52:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b0938d78-f032-4ca8-90e7-4cb078fcfe7f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:52:40","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:00:59] local.INFO: ID present? YES  
[2026-07-28 19:00:59] local.INFO: ID value: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:59] local.INFO: ID empty? NO  
[2026-07-28 19:00:59] local.INFO: Attempting to find record with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:59] local.INFO: Record not found, creating new with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 19:00:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 60, 145, 0, 8700, 60, ?, TR-3567-2026, ?, ?, Completed, ?, ?, 2026-07-25 17:52:43, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, b0938d78-f032-4ca8-90e7-4cb078fcfe7f, ?, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:00:59, 2026-07-28 19:00:59))  
[2026-07-28 19:00:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:01] local.INFO: Model: Transaction  
[2026-07-28 19:01:01] local.INFO: Data received: {"id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","type":"Buying","amount":140,"rate":127.5,"negotiated_rate":"0","amount_paid":17850,"amount_received":140,"narrative":null,"transaction_number":"TR-3575-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:13:59","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c650a874-09cd-487c-bba2-7829d94ffd4c","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 11:13:54","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:01:01] local.INFO: ID present? YES  
[2026-07-28 19:01:01] local.INFO: ID value: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:01] local.INFO: ID empty? NO  
[2026-07-28 19:01:01] local.INFO: Attempting to find record with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:01] local.INFO: Record not found, creating new with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 140, 127.5, 0, 17850, 140, ?, TR-3575-2026, ?, ?, Completed, ?, ?, 2026-07-26 11:13:59, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c650a874-09cd-487c-bba2-7829d94ffd4c, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:01:01, 2026-07-28 19:01:01))  
[2026-07-28 19:01:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:07] local.INFO: Model: Transaction  
[2026-07-28 19:01:07] local.INFO: Data received: {"id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","type":"Buying","amount":140,"rate":127.5,"negotiated_rate":"0","amount_paid":17850,"amount_received":140,"narrative":null,"transaction_number":"TR-3575-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:13:59","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c650a874-09cd-487c-bba2-7829d94ffd4c","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 11:13:54","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:01:07] local.INFO: ID present? YES  
[2026-07-28 19:01:07] local.INFO: ID value: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:07] local.INFO: ID empty? NO  
[2026-07-28 19:01:07] local.INFO: Attempting to find record with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:07] local.INFO: Record not found, creating new with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 140, 127.5, 0, 17850, 140, ?, TR-3575-2026, ?, ?, Completed, ?, ?, 2026-07-26 11:13:59, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c650a874-09cd-487c-bba2-7829d94ffd4c, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:01:07, 2026-07-28 19:01:07))  
[2026-07-28 19:01:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:13] local.INFO: Model: Transaction  
[2026-07-28 19:01:13] local.INFO: Data received: {"id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","type":"Buying","amount":140,"rate":127.5,"negotiated_rate":"0","amount_paid":17850,"amount_received":140,"narrative":null,"transaction_number":"TR-3575-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:13:59","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c650a874-09cd-487c-bba2-7829d94ffd4c","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 11:13:54","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:01:13] local.INFO: ID present? YES  
[2026-07-28 19:01:13] local.INFO: ID value: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:13] local.INFO: ID empty? NO  
[2026-07-28 19:01:13] local.INFO: Attempting to find record with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:13] local.INFO: Record not found, creating new with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 140, 127.5, 0, 17850, 140, ?, TR-3575-2026, ?, ?, Completed, ?, ?, 2026-07-26 11:13:59, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c650a874-09cd-487c-bba2-7829d94ffd4c, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:01:13, 2026-07-28 19:01:13))  
[2026-07-28 19:01:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:19] local.INFO: Model: Transaction  
[2026-07-28 19:01:19] local.INFO: Data received: {"id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","type":"Buying","amount":140,"rate":127.5,"negotiated_rate":"0","amount_paid":17850,"amount_received":140,"narrative":null,"transaction_number":"TR-3575-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:13:59","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c650a874-09cd-487c-bba2-7829d94ffd4c","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 11:13:54","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:01:19] local.INFO: ID present? YES  
[2026-07-28 19:01:19] local.INFO: ID value: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:19] local.INFO: ID empty? NO  
[2026-07-28 19:01:19] local.INFO: Attempting to find record with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:19] local.INFO: Record not found, creating new with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 19:01:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 140, 127.5, 0, 17850, 140, ?, TR-3575-2026, ?, ?, Completed, ?, ?, 2026-07-26 11:13:59, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c650a874-09cd-487c-bba2-7829d94ffd4c, ?, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:01:19, 2026-07-28 19:01:19))  
[2026-07-28 19:01:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:21] local.INFO: Model: Transaction  
[2026-07-28 19:01:21] local.INFO: Data received: {"id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","type":"Buying","amount":100,"rate":169.5,"negotiated_rate":"0","amount_paid":16950,"amount_received":100,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:01:21] local.INFO: ID present? YES  
[2026-07-28 19:01:21] local.INFO: ID value: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:21] local.INFO: ID empty? NO  
[2026-07-28 19:01:21] local.INFO: Attempting to find record with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:21] local.INFO: Record not found, creating new with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 100, 169.5, 0, 16950, 100, ?, TR-3593-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 19:01:21, 2026-07-28 19:01:21))  
[2026-07-28 19:01:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:27] local.INFO: Model: Transaction  
[2026-07-28 19:01:27] local.INFO: Data received: {"id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","type":"Buying","amount":100,"rate":169.5,"negotiated_rate":"0","amount_paid":16950,"amount_received":100,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:01:27] local.INFO: ID present? YES  
[2026-07-28 19:01:27] local.INFO: ID value: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:27] local.INFO: ID empty? NO  
[2026-07-28 19:01:27] local.INFO: Attempting to find record with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:27] local.INFO: Record not found, creating new with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 100, 169.5, 0, 16950, 100, ?, TR-3593-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 19:01:27, 2026-07-28 19:01:27))  
[2026-07-28 19:01:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:33] local.INFO: Model: Transaction  
[2026-07-28 19:01:33] local.INFO: Data received: {"id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","type":"Buying","amount":100,"rate":169.5,"negotiated_rate":"0","amount_paid":16950,"amount_received":100,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:01:33] local.INFO: ID present? YES  
[2026-07-28 19:01:33] local.INFO: ID value: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:33] local.INFO: ID empty? NO  
[2026-07-28 19:01:33] local.INFO: Attempting to find record with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:33] local.INFO: Record not found, creating new with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 100, 169.5, 0, 16950, 100, ?, TR-3593-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 19:01:33, 2026-07-28 19:01:33))  
[2026-07-28 19:01:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:39] local.INFO: Model: Transaction  
[2026-07-28 19:01:39] local.INFO: Data received: {"id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","type":"Buying","amount":100,"rate":169.5,"negotiated_rate":"0","amount_paid":16950,"amount_received":100,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:01:39] local.INFO: ID present? YES  
[2026-07-28 19:01:39] local.INFO: ID value: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:39] local.INFO: ID empty? NO  
[2026-07-28 19:01:39] local.INFO: Attempting to find record with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:40] local.INFO: Record not found, creating new with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 19:01:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 100, 169.5, 0, 16950, 100, ?, TR-3593-2026, ?, ?, Completed, ?, ?, 2026-07-28 12:28:28, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, c351b004-6d04-4514-9703-3d5c2b18f604, ?, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, e3ffcceb-c506-48ab-a312-8fb7681ded66, 2026-07-28 19:01:40, 2026-07-28 19:01:40))  
[2026-07-28 19:01:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:41] local.INFO: Model: Transaction  
[2026-07-28 19:01:41] local.INFO: Data received: {"id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","type":"Buying","amount":2500,"rate":128.5,"negotiated_rate":"0","amount_paid":321250,"amount_received":2500,"narrative":null,"transaction_number":"TR-3597-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 16:36:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d6a388b0-3fb2-4a0e-8025-b93f25dc957a","cancellation_reason":null,"customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 16:36:10","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:01:41] local.INFO: ID present? YES  
[2026-07-28 19:01:41] local.INFO: ID value: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:41] local.INFO: ID empty? NO  
[2026-07-28 19:01:41] local.INFO: Attempting to find record with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:41] local.INFO: Record not found, creating new with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 2500, 128.5, 0, 321250, 2500, ?, TR-3597-2026, ?, ?, Completed, ?, ?, 2026-07-28 16:36:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d6a388b0-3fb2-4a0e-8025-b93f25dc957a, ?, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:01:41, 2026-07-28 19:01:41))  
[2026-07-28 19:01:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:47] local.INFO: Model: Transaction  
[2026-07-28 19:01:47] local.INFO: Data received: {"id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","type":"Buying","amount":2500,"rate":128.5,"negotiated_rate":"0","amount_paid":321250,"amount_received":2500,"narrative":null,"transaction_number":"TR-3597-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 16:36:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d6a388b0-3fb2-4a0e-8025-b93f25dc957a","cancellation_reason":null,"customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 16:36:10","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:01:47] local.INFO: ID present? YES  
[2026-07-28 19:01:47] local.INFO: ID value: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:47] local.INFO: ID empty? NO  
[2026-07-28 19:01:47] local.INFO: Attempting to find record with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:47] local.INFO: Record not found, creating new with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 2500, 128.5, 0, 321250, 2500, ?, TR-3597-2026, ?, ?, Completed, ?, ?, 2026-07-28 16:36:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d6a388b0-3fb2-4a0e-8025-b93f25dc957a, ?, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:01:47, 2026-07-28 19:01:47))  
[2026-07-28 19:01:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:01:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:01:53] local.INFO: Model: Transaction  
[2026-07-28 19:01:53] local.INFO: Data received: {"id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","type":"Buying","amount":2500,"rate":128.5,"negotiated_rate":"0","amount_paid":321250,"amount_received":2500,"narrative":null,"transaction_number":"TR-3597-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 16:36:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d6a388b0-3fb2-4a0e-8025-b93f25dc957a","cancellation_reason":null,"customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 16:36:10","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:01:53] local.INFO: ID present? YES  
[2026-07-28 19:01:53] local.INFO: ID value: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:53] local.INFO: ID empty? NO  
[2026-07-28 19:01:53] local.INFO: Attempting to find record with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:53] local.INFO: Record not found, creating new with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:01:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 2500, 128.5, 0, 321250, 2500, ?, TR-3597-2026, ?, ?, Completed, ?, ?, 2026-07-28 16:36:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d6a388b0-3fb2-4a0e-8025-b93f25dc957a, ?, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:01:53, 2026-07-28 19:01:53))  
[2026-07-28 19:01:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:00] local.INFO: Model: Transaction  
[2026-07-28 19:02:00] local.INFO: Data received: {"id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","type":"Buying","amount":2500,"rate":128.5,"negotiated_rate":"0","amount_paid":321250,"amount_received":2500,"narrative":null,"transaction_number":"TR-3597-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 16:36:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d6a388b0-3fb2-4a0e-8025-b93f25dc957a","cancellation_reason":null,"customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 16:36:10","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:02:00] local.INFO: ID present? YES  
[2026-07-28 19:02:00] local.INFO: ID value: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:02:00] local.INFO: ID empty? NO  
[2026-07-28 19:02:00] local.INFO: Attempting to find record with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:02:00] local.INFO: Record not found, creating new with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 19:02:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 2500, 128.5, 0, 321250, 2500, ?, TR-3597-2026, ?, ?, Completed, ?, ?, 2026-07-28 16:36:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, d6a388b0-3fb2-4a0e-8025-b93f25dc957a, ?, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:00, 2026-07-28 19:02:00))  
[2026-07-28 19:02:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:01] local.INFO: Model: Transaction  
[2026-07-28 19:02:01] local.INFO: Data received: {"id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","type":"Buying","amount":195,"rate":127.5,"negotiated_rate":"0","amount_paid":24862.5,"amount_received":195,"narrative":null,"transaction_number":"TR-3548-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:26:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0ce826eb-4be0-4a21-85f3-b58b62cb7b71","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-20 09:26:17","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:02:01] local.INFO: ID present? YES  
[2026-07-28 19:02:01] local.INFO: ID value: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:01] local.INFO: ID empty? NO  
[2026-07-28 19:02:01] local.INFO: Attempting to find record with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:01] local.INFO: Record not found, creating new with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 195, 127.5, 0, 24862.5, 195, ?, TR-3548-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:26:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0ce826eb-4be0-4a21-85f3-b58b62cb7b71, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:01, 2026-07-28 19:02:01))  
[2026-07-28 19:02:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:07] local.INFO: Model: Transaction  
[2026-07-28 19:02:07] local.INFO: Data received: {"id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","type":"Buying","amount":195,"rate":127.5,"negotiated_rate":"0","amount_paid":24862.5,"amount_received":195,"narrative":null,"transaction_number":"TR-3548-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:26:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0ce826eb-4be0-4a21-85f3-b58b62cb7b71","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-20 09:26:17","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:02:07] local.INFO: ID present? YES  
[2026-07-28 19:02:07] local.INFO: ID value: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:07] local.INFO: ID empty? NO  
[2026-07-28 19:02:07] local.INFO: Attempting to find record with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:07] local.INFO: Record not found, creating new with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 195, 127.5, 0, 24862.5, 195, ?, TR-3548-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:26:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0ce826eb-4be0-4a21-85f3-b58b62cb7b71, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:07, 2026-07-28 19:02:07))  
[2026-07-28 19:02:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:13] local.INFO: Model: Transaction  
[2026-07-28 19:02:13] local.INFO: Data received: {"id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","type":"Buying","amount":195,"rate":127.5,"negotiated_rate":"0","amount_paid":24862.5,"amount_received":195,"narrative":null,"transaction_number":"TR-3548-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:26:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0ce826eb-4be0-4a21-85f3-b58b62cb7b71","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-20 09:26:17","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:02:13] local.INFO: ID present? YES  
[2026-07-28 19:02:13] local.INFO: ID value: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:13] local.INFO: ID empty? NO  
[2026-07-28 19:02:13] local.INFO: Attempting to find record with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:13] local.INFO: Record not found, creating new with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 195, 127.5, 0, 24862.5, 195, ?, TR-3548-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:26:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0ce826eb-4be0-4a21-85f3-b58b62cb7b71, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:13, 2026-07-28 19:02:13))  
[2026-07-28 19:02:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:20] local.INFO: Model: Transaction  
[2026-07-28 19:02:20] local.INFO: Data received: {"id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","type":"Buying","amount":195,"rate":127.5,"negotiated_rate":"0","amount_paid":24862.5,"amount_received":195,"narrative":null,"transaction_number":"TR-3548-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:26:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0ce826eb-4be0-4a21-85f3-b58b62cb7b71","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-20 09:26:17","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:02:20] local.INFO: ID present? YES  
[2026-07-28 19:02:20] local.INFO: ID value: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:20] local.INFO: ID empty? NO  
[2026-07-28 19:02:20] local.INFO: Attempting to find record with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:20] local.INFO: Record not found, creating new with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 19:02:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 195, 127.5, 0, 24862.5, 195, ?, TR-3548-2026, ?, ?, Completed, ?, ?, 2026-07-20 09:26:19, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0ce826eb-4be0-4a21-85f3-b58b62cb7b71, ?, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:20, 2026-07-28 19:02:20))  
[2026-07-28 19:02:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:21] local.INFO: Model: Transaction  
[2026-07-28 19:02:21] local.INFO: Data received: {"id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3541-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 12:18:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"cbc04bf5-1670-4191-bbcc-a983fa21ec95","cancellation_reason":null,"customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-18 12:18:37","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:02:21] local.INFO: ID present? YES  
[2026-07-28 19:02:21] local.INFO: ID value: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:21] local.INFO: ID empty? NO  
[2026-07-28 19:02:21] local.INFO: Attempting to find record with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:21] local.INFO: Record not found, creating new with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 300, 145, 0, 43500, 300, ?, TR-3541-2026, ?, ?, Completed, ?, ?, 2026-07-18 12:18:41, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, cbc04bf5-1670-4191-bbcc-a983fa21ec95, ?, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:02:21, 2026-07-28 19:02:21))  
[2026-07-28 19:02:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:27] local.INFO: Model: Transaction  
[2026-07-28 19:02:27] local.INFO: Data received: {"id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3541-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 12:18:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"cbc04bf5-1670-4191-bbcc-a983fa21ec95","cancellation_reason":null,"customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-18 12:18:37","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:02:27] local.INFO: ID present? YES  
[2026-07-28 19:02:27] local.INFO: ID value: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:27] local.INFO: ID empty? NO  
[2026-07-28 19:02:27] local.INFO: Attempting to find record with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:27] local.INFO: Record not found, creating new with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 300, 145, 0, 43500, 300, ?, TR-3541-2026, ?, ?, Completed, ?, ?, 2026-07-18 12:18:41, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, cbc04bf5-1670-4191-bbcc-a983fa21ec95, ?, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:02:27, 2026-07-28 19:02:27))  
[2026-07-28 19:02:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:34] local.INFO: Model: Transaction  
[2026-07-28 19:02:34] local.INFO: Data received: {"id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3541-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 12:18:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"cbc04bf5-1670-4191-bbcc-a983fa21ec95","cancellation_reason":null,"customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-18 12:18:37","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:02:34] local.INFO: ID present? YES  
[2026-07-28 19:02:34] local.INFO: ID value: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:34] local.INFO: ID empty? NO  
[2026-07-28 19:02:34] local.INFO: Attempting to find record with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:34] local.INFO: Record not found, creating new with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 300, 145, 0, 43500, 300, ?, TR-3541-2026, ?, ?, Completed, ?, ?, 2026-07-18 12:18:41, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, cbc04bf5-1670-4191-bbcc-a983fa21ec95, ?, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:02:34, 2026-07-28 19:02:34))  
[2026-07-28 19:02:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:40] local.INFO: Model: Transaction  
[2026-07-28 19:02:40] local.INFO: Data received: {"id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3541-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-18 12:18:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"cbc04bf5-1670-4191-bbcc-a983fa21ec95","cancellation_reason":null,"customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-18 12:18:37","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:02:40] local.INFO: ID present? YES  
[2026-07-28 19:02:40] local.INFO: ID value: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:40] local.INFO: ID empty? NO  
[2026-07-28 19:02:40] local.INFO: Attempting to find record with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:40] local.INFO: Record not found, creating new with ID: e34a1c7c-e3e0-4e04-891d-1c61fe5adf79  
[2026-07-28 19:02:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 300, 145, 0, 43500, 300, ?, TR-3541-2026, ?, ?, Completed, ?, ?, 2026-07-18 12:18:41, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, cbc04bf5-1670-4191-bbcc-a983fa21ec95, ?, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-28 19:02:40, 2026-07-28 19:02:40))  
[2026-07-28 19:02:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:41] local.INFO: Model: Transaction  
[2026-07-28 19:02:41] local.INFO: Data received: {"id":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","type":"Buying","amount":290,"rate":127.5,"negotiated_rate":"0","amount_paid":36975,"amount_received":290,"narrative":null,"transaction_number":"TR-3589-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 10:43:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5d97aaec-bc23-471a-bff9-7794b4e44201","cancellation_reason":null,"customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 10:43:42","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:02:41] local.INFO: ID present? YES  
[2026-07-28 19:02:41] local.INFO: ID value: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:41] local.INFO: ID empty? NO  
[2026-07-28 19:02:41] local.INFO: Attempting to find record with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:41] local.INFO: Record not found, creating new with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 290, 127.5, 0, 36975, 290, ?, TR-3589-2026, ?, ?, Completed, ?, ?, 2026-07-27 10:43:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5d97aaec-bc23-471a-bff9-7794b4e44201, ?, 71fb0471-7101-4317-9dae-49c8f7cc08af, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:41, 2026-07-28 19:02:41))  
[2026-07-28 19:02:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:47] local.INFO: Model: Transaction  
[2026-07-28 19:02:47] local.INFO: Data received: {"id":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","type":"Buying","amount":290,"rate":127.5,"negotiated_rate":"0","amount_paid":36975,"amount_received":290,"narrative":null,"transaction_number":"TR-3589-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 10:43:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5d97aaec-bc23-471a-bff9-7794b4e44201","cancellation_reason":null,"customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 10:43:42","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:02:47] local.INFO: ID present? YES  
[2026-07-28 19:02:47] local.INFO: ID value: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:47] local.INFO: ID empty? NO  
[2026-07-28 19:02:47] local.INFO: Attempting to find record with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:47] local.INFO: Record not found, creating new with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 290, 127.5, 0, 36975, 290, ?, TR-3589-2026, ?, ?, Completed, ?, ?, 2026-07-27 10:43:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5d97aaec-bc23-471a-bff9-7794b4e44201, ?, 71fb0471-7101-4317-9dae-49c8f7cc08af, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:47, 2026-07-28 19:02:47))  
[2026-07-28 19:02:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:02:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:02:54] local.INFO: Model: Transaction  
[2026-07-28 19:02:54] local.INFO: Data received: {"id":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","type":"Buying","amount":290,"rate":127.5,"negotiated_rate":"0","amount_paid":36975,"amount_received":290,"narrative":null,"transaction_number":"TR-3589-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 10:43:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5d97aaec-bc23-471a-bff9-7794b4e44201","cancellation_reason":null,"customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 10:43:42","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:02:54] local.INFO: ID present? YES  
[2026-07-28 19:02:54] local.INFO: ID value: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:54] local.INFO: ID empty? NO  
[2026-07-28 19:02:54] local.INFO: Attempting to find record with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:54] local.INFO: Record not found, creating new with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:02:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 290, 127.5, 0, 36975, 290, ?, TR-3589-2026, ?, ?, Completed, ?, ?, 2026-07-27 10:43:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5d97aaec-bc23-471a-bff9-7794b4e44201, ?, 71fb0471-7101-4317-9dae-49c8f7cc08af, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:02:54, 2026-07-28 19:02:54))  
[2026-07-28 19:02:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:00] local.INFO: Model: Transaction  
[2026-07-28 19:03:00] local.INFO: Data received: {"id":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","type":"Buying","amount":290,"rate":127.5,"negotiated_rate":"0","amount_paid":36975,"amount_received":290,"narrative":null,"transaction_number":"TR-3589-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 10:43:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5d97aaec-bc23-471a-bff9-7794b4e44201","cancellation_reason":null,"customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 10:43:42","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:03:00] local.INFO: ID present? YES  
[2026-07-28 19:03:00] local.INFO: ID value: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:03:00] local.INFO: ID empty? NO  
[2026-07-28 19:03:00] local.INFO: Attempting to find record with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:03:00] local.INFO: Record not found, creating new with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 19:03:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 290, 127.5, 0, 36975, 290, ?, TR-3589-2026, ?, ?, Completed, ?, ?, 2026-07-27 10:43:46, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 5d97aaec-bc23-471a-bff9-7794b4e44201, ?, 71fb0471-7101-4317-9dae-49c8f7cc08af, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-07-28 19:03:00, 2026-07-28 19:03:00))  
[2026-07-28 19:03:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:01] local.INFO: Model: Transaction  
[2026-07-28 19:03:01] local.INFO: Data received: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","type":"Selling","amount":10,"rate":130,"negotiated_rate":"0","amount_paid":10,"amount_received":1300,"narrative":null,"transaction_number":"TR-3587-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","cancellation_reason":null,"customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-26 17:44:27","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:03:01] local.INFO: ID present? YES  
[2026-07-28 19:03:01] local.INFO: ID value: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:01] local.INFO: ID empty? NO  
[2026-07-28 19:03:01] local.INFO: Attempting to find record with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:01] local.INFO: Record not found, creating new with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 10, 130, 0, 10, 1300, ?, TR-3587-2026, ?, ?, Completed, ?, ?, 2026-07-26 17:44:29, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 024773fe-dee4-4a96-bbe4-41e3ee5dfeca, ?, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, a3990fd4-353e-43d1-91cb-ad20881dc23f, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 19:03:01, 2026-07-28 19:03:01))  
[2026-07-28 19:03:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:08] local.INFO: Model: Transaction  
[2026-07-28 19:03:08] local.INFO: Data received: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","type":"Selling","amount":10,"rate":130,"negotiated_rate":"0","amount_paid":10,"amount_received":1300,"narrative":null,"transaction_number":"TR-3587-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","cancellation_reason":null,"customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-26 17:44:27","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:03:08] local.INFO: ID present? YES  
[2026-07-28 19:03:08] local.INFO: ID value: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:08] local.INFO: ID empty? NO  
[2026-07-28 19:03:08] local.INFO: Attempting to find record with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:08] local.INFO: Record not found, creating new with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 10, 130, 0, 10, 1300, ?, TR-3587-2026, ?, ?, Completed, ?, ?, 2026-07-26 17:44:29, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 024773fe-dee4-4a96-bbe4-41e3ee5dfeca, ?, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, a3990fd4-353e-43d1-91cb-ad20881dc23f, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 19:03:08, 2026-07-28 19:03:08))  
[2026-07-28 19:03:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:14] local.INFO: Model: Transaction  
[2026-07-28 19:03:14] local.INFO: Data received: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","type":"Selling","amount":10,"rate":130,"negotiated_rate":"0","amount_paid":10,"amount_received":1300,"narrative":null,"transaction_number":"TR-3587-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","cancellation_reason":null,"customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-26 17:44:27","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:03:14] local.INFO: ID present? YES  
[2026-07-28 19:03:14] local.INFO: ID value: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:14] local.INFO: ID empty? NO  
[2026-07-28 19:03:14] local.INFO: Attempting to find record with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:14] local.INFO: Record not found, creating new with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 10, 130, 0, 10, 1300, ?, TR-3587-2026, ?, ?, Completed, ?, ?, 2026-07-26 17:44:29, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 024773fe-dee4-4a96-bbe4-41e3ee5dfeca, ?, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, a3990fd4-353e-43d1-91cb-ad20881dc23f, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 19:03:14, 2026-07-28 19:03:14))  
[2026-07-28 19:03:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:20] local.INFO: Model: Transaction  
[2026-07-28 19:03:20] local.INFO: Data received: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","type":"Selling","amount":10,"rate":130,"negotiated_rate":"0","amount_paid":10,"amount_received":1300,"narrative":null,"transaction_number":"TR-3587-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","cancellation_reason":null,"customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-26 17:44:27","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:03:20] local.INFO: ID present? YES  
[2026-07-28 19:03:20] local.INFO: ID value: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:20] local.INFO: ID empty? NO  
[2026-07-28 19:03:20] local.INFO: Attempting to find record with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:20] local.INFO: Record not found, creating new with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 19:03:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 10, 130, 0, 10, 1300, ?, TR-3587-2026, ?, ?, Completed, ?, ?, 2026-07-26 17:44:29, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Travel / Tourism, ?, 024773fe-dee4-4a96-bbe4-41e3ee5dfeca, ?, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, a3990fd4-353e-43d1-91cb-ad20881dc23f, 19bf0423-7c99-431d-b712-002599c6e7b4, 2026-07-28 19:03:20, 2026-07-28 19:03:20))  
[2026-07-28 19:03:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:22] local.INFO: Model: Journal  
[2026-07-28 19:03:22] local.INFO: Data received: {"id":"01440809-1e6b-454c-8f1b-836a47219b9e","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:03:22] local.INFO: ID present? YES  
[2026-07-28 19:03:22] local.INFO: ID value: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:22] local.INFO: ID empty? NO  
[2026-07-28 19:03:22] local.INFO: Attempting to find record with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:22] local.INFO: Record not found, creating new with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (01440809-1e6b-454c-8f1b-836a47219b9e, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:03:22, 2026-07-28 19:03:22))  
[2026-07-28 19:03:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:28] local.INFO: Model: Journal  
[2026-07-28 19:03:28] local.INFO: Data received: {"id":"01440809-1e6b-454c-8f1b-836a47219b9e","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:03:28] local.INFO: ID present? YES  
[2026-07-28 19:03:28] local.INFO: ID value: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:28] local.INFO: ID empty? NO  
[2026-07-28 19:03:28] local.INFO: Attempting to find record with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:28] local.INFO: Record not found, creating new with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (01440809-1e6b-454c-8f1b-836a47219b9e, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:03:28, 2026-07-28 19:03:28))  
[2026-07-28 19:03:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:34] local.INFO: Model: Journal  
[2026-07-28 19:03:34] local.INFO: Data received: {"id":"01440809-1e6b-454c-8f1b-836a47219b9e","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:03:34] local.INFO: ID present? YES  
[2026-07-28 19:03:34] local.INFO: ID value: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:34] local.INFO: ID empty? NO  
[2026-07-28 19:03:34] local.INFO: Attempting to find record with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:34] local.INFO: Record not found, creating new with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (01440809-1e6b-454c-8f1b-836a47219b9e, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:03:34, 2026-07-28 19:03:34))  
[2026-07-28 19:03:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:40] local.INFO: Model: Journal  
[2026-07-28 19:03:40] local.INFO: Data received: {"id":"01440809-1e6b-454c-8f1b-836a47219b9e","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:03:40] local.INFO: ID present? YES  
[2026-07-28 19:03:40] local.INFO: ID value: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:40] local.INFO: ID empty? NO  
[2026-07-28 19:03:40] local.INFO: Attempting to find record with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:40] local.INFO: Record not found, creating new with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 19:03:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (01440809-1e6b-454c-8f1b-836a47219b9e, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:03:40, 2026-07-28 19:03:40))  
[2026-07-28 19:03:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:42] local.INFO: Model: Journal  
[2026-07-28 19:03:42] local.INFO: Data received: {"id":"09e82691-ffd8-4048-b07f-017e3cff65b7","type":"Credit","amount":"178.00","rate":"169.000000","lcy_amount":"178.000000","narrative":"Gain on TR-3551-2026","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:03:42] local.INFO: ID present? YES  
[2026-07-28 19:03:42] local.INFO: ID value: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:42] local.INFO: ID empty? NO  
[2026-07-28 19:03:42] local.INFO: Attempting to find record with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:42] local.INFO: Record not found, creating new with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (09e82691-ffd8-4048-b07f-017e3cff65b7, Credit, 178.00, 169.000000, 178.000000, Gain on TR-3551-2026, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:03:42, 2026-07-28 19:03:42))  
[2026-07-28 19:03:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:48] local.INFO: Model: Journal  
[2026-07-28 19:03:48] local.INFO: Data received: {"id":"09e82691-ffd8-4048-b07f-017e3cff65b7","type":"Credit","amount":"178.00","rate":"169.000000","lcy_amount":"178.000000","narrative":"Gain on TR-3551-2026","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:03:48] local.INFO: ID present? YES  
[2026-07-28 19:03:48] local.INFO: ID value: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:48] local.INFO: ID empty? NO  
[2026-07-28 19:03:48] local.INFO: Attempting to find record with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:48] local.INFO: Record not found, creating new with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (09e82691-ffd8-4048-b07f-017e3cff65b7, Credit, 178.00, 169.000000, 178.000000, Gain on TR-3551-2026, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:03:48, 2026-07-28 19:03:48))  
[2026-07-28 19:03:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:03:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:03:54] local.INFO: Model: Journal  
[2026-07-28 19:03:54] local.INFO: Data received: {"id":"09e82691-ffd8-4048-b07f-017e3cff65b7","type":"Credit","amount":"178.00","rate":"169.000000","lcy_amount":"178.000000","narrative":"Gain on TR-3551-2026","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:03:54] local.INFO: ID present? YES  
[2026-07-28 19:03:54] local.INFO: ID value: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:54] local.INFO: ID empty? NO  
[2026-07-28 19:03:54] local.INFO: Attempting to find record with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:54] local.INFO: Record not found, creating new with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:03:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (09e82691-ffd8-4048-b07f-017e3cff65b7, Credit, 178.00, 169.000000, 178.000000, Gain on TR-3551-2026, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:03:54, 2026-07-28 19:03:54))  
[2026-07-28 19:03:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:00] local.INFO: Model: Journal  
[2026-07-28 19:04:00] local.INFO: Data received: {"id":"09e82691-ffd8-4048-b07f-017e3cff65b7","type":"Credit","amount":"178.00","rate":"169.000000","lcy_amount":"178.000000","narrative":"Gain on TR-3551-2026","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:04:00] local.INFO: ID present? YES  
[2026-07-28 19:04:00] local.INFO: ID value: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:04:00] local.INFO: ID empty? NO  
[2026-07-28 19:04:00] local.INFO: Attempting to find record with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:04:00] local.INFO: Record not found, creating new with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 19:04:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (09e82691-ffd8-4048-b07f-017e3cff65b7, Credit, 178.00, 169.000000, 178.000000, Gain on TR-3551-2026, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:04:00, 2026-07-28 19:04:00))  
[2026-07-28 19:04:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:02] local.INFO: Model: Journal  
[2026-07-28 19:04:02] local.INFO: Data received: {"id":"0a374e1e-2fc6-485d-9a3c-a5b12fe370d3","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:04:02] local.INFO: ID present? YES  
[2026-07-28 19:04:02] local.INFO: ID value: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:02] local.INFO: ID empty? NO  
[2026-07-28 19:04:02] local.INFO: Attempting to find record with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:02] local.INFO: Record not found, creating new with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a374e1e-2fc6-485d-9a3c-a5b12fe370d3, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:02, 2026-07-28 19:04:02))  
[2026-07-28 19:04:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:08] local.INFO: Model: Journal  
[2026-07-28 19:04:08] local.INFO: Data received: {"id":"0a374e1e-2fc6-485d-9a3c-a5b12fe370d3","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:04:08] local.INFO: ID present? YES  
[2026-07-28 19:04:08] local.INFO: ID value: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:08] local.INFO: ID empty? NO  
[2026-07-28 19:04:08] local.INFO: Attempting to find record with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:08] local.INFO: Record not found, creating new with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a374e1e-2fc6-485d-9a3c-a5b12fe370d3, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:08, 2026-07-28 19:04:08))  
[2026-07-28 19:04:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:14] local.INFO: Model: Journal  
[2026-07-28 19:04:14] local.INFO: Data received: {"id":"0a374e1e-2fc6-485d-9a3c-a5b12fe370d3","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:04:14] local.INFO: ID present? YES  
[2026-07-28 19:04:14] local.INFO: ID value: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:14] local.INFO: ID empty? NO  
[2026-07-28 19:04:14] local.INFO: Attempting to find record with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:14] local.INFO: Record not found, creating new with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a374e1e-2fc6-485d-9a3c-a5b12fe370d3, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:14, 2026-07-28 19:04:14))  
[2026-07-28 19:04:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:21] local.INFO: Model: Journal  
[2026-07-28 19:04:21] local.INFO: Data received: {"id":"0a374e1e-2fc6-485d-9a3c-a5b12fe370d3","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:04:21] local.INFO: ID present? YES  
[2026-07-28 19:04:21] local.INFO: ID value: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:21] local.INFO: ID empty? NO  
[2026-07-28 19:04:21] local.INFO: Attempting to find record with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:21] local.INFO: Record not found, creating new with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 19:04:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a374e1e-2fc6-485d-9a3c-a5b12fe370d3, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:21, 2026-07-28 19:04:21))  
[2026-07-28 19:04:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:22] local.INFO: Model: Journal  
[2026-07-28 19:04:22] local.INFO: Data received: {"id":"0a5145c5-569a-4234-912e-55a6d5506ea5","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:04:22] local.INFO: ID present? YES  
[2026-07-28 19:04:22] local.INFO: ID value: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:22] local.INFO: ID empty? NO  
[2026-07-28 19:04:22] local.INFO: Attempting to find record with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:22] local.INFO: Record not found, creating new with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a5145c5-569a-4234-912e-55a6d5506ea5, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:22, 2026-07-28 19:04:22))  
[2026-07-28 19:04:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:28] local.INFO: Model: Journal  
[2026-07-28 19:04:28] local.INFO: Data received: {"id":"0a5145c5-569a-4234-912e-55a6d5506ea5","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:04:28] local.INFO: ID present? YES  
[2026-07-28 19:04:28] local.INFO: ID value: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:28] local.INFO: ID empty? NO  
[2026-07-28 19:04:28] local.INFO: Attempting to find record with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:28] local.INFO: Record not found, creating new with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a5145c5-569a-4234-912e-55a6d5506ea5, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:28, 2026-07-28 19:04:28))  
[2026-07-28 19:04:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:34] local.INFO: Model: Journal  
[2026-07-28 19:04:34] local.INFO: Data received: {"id":"0a5145c5-569a-4234-912e-55a6d5506ea5","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:04:34] local.INFO: ID present? YES  
[2026-07-28 19:04:34] local.INFO: ID value: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:34] local.INFO: ID empty? NO  
[2026-07-28 19:04:34] local.INFO: Attempting to find record with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:34] local.INFO: Record not found, creating new with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a5145c5-569a-4234-912e-55a6d5506ea5, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:34, 2026-07-28 19:04:34))  
[2026-07-28 19:04:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:41] local.INFO: Model: Journal  
[2026-07-28 19:04:41] local.INFO: Data received: {"id":"0a5145c5-569a-4234-912e-55a6d5506ea5","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:04:41] local.INFO: ID present? YES  
[2026-07-28 19:04:41] local.INFO: ID value: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:41] local.INFO: ID empty? NO  
[2026-07-28 19:04:41] local.INFO: Attempting to find record with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:41] local.INFO: Record not found, creating new with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 19:04:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0a5145c5-569a-4234-912e-55a6d5506ea5, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:04:41, 2026-07-28 19:04:41))  
[2026-07-28 19:04:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:42] local.INFO: Model: Journal  
[2026-07-28 19:04:42] local.INFO: Data received: {"id":"0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa","type":"Credit","amount":"8700.00","rate":"145.000000","lcy_amount":"8700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:04:42] local.INFO: ID present? YES  
[2026-07-28 19:04:42] local.INFO: ID value: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:42] local.INFO: ID empty? NO  
[2026-07-28 19:04:42] local.INFO: Attempting to find record with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:42] local.INFO: Record not found, creating new with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa, Credit, 8700.00, 145.000000, 8700.000000, Buying TX: Funds out of cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:04:42, 2026-07-28 19:04:42))  
[2026-07-28 19:04:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:48] local.INFO: Model: Journal  
[2026-07-28 19:04:48] local.INFO: Data received: {"id":"0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa","type":"Credit","amount":"8700.00","rate":"145.000000","lcy_amount":"8700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:04:48] local.INFO: ID present? YES  
[2026-07-28 19:04:48] local.INFO: ID value: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:48] local.INFO: ID empty? NO  
[2026-07-28 19:04:48] local.INFO: Attempting to find record with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:48] local.INFO: Record not found, creating new with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa, Credit, 8700.00, 145.000000, 8700.000000, Buying TX: Funds out of cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:04:48, 2026-07-28 19:04:48))  
[2026-07-28 19:04:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:04:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:04:55] local.INFO: Model: Journal  
[2026-07-28 19:04:55] local.INFO: Data received: {"id":"0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa","type":"Credit","amount":"8700.00","rate":"145.000000","lcy_amount":"8700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:04:55] local.INFO: ID present? YES  
[2026-07-28 19:04:55] local.INFO: ID value: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:55] local.INFO: ID empty? NO  
[2026-07-28 19:04:55] local.INFO: Attempting to find record with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:55] local.INFO: Record not found, creating new with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:04:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa, Credit, 8700.00, 145.000000, 8700.000000, Buying TX: Funds out of cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:04:55, 2026-07-28 19:04:55))  
[2026-07-28 19:04:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:01] local.INFO: Model: Journal  
[2026-07-28 19:05:01] local.INFO: Data received: {"id":"0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa","type":"Credit","amount":"8700.00","rate":"145.000000","lcy_amount":"8700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:05:01] local.INFO: ID present? YES  
[2026-07-28 19:05:01] local.INFO: ID value: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:05:01] local.INFO: ID empty? NO  
[2026-07-28 19:05:01] local.INFO: Attempting to find record with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:05:01] local.INFO: Record not found, creating new with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 19:05:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa, Credit, 8700.00, 145.000000, 8700.000000, Buying TX: Funds out of cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:01, 2026-07-28 19:05:01))  
[2026-07-28 19:05:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:02] local.INFO: Model: Journal  
[2026-07-28 19:05:02] local.INFO: Data received: {"id":"0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3566-2026","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:05:02] local.INFO: ID present? YES  
[2026-07-28 19:05:02] local.INFO: ID value: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:02] local.INFO: ID empty? NO  
[2026-07-28 19:05:02] local.INFO: Attempting to find record with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:02] local.INFO: Record not found, creating new with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3566-2026, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:02, 2026-07-28 19:05:02))  
[2026-07-28 19:05:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:08] local.INFO: Model: Journal  
[2026-07-28 19:05:08] local.INFO: Data received: {"id":"0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3566-2026","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:05:08] local.INFO: ID present? YES  
[2026-07-28 19:05:08] local.INFO: ID value: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:08] local.INFO: ID empty? NO  
[2026-07-28 19:05:08] local.INFO: Attempting to find record with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:08] local.INFO: Record not found, creating new with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3566-2026, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:08, 2026-07-28 19:05:08))  
[2026-07-28 19:05:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:15] local.INFO: Model: Journal  
[2026-07-28 19:05:15] local.INFO: Data received: {"id":"0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3566-2026","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:05:15] local.INFO: ID present? YES  
[2026-07-28 19:05:15] local.INFO: ID value: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:15] local.INFO: ID empty? NO  
[2026-07-28 19:05:15] local.INFO: Attempting to find record with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:15] local.INFO: Record not found, creating new with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3566-2026, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:15, 2026-07-28 19:05:15))  
[2026-07-28 19:05:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:21] local.INFO: Model: Journal  
[2026-07-28 19:05:21] local.INFO: Data received: {"id":"0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3566-2026","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:05:21] local.INFO: ID present? YES  
[2026-07-28 19:05:21] local.INFO: ID value: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:21] local.INFO: ID empty? NO  
[2026-07-28 19:05:21] local.INFO: Attempting to find record with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:21] local.INFO: Record not found, creating new with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 19:05:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3566-2026, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:21, 2026-07-28 19:05:21))  
[2026-07-28 19:05:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:22] local.INFO: Model: Journal  
[2026-07-28 19:05:22] local.INFO: Data received: {"id":"0dac0432-0d82-4d52-9831-9f3e3b1cb4ce","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"10.000000","narrative":"Gain on TR-3587-2026","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:05:22] local.INFO: ID present? YES  
[2026-07-28 19:05:22] local.INFO: ID value: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:22] local.INFO: ID empty? NO  
[2026-07-28 19:05:22] local.INFO: Attempting to find record with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:22] local.INFO: Record not found, creating new with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0dac0432-0d82-4d52-9831-9f3e3b1cb4ce, Credit, 10.00, 130.000000, 10.000000, Gain on TR-3587-2026, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:22, 2026-07-28 19:05:22))  
[2026-07-28 19:05:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:28] local.INFO: Model: Journal  
[2026-07-28 19:05:28] local.INFO: Data received: {"id":"0dac0432-0d82-4d52-9831-9f3e3b1cb4ce","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"10.000000","narrative":"Gain on TR-3587-2026","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:05:28] local.INFO: ID present? YES  
[2026-07-28 19:05:28] local.INFO: ID value: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:28] local.INFO: ID empty? NO  
[2026-07-28 19:05:28] local.INFO: Attempting to find record with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:28] local.INFO: Record not found, creating new with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0dac0432-0d82-4d52-9831-9f3e3b1cb4ce, Credit, 10.00, 130.000000, 10.000000, Gain on TR-3587-2026, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:28, 2026-07-28 19:05:28))  
[2026-07-28 19:05:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:35] local.INFO: Model: Journal  
[2026-07-28 19:05:35] local.INFO: Data received: {"id":"0dac0432-0d82-4d52-9831-9f3e3b1cb4ce","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"10.000000","narrative":"Gain on TR-3587-2026","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:05:35] local.INFO: ID present? YES  
[2026-07-28 19:05:35] local.INFO: ID value: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:35] local.INFO: ID empty? NO  
[2026-07-28 19:05:35] local.INFO: Attempting to find record with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:35] local.INFO: Record not found, creating new with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0dac0432-0d82-4d52-9831-9f3e3b1cb4ce, Credit, 10.00, 130.000000, 10.000000, Gain on TR-3587-2026, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:35, 2026-07-28 19:05:35))  
[2026-07-28 19:05:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:41] local.INFO: Model: Journal  
[2026-07-28 19:05:41] local.INFO: Data received: {"id":"0dac0432-0d82-4d52-9831-9f3e3b1cb4ce","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"10.000000","narrative":"Gain on TR-3587-2026","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:05:41] local.INFO: ID present? YES  
[2026-07-28 19:05:41] local.INFO: ID value: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:41] local.INFO: ID empty? NO  
[2026-07-28 19:05:41] local.INFO: Attempting to find record with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:41] local.INFO: Record not found, creating new with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 19:05:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0dac0432-0d82-4d52-9831-9f3e3b1cb4ce, Credit, 10.00, 130.000000, 10.000000, Gain on TR-3587-2026, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:41, 2026-07-28 19:05:41))  
[2026-07-28 19:05:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:42] local.INFO: Model: Journal  
[2026-07-28 19:05:42] local.INFO: Data received: {"id":"0ec347bb-595a-4a1a-a038-5409cd11e95b","type":"Credit","amount":"192750.00","rate":"128.500000","lcy_amount":"192750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:40","updated_at":"2026-07-26 11:54:40"} 
[2026-07-28 19:05:42] local.INFO: ID present? YES  
[2026-07-28 19:05:42] local.INFO: ID value: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:42] local.INFO: ID empty? NO  
[2026-07-28 19:05:42] local.INFO: Attempting to find record with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:42] local.INFO: Record not found, creating new with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0ec347bb-595a-4a1a-a038-5409cd11e95b, Credit, 192750.00, 128.500000, 192750.000000, Buying TX: Funds out of cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:42, 2026-07-28 19:05:42))  
[2026-07-28 19:05:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:48] local.INFO: Model: Journal  
[2026-07-28 19:05:48] local.INFO: Data received: {"id":"0ec347bb-595a-4a1a-a038-5409cd11e95b","type":"Credit","amount":"192750.00","rate":"128.500000","lcy_amount":"192750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:40","updated_at":"2026-07-26 11:54:40"} 
[2026-07-28 19:05:48] local.INFO: ID present? YES  
[2026-07-28 19:05:48] local.INFO: ID value: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:48] local.INFO: ID empty? NO  
[2026-07-28 19:05:48] local.INFO: Attempting to find record with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:48] local.INFO: Record not found, creating new with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0ec347bb-595a-4a1a-a038-5409cd11e95b, Credit, 192750.00, 128.500000, 192750.000000, Buying TX: Funds out of cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:48, 2026-07-28 19:05:48))  
[2026-07-28 19:05:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:05:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:05:55] local.INFO: Model: Journal  
[2026-07-28 19:05:55] local.INFO: Data received: {"id":"0ec347bb-595a-4a1a-a038-5409cd11e95b","type":"Credit","amount":"192750.00","rate":"128.500000","lcy_amount":"192750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:40","updated_at":"2026-07-26 11:54:40"} 
[2026-07-28 19:05:55] local.INFO: ID present? YES  
[2026-07-28 19:05:55] local.INFO: ID value: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:55] local.INFO: ID empty? NO  
[2026-07-28 19:05:55] local.INFO: Attempting to find record with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:55] local.INFO: Record not found, creating new with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:05:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0ec347bb-595a-4a1a-a038-5409cd11e95b, Credit, 192750.00, 128.500000, 192750.000000, Buying TX: Funds out of cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:05:55, 2026-07-28 19:05:55))  
[2026-07-28 19:05:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:01] local.INFO: Model: Journal  
[2026-07-28 19:06:01] local.INFO: Data received: {"id":"0ec347bb-595a-4a1a-a038-5409cd11e95b","type":"Credit","amount":"192750.00","rate":"128.500000","lcy_amount":"192750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:40","updated_at":"2026-07-26 11:54:40"} 
[2026-07-28 19:06:01] local.INFO: ID present? YES  
[2026-07-28 19:06:01] local.INFO: ID value: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:06:01] local.INFO: ID empty? NO  
[2026-07-28 19:06:01] local.INFO: Attempting to find record with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:06:01] local.INFO: Record not found, creating new with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 19:06:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0ec347bb-595a-4a1a-a038-5409cd11e95b, Credit, 192750.00, 128.500000, 192750.000000, Buying TX: Funds out of cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:01, 2026-07-28 19:06:01))  
[2026-07-28 19:06:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:02] local.INFO: Model: Journal  
[2026-07-28 19:06:02] local.INFO: Data received: {"id":"0ee056da-4c78-42be-baab-5947136f619b","type":"Credit","amount":"100.00","rate":null,"lcy_amount":"17345.000000","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 17:28:12","updated_at":"2026-07-28 17:28:13"} 
[2026-07-28 19:06:02] local.INFO: ID present? YES  
[2026-07-28 19:06:02] local.INFO: ID value: 0ee056da-4c78-42be-baab-5947136f619b  
[2026-07-28 19:06:02] local.INFO: ID empty? NO  
[2026-07-28 19:06:02] local.INFO: Attempting to find record with ID: 0ee056da-4c78-42be-baab-5947136f619b  
[2026-07-28 19:06:02] local.INFO: Record not found, creating new with ID: 0ee056da-4c78-42be-baab-5947136f619b  
[2026-07-28 19:06:02] local.INFO: Created record: {"id":"0ee056da-4c78-42be-baab-5947136f619b","type":"Credit","amount":"100.00","rate":null,"lcy_amount":"17345.000000","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","updated_at":"2026-07-28T16:06:02.000000Z","created_at":"2026-07-28T16:06:02.000000Z","account":{"id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","name":"GBP-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-GBP-000002","is_fx_account":"1","balance":-100.0,"debit_total":"1110.00","credit_total":1210.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d7b87b04-d19c-4bed-9d3c-115c07257649","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-24T07:17:13.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:06:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:04] local.INFO: Model: Journal  
[2026-07-28 19:06:04] local.INFO: Data received: {"id":"0f76a4e8-9f54-4a3e-b9d0-544e3caae19a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3549-2026","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:06:04] local.INFO: ID present? YES  
[2026-07-28 19:06:04] local.INFO: ID value: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:04] local.INFO: ID empty? NO  
[2026-07-28 19:06:04] local.INFO: Attempting to find record with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:04] local.INFO: Record not found, creating new with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0f76a4e8-9f54-4a3e-b9d0-544e3caae19a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3549-2026, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:04, 2026-07-28 19:06:04))  
[2026-07-28 19:06:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:10] local.INFO: Model: Journal  
[2026-07-28 19:06:10] local.INFO: Data received: {"id":"0f76a4e8-9f54-4a3e-b9d0-544e3caae19a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3549-2026","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:06:10] local.INFO: ID present? YES  
[2026-07-28 19:06:10] local.INFO: ID value: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:10] local.INFO: ID empty? NO  
[2026-07-28 19:06:10] local.INFO: Attempting to find record with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:10] local.INFO: Record not found, creating new with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0f76a4e8-9f54-4a3e-b9d0-544e3caae19a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3549-2026, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:10, 2026-07-28 19:06:10))  
[2026-07-28 19:06:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:16] local.INFO: Model: Journal  
[2026-07-28 19:06:16] local.INFO: Data received: {"id":"0f76a4e8-9f54-4a3e-b9d0-544e3caae19a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3549-2026","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:06:16] local.INFO: ID present? YES  
[2026-07-28 19:06:16] local.INFO: ID value: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:16] local.INFO: ID empty? NO  
[2026-07-28 19:06:16] local.INFO: Attempting to find record with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:16] local.INFO: Record not found, creating new with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0f76a4e8-9f54-4a3e-b9d0-544e3caae19a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3549-2026, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:16, 2026-07-28 19:06:16))  
[2026-07-28 19:06:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:22] local.INFO: Model: Journal  
[2026-07-28 19:06:22] local.INFO: Data received: {"id":"0f76a4e8-9f54-4a3e-b9d0-544e3caae19a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3549-2026","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:06:22] local.INFO: ID present? YES  
[2026-07-28 19:06:22] local.INFO: ID value: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:22] local.INFO: ID empty? NO  
[2026-07-28 19:06:22] local.INFO: Attempting to find record with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:22] local.INFO: Record not found, creating new with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 19:06:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0f76a4e8-9f54-4a3e-b9d0-544e3caae19a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3549-2026, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:22, 2026-07-28 19:06:22))  
[2026-07-28 19:06:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:24] local.INFO: Model: Journal  
[2026-07-28 19:06:24] local.INFO: Data received: {"id":"0faf2e06-8733-4383-a0f4-0626a5796989","type":"Debit","amount":"2600.00","rate":"130.000000","lcy_amount":"2600.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:06:24] local.INFO: ID present? YES  
[2026-07-28 19:06:24] local.INFO: ID value: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:24] local.INFO: ID empty? NO  
[2026-07-28 19:06:24] local.INFO: Attempting to find record with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:24] local.INFO: Record not found, creating new with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0faf2e06-8733-4383-a0f4-0626a5796989, Debit, 2600.00, 130.000000, 2600.000000, Selling TX: Funds into cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:24, 2026-07-28 19:06:24))  
[2026-07-28 19:06:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:30] local.INFO: Model: Journal  
[2026-07-28 19:06:30] local.INFO: Data received: {"id":"0faf2e06-8733-4383-a0f4-0626a5796989","type":"Debit","amount":"2600.00","rate":"130.000000","lcy_amount":"2600.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:06:30] local.INFO: ID present? YES  
[2026-07-28 19:06:30] local.INFO: ID value: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:30] local.INFO: ID empty? NO  
[2026-07-28 19:06:30] local.INFO: Attempting to find record with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:30] local.INFO: Record not found, creating new with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0faf2e06-8733-4383-a0f4-0626a5796989, Debit, 2600.00, 130.000000, 2600.000000, Selling TX: Funds into cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:30, 2026-07-28 19:06:30))  
[2026-07-28 19:06:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:36] local.INFO: Model: Journal  
[2026-07-28 19:06:36] local.INFO: Data received: {"id":"0faf2e06-8733-4383-a0f4-0626a5796989","type":"Debit","amount":"2600.00","rate":"130.000000","lcy_amount":"2600.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:06:36] local.INFO: ID present? YES  
[2026-07-28 19:06:36] local.INFO: ID value: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:36] local.INFO: ID empty? NO  
[2026-07-28 19:06:36] local.INFO: Attempting to find record with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:36] local.INFO: Record not found, creating new with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0faf2e06-8733-4383-a0f4-0626a5796989, Debit, 2600.00, 130.000000, 2600.000000, Selling TX: Funds into cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:36, 2026-07-28 19:06:36))  
[2026-07-28 19:06:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:43] local.INFO: Model: Journal  
[2026-07-28 19:06:43] local.INFO: Data received: {"id":"0faf2e06-8733-4383-a0f4-0626a5796989","type":"Debit","amount":"2600.00","rate":"130.000000","lcy_amount":"2600.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:06:43] local.INFO: ID present? YES  
[2026-07-28 19:06:43] local.INFO: ID value: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:43] local.INFO: ID empty? NO  
[2026-07-28 19:06:43] local.INFO: Attempting to find record with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:43] local.INFO: Record not found, creating new with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 19:06:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (0faf2e06-8733-4383-a0f4-0626a5796989, Debit, 2600.00, 130.000000, 2600.000000, Selling TX: Funds into cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:43, 2026-07-28 19:06:43))  
[2026-07-28 19:06:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:44] local.INFO: Model: Journal  
[2026-07-28 19:06:44] local.INFO: Data received: {"id":"10212f22-fb5b-4959-8797-b884ed693c80","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3557-2026","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:06:44] local.INFO: ID present? YES  
[2026-07-28 19:06:44] local.INFO: ID value: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:44] local.INFO: ID empty? NO  
[2026-07-28 19:06:44] local.INFO: Attempting to find record with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:44] local.INFO: Record not found, creating new with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (10212f22-fb5b-4959-8797-b884ed693c80, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3557-2026, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:44, 2026-07-28 19:06:44))  
[2026-07-28 19:06:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:50] local.INFO: Model: Journal  
[2026-07-28 19:06:50] local.INFO: Data received: {"id":"10212f22-fb5b-4959-8797-b884ed693c80","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3557-2026","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:06:50] local.INFO: ID present? YES  
[2026-07-28 19:06:50] local.INFO: ID value: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:50] local.INFO: ID empty? NO  
[2026-07-28 19:06:50] local.INFO: Attempting to find record with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:50] local.INFO: Record not found, creating new with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (10212f22-fb5b-4959-8797-b884ed693c80, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3557-2026, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:50, 2026-07-28 19:06:50))  
[2026-07-28 19:06:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:06:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:06:56] local.INFO: Model: Journal  
[2026-07-28 19:06:56] local.INFO: Data received: {"id":"10212f22-fb5b-4959-8797-b884ed693c80","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3557-2026","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:06:56] local.INFO: ID present? YES  
[2026-07-28 19:06:56] local.INFO: ID value: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:56] local.INFO: ID empty? NO  
[2026-07-28 19:06:56] local.INFO: Attempting to find record with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:56] local.INFO: Record not found, creating new with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:06:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (10212f22-fb5b-4959-8797-b884ed693c80, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3557-2026, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:06:56, 2026-07-28 19:06:56))  
[2026-07-28 19:06:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:03] local.INFO: Model: Journal  
[2026-07-28 19:07:03] local.INFO: Data received: {"id":"10212f22-fb5b-4959-8797-b884ed693c80","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3557-2026","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:07:03] local.INFO: ID present? YES  
[2026-07-28 19:07:03] local.INFO: ID value: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:07:03] local.INFO: ID empty? NO  
[2026-07-28 19:07:03] local.INFO: Attempting to find record with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:07:03] local.INFO: Record not found, creating new with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 19:07:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (10212f22-fb5b-4959-8797-b884ed693c80, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3557-2026, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:03, 2026-07-28 19:07:03))  
[2026-07-28 19:07:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:04] local.INFO: Model: Journal  
[2026-07-28 19:07:04] local.INFO: Data received: {"id":"1323e1bd-ed8c-49cd-9451-f9cc961e0bed","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3568-2026","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:07:04] local.INFO: ID present? YES  
[2026-07-28 19:07:04] local.INFO: ID value: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:04] local.INFO: ID empty? NO  
[2026-07-28 19:07:04] local.INFO: Attempting to find record with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:04] local.INFO: Record not found, creating new with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1323e1bd-ed8c-49cd-9451-f9cc961e0bed, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3568-2026, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:04, 2026-07-28 19:07:04))  
[2026-07-28 19:07:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:10] local.INFO: Model: Journal  
[2026-07-28 19:07:10] local.INFO: Data received: {"id":"1323e1bd-ed8c-49cd-9451-f9cc961e0bed","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3568-2026","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:07:10] local.INFO: ID present? YES  
[2026-07-28 19:07:10] local.INFO: ID value: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:10] local.INFO: ID empty? NO  
[2026-07-28 19:07:10] local.INFO: Attempting to find record with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:10] local.INFO: Record not found, creating new with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1323e1bd-ed8c-49cd-9451-f9cc961e0bed, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3568-2026, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:10, 2026-07-28 19:07:10))  
[2026-07-28 19:07:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:17] local.INFO: Model: Journal  
[2026-07-28 19:07:17] local.INFO: Data received: {"id":"1323e1bd-ed8c-49cd-9451-f9cc961e0bed","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3568-2026","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:07:17] local.INFO: ID present? YES  
[2026-07-28 19:07:17] local.INFO: ID value: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:17] local.INFO: ID empty? NO  
[2026-07-28 19:07:17] local.INFO: Attempting to find record with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:17] local.INFO: Record not found, creating new with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1323e1bd-ed8c-49cd-9451-f9cc961e0bed, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3568-2026, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:17, 2026-07-28 19:07:17))  
[2026-07-28 19:07:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:23] local.INFO: Model: Journal  
[2026-07-28 19:07:23] local.INFO: Data received: {"id":"1323e1bd-ed8c-49cd-9451-f9cc961e0bed","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3568-2026","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:07:23] local.INFO: ID present? YES  
[2026-07-28 19:07:23] local.INFO: ID value: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:23] local.INFO: ID empty? NO  
[2026-07-28 19:07:23] local.INFO: Attempting to find record with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:23] local.INFO: Record not found, creating new with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 19:07:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1323e1bd-ed8c-49cd-9451-f9cc961e0bed, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3568-2026, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:23, 2026-07-28 19:07:23))  
[2026-07-28 19:07:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:24] local.INFO: Model: Journal  
[2026-07-28 19:07:24] local.INFO: Data received: {"id":"133b606f-2394-4b43-bce5-abe3dbbe559a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3573-2026","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:07:24] local.INFO: ID present? YES  
[2026-07-28 19:07:24] local.INFO: ID value: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:24] local.INFO: ID empty? NO  
[2026-07-28 19:07:24] local.INFO: Attempting to find record with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:24] local.INFO: Record not found, creating new with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (133b606f-2394-4b43-bce5-abe3dbbe559a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3573-2026, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:24, 2026-07-28 19:07:24))  
[2026-07-28 19:07:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:31] local.INFO: Model: Journal  
[2026-07-28 19:07:31] local.INFO: Data received: {"id":"133b606f-2394-4b43-bce5-abe3dbbe559a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3573-2026","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:07:31] local.INFO: ID present? YES  
[2026-07-28 19:07:31] local.INFO: ID value: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:31] local.INFO: ID empty? NO  
[2026-07-28 19:07:31] local.INFO: Attempting to find record with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:31] local.INFO: Record not found, creating new with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (133b606f-2394-4b43-bce5-abe3dbbe559a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3573-2026, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:31, 2026-07-28 19:07:31))  
[2026-07-28 19:07:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:37] local.INFO: Model: Journal  
[2026-07-28 19:07:37] local.INFO: Data received: {"id":"133b606f-2394-4b43-bce5-abe3dbbe559a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3573-2026","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:07:37] local.INFO: ID present? YES  
[2026-07-28 19:07:37] local.INFO: ID value: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:37] local.INFO: ID empty? NO  
[2026-07-28 19:07:37] local.INFO: Attempting to find record with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:37] local.INFO: Record not found, creating new with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (133b606f-2394-4b43-bce5-abe3dbbe559a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3573-2026, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:37, 2026-07-28 19:07:37))  
[2026-07-28 19:07:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:43] local.INFO: Model: Journal  
[2026-07-28 19:07:43] local.INFO: Data received: {"id":"133b606f-2394-4b43-bce5-abe3dbbe559a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3573-2026","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:07:43] local.INFO: ID present? YES  
[2026-07-28 19:07:43] local.INFO: ID value: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:43] local.INFO: ID empty? NO  
[2026-07-28 19:07:43] local.INFO: Attempting to find record with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:43] local.INFO: Record not found, creating new with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 19:07:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (133b606f-2394-4b43-bce5-abe3dbbe559a, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3573-2026, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:43, 2026-07-28 19:07:43))  
[2026-07-28 19:07:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:44] local.INFO: Model: Journal  
[2026-07-28 19:07:44] local.INFO: Data received: {"id":"135ccdb0-0d9f-4aea-8e4c-ba187a825179","type":"Debit","amount":"33907.50","rate":"150.700000","lcy_amount":"33907.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:07:44] local.INFO: ID present? YES  
[2026-07-28 19:07:44] local.INFO: ID value: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:44] local.INFO: ID empty? NO  
[2026-07-28 19:07:44] local.INFO: Attempting to find record with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:44] local.INFO: Record not found, creating new with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (135ccdb0-0d9f-4aea-8e4c-ba187a825179, Debit, 33907.50, 150.700000, 33907.500000, Selling TX: Funds into cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:44, 2026-07-28 19:07:44))  
[2026-07-28 19:07:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:51] local.INFO: Model: Journal  
[2026-07-28 19:07:51] local.INFO: Data received: {"id":"135ccdb0-0d9f-4aea-8e4c-ba187a825179","type":"Debit","amount":"33907.50","rate":"150.700000","lcy_amount":"33907.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:07:51] local.INFO: ID present? YES  
[2026-07-28 19:07:51] local.INFO: ID value: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:51] local.INFO: ID empty? NO  
[2026-07-28 19:07:51] local.INFO: Attempting to find record with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:51] local.INFO: Record not found, creating new with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (135ccdb0-0d9f-4aea-8e4c-ba187a825179, Debit, 33907.50, 150.700000, 33907.500000, Selling TX: Funds into cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:51, 2026-07-28 19:07:51))  
[2026-07-28 19:07:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:07:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:07:57] local.INFO: Model: Journal  
[2026-07-28 19:07:57] local.INFO: Data received: {"id":"135ccdb0-0d9f-4aea-8e4c-ba187a825179","type":"Debit","amount":"33907.50","rate":"150.700000","lcy_amount":"33907.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:07:57] local.INFO: ID present? YES  
[2026-07-28 19:07:57] local.INFO: ID value: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:57] local.INFO: ID empty? NO  
[2026-07-28 19:07:57] local.INFO: Attempting to find record with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:57] local.INFO: Record not found, creating new with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:07:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (135ccdb0-0d9f-4aea-8e4c-ba187a825179, Debit, 33907.50, 150.700000, 33907.500000, Selling TX: Funds into cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:07:57, 2026-07-28 19:07:57))  
[2026-07-28 19:07:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:03] local.INFO: Model: Journal  
[2026-07-28 19:08:03] local.INFO: Data received: {"id":"135ccdb0-0d9f-4aea-8e4c-ba187a825179","type":"Debit","amount":"33907.50","rate":"150.700000","lcy_amount":"33907.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:08:03] local.INFO: ID present? YES  
[2026-07-28 19:08:03] local.INFO: ID value: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:08:03] local.INFO: ID empty? NO  
[2026-07-28 19:08:03] local.INFO: Attempting to find record with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:08:03] local.INFO: Record not found, creating new with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 19:08:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (135ccdb0-0d9f-4aea-8e4c-ba187a825179, Debit, 33907.50, 150.700000, 33907.500000, Selling TX: Funds into cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:03, 2026-07-28 19:08:03))  
[2026-07-28 19:08:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:04] local.INFO: Model: Journal  
[2026-07-28 19:08:04] local.INFO: Data received: {"id":"13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3574-2026","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:08:04] local.INFO: ID present? YES  
[2026-07-28 19:08:04] local.INFO: ID value: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:04] local.INFO: ID empty? NO  
[2026-07-28 19:08:04] local.INFO: Attempting to find record with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:04] local.INFO: Record not found, creating new with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3574-2026, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:04, 2026-07-28 19:08:04))  
[2026-07-28 19:08:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:11] local.INFO: Model: Journal  
[2026-07-28 19:08:11] local.INFO: Data received: {"id":"13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3574-2026","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:08:11] local.INFO: ID present? YES  
[2026-07-28 19:08:11] local.INFO: ID value: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:11] local.INFO: ID empty? NO  
[2026-07-28 19:08:11] local.INFO: Attempting to find record with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:11] local.INFO: Record not found, creating new with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3574-2026, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:11, 2026-07-28 19:08:11))  
[2026-07-28 19:08:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:17] local.INFO: Model: Journal  
[2026-07-28 19:08:17] local.INFO: Data received: {"id":"13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3574-2026","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:08:17] local.INFO: ID present? YES  
[2026-07-28 19:08:17] local.INFO: ID value: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:17] local.INFO: ID empty? NO  
[2026-07-28 19:08:17] local.INFO: Attempting to find record with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:17] local.INFO: Record not found, creating new with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3574-2026, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:17, 2026-07-28 19:08:17))  
[2026-07-28 19:08:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:23] local.INFO: Model: Journal  
[2026-07-28 19:08:23] local.INFO: Data received: {"id":"13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3574-2026","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:08:23] local.INFO: ID present? YES  
[2026-07-28 19:08:23] local.INFO: ID value: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:23] local.INFO: ID empty? NO  
[2026-07-28 19:08:23] local.INFO: Attempting to find record with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:23] local.INFO: Record not found, creating new with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 19:08:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3574-2026, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:23, 2026-07-28 19:08:23))  
[2026-07-28 19:08:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:25] local.INFO: Model: Journal  
[2026-07-28 19:08:25] local.INFO: Data received: {"id":"14651e8c-b497-4fc6-a40e-178fe97117fc","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3586-2026","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:08:25] local.INFO: ID present? YES  
[2026-07-28 19:08:25] local.INFO: ID value: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:25] local.INFO: ID empty? NO  
[2026-07-28 19:08:25] local.INFO: Attempting to find record with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:25] local.INFO: Record not found, creating new with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (14651e8c-b497-4fc6-a40e-178fe97117fc, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3586-2026, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:25, 2026-07-28 19:08:25))  
[2026-07-28 19:08:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:31] local.INFO: Model: Journal  
[2026-07-28 19:08:31] local.INFO: Data received: {"id":"14651e8c-b497-4fc6-a40e-178fe97117fc","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3586-2026","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:08:31] local.INFO: ID present? YES  
[2026-07-28 19:08:31] local.INFO: ID value: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:31] local.INFO: ID empty? NO  
[2026-07-28 19:08:31] local.INFO: Attempting to find record with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:31] local.INFO: Record not found, creating new with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (14651e8c-b497-4fc6-a40e-178fe97117fc, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3586-2026, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:31, 2026-07-28 19:08:31))  
[2026-07-28 19:08:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:37] local.INFO: Model: Journal  
[2026-07-28 19:08:37] local.INFO: Data received: {"id":"14651e8c-b497-4fc6-a40e-178fe97117fc","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3586-2026","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:08:37] local.INFO: ID present? YES  
[2026-07-28 19:08:37] local.INFO: ID value: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:37] local.INFO: ID empty? NO  
[2026-07-28 19:08:37] local.INFO: Attempting to find record with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:37] local.INFO: Record not found, creating new with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (14651e8c-b497-4fc6-a40e-178fe97117fc, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3586-2026, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:37, 2026-07-28 19:08:37))  
[2026-07-28 19:08:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:43] local.INFO: Model: Journal  
[2026-07-28 19:08:43] local.INFO: Data received: {"id":"14651e8c-b497-4fc6-a40e-178fe97117fc","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3586-2026","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:08:43] local.INFO: ID present? YES  
[2026-07-28 19:08:43] local.INFO: ID value: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:43] local.INFO: ID empty? NO  
[2026-07-28 19:08:43] local.INFO: Attempting to find record with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:43] local.INFO: Record not found, creating new with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 19:08:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (14651e8c-b497-4fc6-a40e-178fe97117fc, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3586-2026, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:43, 2026-07-28 19:08:43))  
[2026-07-28 19:08:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:45] local.INFO: Model: Journal  
[2026-07-28 19:08:45] local.INFO: Data received: {"id":"1536d91e-bf4b-4f2d-b6b1-283b25b8884e","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3559-2026","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:08:45] local.INFO: ID present? YES  
[2026-07-28 19:08:45] local.INFO: ID value: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:45] local.INFO: ID empty? NO  
[2026-07-28 19:08:45] local.INFO: Attempting to find record with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:45] local.INFO: Record not found, creating new with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1536d91e-bf4b-4f2d-b6b1-283b25b8884e, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3559-2026, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:45, 2026-07-28 19:08:45))  
[2026-07-28 19:08:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:51] local.INFO: Model: Journal  
[2026-07-28 19:08:51] local.INFO: Data received: {"id":"1536d91e-bf4b-4f2d-b6b1-283b25b8884e","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3559-2026","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:08:51] local.INFO: ID present? YES  
[2026-07-28 19:08:51] local.INFO: ID value: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:51] local.INFO: ID empty? NO  
[2026-07-28 19:08:51] local.INFO: Attempting to find record with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:51] local.INFO: Record not found, creating new with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1536d91e-bf4b-4f2d-b6b1-283b25b8884e, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3559-2026, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:51, 2026-07-28 19:08:51))  
[2026-07-28 19:08:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:08:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:08:57] local.INFO: Model: Journal  
[2026-07-28 19:08:57] local.INFO: Data received: {"id":"1536d91e-bf4b-4f2d-b6b1-283b25b8884e","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3559-2026","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:08:57] local.INFO: ID present? YES  
[2026-07-28 19:08:57] local.INFO: ID value: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:57] local.INFO: ID empty? NO  
[2026-07-28 19:08:57] local.INFO: Attempting to find record with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:57] local.INFO: Record not found, creating new with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:08:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1536d91e-bf4b-4f2d-b6b1-283b25b8884e, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3559-2026, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:08:57, 2026-07-28 19:08:57))  
[2026-07-28 19:08:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:04] local.INFO: Model: Journal  
[2026-07-28 19:09:04] local.INFO: Data received: {"id":"1536d91e-bf4b-4f2d-b6b1-283b25b8884e","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3559-2026","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:09:04] local.INFO: ID present? YES  
[2026-07-28 19:09:04] local.INFO: ID value: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:09:04] local.INFO: ID empty? NO  
[2026-07-28 19:09:04] local.INFO: Attempting to find record with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:09:04] local.INFO: Record not found, creating new with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 19:09:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1536d91e-bf4b-4f2d-b6b1-283b25b8884e, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3559-2026, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:09:04, 2026-07-28 19:09:04))  
[2026-07-28 19:09:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:05] local.INFO: Model: Journal  
[2026-07-28 19:09:05] local.INFO: Data received: {"id":"1606089b-6a66-4e66-a0a9-0ecadd2bb962","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:09:05] local.INFO: ID present? YES  
[2026-07-28 19:09:05] local.INFO: ID value: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:05] local.INFO: ID empty? NO  
[2026-07-28 19:09:05] local.INFO: Attempting to find record with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:05] local.INFO: Record not found, creating new with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1606089b-6a66-4e66-a0a9-0ecadd2bb962, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:09:05, 2026-07-28 19:09:05))  
[2026-07-28 19:09:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:11] local.INFO: Model: Journal  
[2026-07-28 19:09:11] local.INFO: Data received: {"id":"1606089b-6a66-4e66-a0a9-0ecadd2bb962","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:09:11] local.INFO: ID present? YES  
[2026-07-28 19:09:11] local.INFO: ID value: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:11] local.INFO: ID empty? NO  
[2026-07-28 19:09:11] local.INFO: Attempting to find record with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:11] local.INFO: Record not found, creating new with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1606089b-6a66-4e66-a0a9-0ecadd2bb962, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:09:11, 2026-07-28 19:09:11))  
[2026-07-28 19:09:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:18] local.INFO: Model: Journal  
[2026-07-28 19:09:18] local.INFO: Data received: {"id":"1606089b-6a66-4e66-a0a9-0ecadd2bb962","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:09:18] local.INFO: ID present? YES  
[2026-07-28 19:09:18] local.INFO: ID value: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:18] local.INFO: ID empty? NO  
[2026-07-28 19:09:18] local.INFO: Attempting to find record with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:18] local.INFO: Record not found, creating new with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1606089b-6a66-4e66-a0a9-0ecadd2bb962, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:09:18, 2026-07-28 19:09:18))  
[2026-07-28 19:09:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:24] local.INFO: Model: Journal  
[2026-07-28 19:09:24] local.INFO: Data received: {"id":"1606089b-6a66-4e66-a0a9-0ecadd2bb962","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:09:24] local.INFO: ID present? YES  
[2026-07-28 19:09:24] local.INFO: ID value: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:24] local.INFO: ID empty? NO  
[2026-07-28 19:09:24] local.INFO: Attempting to find record with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:24] local.INFO: Record not found, creating new with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 19:09:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1606089b-6a66-4e66-a0a9-0ecadd2bb962, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:09:24, 2026-07-28 19:09:24))  
[2026-07-28 19:09:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:25] local.INFO: Model: Journal  
[2026-07-28 19:09:25] local.INFO: Data received: {"id":"179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3570-2026","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:09:25] local.INFO: ID present? YES  
[2026-07-28 19:09:25] local.INFO: ID value: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:25] local.INFO: ID empty? NO  
[2026-07-28 19:09:25] local.INFO: Attempting to find record with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:25] local.INFO: Record not found, creating new with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3570-2026, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:09:25, 2026-07-28 19:09:25))  
[2026-07-28 19:09:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:31] local.INFO: Model: Journal  
[2026-07-28 19:09:31] local.INFO: Data received: {"id":"179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3570-2026","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:09:31] local.INFO: ID present? YES  
[2026-07-28 19:09:31] local.INFO: ID value: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:31] local.INFO: ID empty? NO  
[2026-07-28 19:09:31] local.INFO: Attempting to find record with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:31] local.INFO: Record not found, creating new with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3570-2026, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:09:31, 2026-07-28 19:09:31))  
[2026-07-28 19:09:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:38] local.INFO: Model: Journal  
[2026-07-28 19:09:38] local.INFO: Data received: {"id":"179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3570-2026","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:09:38] local.INFO: ID present? YES  
[2026-07-28 19:09:38] local.INFO: ID value: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:38] local.INFO: ID empty? NO  
[2026-07-28 19:09:38] local.INFO: Attempting to find record with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:38] local.INFO: Record not found, creating new with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3570-2026, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:09:38, 2026-07-28 19:09:38))  
[2026-07-28 19:09:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:44] local.INFO: Model: Journal  
[2026-07-28 19:09:44] local.INFO: Data received: {"id":"179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3570-2026","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:09:44] local.INFO: ID present? YES  
[2026-07-28 19:09:44] local.INFO: ID value: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:44] local.INFO: ID empty? NO  
[2026-07-28 19:09:44] local.INFO: Attempting to find record with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:44] local.INFO: Record not found, creating new with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 19:09:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3570-2026, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:09:44, 2026-07-28 19:09:44))  
[2026-07-28 19:09:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:45] local.INFO: Model: Journal  
[2026-07-28 19:09:45] local.INFO: Data received: {"id":"1bf254f0-680a-43ec-aae8-4edb1d2454bc","type":"Credit","amount":"17850.00","rate":"127.500000","lcy_amount":"17850.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:09:45] local.INFO: ID present? YES  
[2026-07-28 19:09:45] local.INFO: ID value: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:09:45] local.INFO: ID empty? NO  
[2026-07-28 19:09:45] local.INFO: Attempting to find record with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:09:45] local.INFO: Record not found, creating new with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:09:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1bf254f0-680a-43ec-aae8-4edb1d2454bc, Credit, 17850.00, 127.500000, 17850.000000, Buying TX: Funds out of cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:09:45, 2026-07-28 19:09:45))  
[2026-07-28 19:09:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:09:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:09:59] local.INFO: Model: Journal  
[2026-07-28 19:09:59] local.INFO: Data received: {"id":"1bf254f0-680a-43ec-aae8-4edb1d2454bc","type":"Credit","amount":"17850.00","rate":"127.500000","lcy_amount":"17850.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:09:59] local.INFO: ID present? YES  
[2026-07-28 19:09:59] local.INFO: ID value: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:09:59] local.INFO: ID empty? NO  
[2026-07-28 19:09:59] local.INFO: Attempting to find record with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:09:59] local.INFO: Record not found, creating new with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:09:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1bf254f0-680a-43ec-aae8-4edb1d2454bc, Credit, 17850.00, 127.500000, 17850.000000, Buying TX: Funds out of cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:09:59, 2026-07-28 19:09:59))  
[2026-07-28 19:09:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:05] local.INFO: Model: Journal  
[2026-07-28 19:10:05] local.INFO: Data received: {"id":"1bf254f0-680a-43ec-aae8-4edb1d2454bc","type":"Credit","amount":"17850.00","rate":"127.500000","lcy_amount":"17850.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:10:05] local.INFO: ID present? YES  
[2026-07-28 19:10:05] local.INFO: ID value: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:10:05] local.INFO: ID empty? NO  
[2026-07-28 19:10:05] local.INFO: Attempting to find record with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:10:05] local.INFO: Record not found, creating new with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:10:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1bf254f0-680a-43ec-aae8-4edb1d2454bc, Credit, 17850.00, 127.500000, 17850.000000, Buying TX: Funds out of cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:05, 2026-07-28 19:10:05))  
[2026-07-28 19:10:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:11] local.INFO: Model: Journal  
[2026-07-28 19:10:11] local.INFO: Data received: {"id":"1bf254f0-680a-43ec-aae8-4edb1d2454bc","type":"Credit","amount":"17850.00","rate":"127.500000","lcy_amount":"17850.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:10:11] local.INFO: ID present? YES  
[2026-07-28 19:10:11] local.INFO: ID value: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:10:11] local.INFO: ID empty? NO  
[2026-07-28 19:10:11] local.INFO: Attempting to find record with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:10:11] local.INFO: Record not found, creating new with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 19:10:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1bf254f0-680a-43ec-aae8-4edb1d2454bc, Credit, 17850.00, 127.500000, 17850.000000, Buying TX: Funds out of cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:11, 2026-07-28 19:10:11))  
[2026-07-28 19:10:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:12] local.INFO: Model: Journal  
[2026-07-28 19:10:12] local.INFO: Data received: {"id":"1c037b93-2ddf-42b8-ae58-a4621d0edcb3","type":"Credit","amount":"435.00","rate":"127.500000","lcy_amount":"435.000000","narrative":"Gain on TR-3589-2026","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:12] local.INFO: ID present? YES  
[2026-07-28 19:10:12] local.INFO: ID value: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:12] local.INFO: ID empty? NO  
[2026-07-28 19:10:12] local.INFO: Attempting to find record with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:12] local.INFO: Record not found, creating new with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c037b93-2ddf-42b8-ae58-a4621d0edcb3, Credit, 435.00, 127.500000, 435.000000, Gain on TR-3589-2026, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:12, 2026-07-28 19:10:12))  
[2026-07-28 19:10:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:19] local.INFO: Model: Journal  
[2026-07-28 19:10:19] local.INFO: Data received: {"id":"1c037b93-2ddf-42b8-ae58-a4621d0edcb3","type":"Credit","amount":"435.00","rate":"127.500000","lcy_amount":"435.000000","narrative":"Gain on TR-3589-2026","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:19] local.INFO: ID present? YES  
[2026-07-28 19:10:19] local.INFO: ID value: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:19] local.INFO: ID empty? NO  
[2026-07-28 19:10:19] local.INFO: Attempting to find record with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:19] local.INFO: Record not found, creating new with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c037b93-2ddf-42b8-ae58-a4621d0edcb3, Credit, 435.00, 127.500000, 435.000000, Gain on TR-3589-2026, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:19, 2026-07-28 19:10:19))  
[2026-07-28 19:10:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:25] local.INFO: Model: Journal  
[2026-07-28 19:10:25] local.INFO: Data received: {"id":"1c037b93-2ddf-42b8-ae58-a4621d0edcb3","type":"Credit","amount":"435.00","rate":"127.500000","lcy_amount":"435.000000","narrative":"Gain on TR-3589-2026","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:25] local.INFO: ID present? YES  
[2026-07-28 19:10:25] local.INFO: ID value: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:25] local.INFO: ID empty? NO  
[2026-07-28 19:10:25] local.INFO: Attempting to find record with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:25] local.INFO: Record not found, creating new with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c037b93-2ddf-42b8-ae58-a4621d0edcb3, Credit, 435.00, 127.500000, 435.000000, Gain on TR-3589-2026, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:25, 2026-07-28 19:10:25))  
[2026-07-28 19:10:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:31] local.INFO: Model: Journal  
[2026-07-28 19:10:31] local.INFO: Data received: {"id":"1c037b93-2ddf-42b8-ae58-a4621d0edcb3","type":"Credit","amount":"435.00","rate":"127.500000","lcy_amount":"435.000000","narrative":"Gain on TR-3589-2026","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:31] local.INFO: ID present? YES  
[2026-07-28 19:10:31] local.INFO: ID value: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:31] local.INFO: ID empty? NO  
[2026-07-28 19:10:31] local.INFO: Attempting to find record with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:31] local.INFO: Record not found, creating new with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 19:10:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c037b93-2ddf-42b8-ae58-a4621d0edcb3, Credit, 435.00, 127.500000, 435.000000, Gain on TR-3589-2026, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:31, 2026-07-28 19:10:31))  
[2026-07-28 19:10:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:32] local.INFO: Model: Journal  
[2026-07-28 19:10:32] local.INFO: Data received: {"id":"1c1ed15f-5304-4d89-ab6f-8d93748bd627","type":"Credit","amount":"36975.00","rate":"127.500000","lcy_amount":"36975.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:32] local.INFO: ID present? YES  
[2026-07-28 19:10:32] local.INFO: ID value: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:32] local.INFO: ID empty? NO  
[2026-07-28 19:10:32] local.INFO: Attempting to find record with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:32] local.INFO: Record not found, creating new with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c1ed15f-5304-4d89-ab6f-8d93748bd627, Credit, 36975.00, 127.500000, 36975.000000, Buying TX: Funds out of cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:32, 2026-07-28 19:10:32))  
[2026-07-28 19:10:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:39] local.INFO: Model: Journal  
[2026-07-28 19:10:39] local.INFO: Data received: {"id":"1c1ed15f-5304-4d89-ab6f-8d93748bd627","type":"Credit","amount":"36975.00","rate":"127.500000","lcy_amount":"36975.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:39] local.INFO: ID present? YES  
[2026-07-28 19:10:39] local.INFO: ID value: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:39] local.INFO: ID empty? NO  
[2026-07-28 19:10:39] local.INFO: Attempting to find record with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:39] local.INFO: Record not found, creating new with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c1ed15f-5304-4d89-ab6f-8d93748bd627, Credit, 36975.00, 127.500000, 36975.000000, Buying TX: Funds out of cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:39, 2026-07-28 19:10:39))  
[2026-07-28 19:10:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:45] local.INFO: Model: Journal  
[2026-07-28 19:10:45] local.INFO: Data received: {"id":"1c1ed15f-5304-4d89-ab6f-8d93748bd627","type":"Credit","amount":"36975.00","rate":"127.500000","lcy_amount":"36975.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:45] local.INFO: ID present? YES  
[2026-07-28 19:10:45] local.INFO: ID value: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:45] local.INFO: ID empty? NO  
[2026-07-28 19:10:45] local.INFO: Attempting to find record with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:45] local.INFO: Record not found, creating new with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c1ed15f-5304-4d89-ab6f-8d93748bd627, Credit, 36975.00, 127.500000, 36975.000000, Buying TX: Funds out of cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:45, 2026-07-28 19:10:45))  
[2026-07-28 19:10:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:51] local.INFO: Model: Journal  
[2026-07-28 19:10:51] local.INFO: Data received: {"id":"1c1ed15f-5304-4d89-ab6f-8d93748bd627","type":"Credit","amount":"36975.00","rate":"127.500000","lcy_amount":"36975.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:10:51] local.INFO: ID present? YES  
[2026-07-28 19:10:51] local.INFO: ID value: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:51] local.INFO: ID empty? NO  
[2026-07-28 19:10:51] local.INFO: Attempting to find record with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:51] local.INFO: Record not found, creating new with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 19:10:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c1ed15f-5304-4d89-ab6f-8d93748bd627, Credit, 36975.00, 127.500000, 36975.000000, Buying TX: Funds out of cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:10:51, 2026-07-28 19:10:51))  
[2026-07-28 19:10:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:53] local.INFO: Model: Journal  
[2026-07-28 19:10:53] local.INFO: Data received: {"id":"1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9","type":"Debit","amount":"60.00","rate":"145.000000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:10:53] local.INFO: ID present? YES  
[2026-07-28 19:10:53] local.INFO: ID value: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:10:53] local.INFO: ID empty? NO  
[2026-07-28 19:10:53] local.INFO: Attempting to find record with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:10:53] local.INFO: Record not found, creating new with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:10:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9, Debit, 60.00, 145.000000, 9072.000000, Buying TX: Funds into cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:10:53, 2026-07-28 19:10:53))  
[2026-07-28 19:10:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:10:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:10:59] local.INFO: Model: Journal  
[2026-07-28 19:10:59] local.INFO: Data received: {"id":"1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9","type":"Debit","amount":"60.00","rate":"145.000000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:10:59] local.INFO: ID present? YES  
[2026-07-28 19:10:59] local.INFO: ID value: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:10:59] local.INFO: ID empty? NO  
[2026-07-28 19:10:59] local.INFO: Attempting to find record with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:10:59] local.INFO: Record not found, creating new with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:10:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9, Debit, 60.00, 145.000000, 9072.000000, Buying TX: Funds into cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:10:59, 2026-07-28 19:10:59))  
[2026-07-28 19:10:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:05] local.INFO: Model: Journal  
[2026-07-28 19:11:05] local.INFO: Data received: {"id":"1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9","type":"Debit","amount":"60.00","rate":"145.000000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:11:05] local.INFO: ID present? YES  
[2026-07-28 19:11:05] local.INFO: ID value: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:11:05] local.INFO: ID empty? NO  
[2026-07-28 19:11:05] local.INFO: Attempting to find record with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:11:05] local.INFO: Record not found, creating new with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:11:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9, Debit, 60.00, 145.000000, 9072.000000, Buying TX: Funds into cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:05, 2026-07-28 19:11:05))  
[2026-07-28 19:11:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:11] local.INFO: Model: Journal  
[2026-07-28 19:11:11] local.INFO: Data received: {"id":"1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9","type":"Debit","amount":"60.00","rate":"145.000000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:11:11] local.INFO: ID present? YES  
[2026-07-28 19:11:11] local.INFO: ID value: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:11:11] local.INFO: ID empty? NO  
[2026-07-28 19:11:11] local.INFO: Attempting to find record with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:11:11] local.INFO: Record not found, creating new with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 19:11:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9, Debit, 60.00, 145.000000, 9072.000000, Buying TX: Funds into cashbox, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:11, 2026-07-28 19:11:11))  
[2026-07-28 19:11:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:13] local.INFO: Model: Journal  
[2026-07-28 19:11:13] local.INFO: Data received: {"id":"1d0e772b-b470-4047-9db8-7b205e2b8f63","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:11:13] local.INFO: ID present? YES  
[2026-07-28 19:11:13] local.INFO: ID value: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:13] local.INFO: ID empty? NO  
[2026-07-28 19:11:13] local.INFO: Attempting to find record with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:13] local.INFO: Record not found, creating new with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1d0e772b-b470-4047-9db8-7b205e2b8f63, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:13, 2026-07-28 19:11:13))  
[2026-07-28 19:11:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:19] local.INFO: Model: Journal  
[2026-07-28 19:11:19] local.INFO: Data received: {"id":"1d0e772b-b470-4047-9db8-7b205e2b8f63","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:11:19] local.INFO: ID present? YES  
[2026-07-28 19:11:19] local.INFO: ID value: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:19] local.INFO: ID empty? NO  
[2026-07-28 19:11:19] local.INFO: Attempting to find record with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:19] local.INFO: Record not found, creating new with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1d0e772b-b470-4047-9db8-7b205e2b8f63, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:19, 2026-07-28 19:11:19))  
[2026-07-28 19:11:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:25] local.INFO: Model: Journal  
[2026-07-28 19:11:25] local.INFO: Data received: {"id":"1d0e772b-b470-4047-9db8-7b205e2b8f63","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:11:25] local.INFO: ID present? YES  
[2026-07-28 19:11:25] local.INFO: ID value: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:25] local.INFO: ID empty? NO  
[2026-07-28 19:11:25] local.INFO: Attempting to find record with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:25] local.INFO: Record not found, creating new with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1d0e772b-b470-4047-9db8-7b205e2b8f63, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:25, 2026-07-28 19:11:25))  
[2026-07-28 19:11:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:32] local.INFO: Model: Journal  
[2026-07-28 19:11:32] local.INFO: Data received: {"id":"1d0e772b-b470-4047-9db8-7b205e2b8f63","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:11:32] local.INFO: ID present? YES  
[2026-07-28 19:11:32] local.INFO: ID value: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:32] local.INFO: ID empty? NO  
[2026-07-28 19:11:32] local.INFO: Attempting to find record with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:32] local.INFO: Record not found, creating new with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 19:11:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1d0e772b-b470-4047-9db8-7b205e2b8f63, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:32, 2026-07-28 19:11:32))  
[2026-07-28 19:11:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:33] local.INFO: Model: Journal  
[2026-07-28 19:11:33] local.INFO: Data received: {"id":"1f829bf2-779d-407e-8045-2e200052e7cf","type":"Debit","amount":"60.00","rate":"144.500000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:11:33] local.INFO: ID present? YES  
[2026-07-28 19:11:33] local.INFO: ID value: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:33] local.INFO: ID empty? NO  
[2026-07-28 19:11:33] local.INFO: Attempting to find record with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:33] local.INFO: Record not found, creating new with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1f829bf2-779d-407e-8045-2e200052e7cf, Debit, 60.00, 144.500000, 9072.000000, Buying TX: Funds into cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:33, 2026-07-28 19:11:33))  
[2026-07-28 19:11:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:39] local.INFO: Model: Journal  
[2026-07-28 19:11:39] local.INFO: Data received: {"id":"1f829bf2-779d-407e-8045-2e200052e7cf","type":"Debit","amount":"60.00","rate":"144.500000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:11:39] local.INFO: ID present? YES  
[2026-07-28 19:11:39] local.INFO: ID value: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:39] local.INFO: ID empty? NO  
[2026-07-28 19:11:39] local.INFO: Attempting to find record with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:39] local.INFO: Record not found, creating new with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1f829bf2-779d-407e-8045-2e200052e7cf, Debit, 60.00, 144.500000, 9072.000000, Buying TX: Funds into cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:39, 2026-07-28 19:11:39))  
[2026-07-28 19:11:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:45] local.INFO: Model: Journal  
[2026-07-28 19:11:45] local.INFO: Data received: {"id":"1f829bf2-779d-407e-8045-2e200052e7cf","type":"Debit","amount":"60.00","rate":"144.500000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:11:45] local.INFO: ID present? YES  
[2026-07-28 19:11:45] local.INFO: ID value: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:45] local.INFO: ID empty? NO  
[2026-07-28 19:11:45] local.INFO: Attempting to find record with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:45] local.INFO: Record not found, creating new with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1f829bf2-779d-407e-8045-2e200052e7cf, Debit, 60.00, 144.500000, 9072.000000, Buying TX: Funds into cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:45, 2026-07-28 19:11:45))  
[2026-07-28 19:11:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:52] local.INFO: Model: Journal  
[2026-07-28 19:11:52] local.INFO: Data received: {"id":"1f829bf2-779d-407e-8045-2e200052e7cf","type":"Debit","amount":"60.00","rate":"144.500000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:11:52] local.INFO: ID present? YES  
[2026-07-28 19:11:52] local.INFO: ID value: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:52] local.INFO: ID empty? NO  
[2026-07-28 19:11:52] local.INFO: Attempting to find record with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:52] local.INFO: Record not found, creating new with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 19:11:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1f829bf2-779d-407e-8045-2e200052e7cf, Debit, 60.00, 144.500000, 9072.000000, Buying TX: Funds into cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:11:52, 2026-07-28 19:11:52))  
[2026-07-28 19:11:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:53] local.INFO: Model: Journal  
[2026-07-28 19:11:53] local.INFO: Data received: {"id":"204a6653-c08c-42ae-af2e-b4a9385c96a4","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3560-2026","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:11:53] local.INFO: ID present? YES  
[2026-07-28 19:11:53] local.INFO: ID value: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:11:53] local.INFO: ID empty? NO  
[2026-07-28 19:11:53] local.INFO: Attempting to find record with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:11:53] local.INFO: Record not found, creating new with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:11:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (204a6653-c08c-42ae-af2e-b4a9385c96a4, Credit, 248.00, 145.000000, 248.000000, Gain on TR-3560-2026, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:11:53, 2026-07-28 19:11:53))  
[2026-07-28 19:11:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:11:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:11:59] local.INFO: Model: Journal  
[2026-07-28 19:11:59] local.INFO: Data received: {"id":"204a6653-c08c-42ae-af2e-b4a9385c96a4","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3560-2026","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:11:59] local.INFO: ID present? YES  
[2026-07-28 19:11:59] local.INFO: ID value: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:11:59] local.INFO: ID empty? NO  
[2026-07-28 19:11:59] local.INFO: Attempting to find record with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:11:59] local.INFO: Record not found, creating new with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:11:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (204a6653-c08c-42ae-af2e-b4a9385c96a4, Credit, 248.00, 145.000000, 248.000000, Gain on TR-3560-2026, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:11:59, 2026-07-28 19:11:59))  
[2026-07-28 19:11:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:05] local.INFO: Model: Journal  
[2026-07-28 19:12:05] local.INFO: Data received: {"id":"204a6653-c08c-42ae-af2e-b4a9385c96a4","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3560-2026","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:12:05] local.INFO: ID present? YES  
[2026-07-28 19:12:05] local.INFO: ID value: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:12:05] local.INFO: ID empty? NO  
[2026-07-28 19:12:05] local.INFO: Attempting to find record with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:12:05] local.INFO: Record not found, creating new with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:12:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (204a6653-c08c-42ae-af2e-b4a9385c96a4, Credit, 248.00, 145.000000, 248.000000, Gain on TR-3560-2026, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:05, 2026-07-28 19:12:05))  
[2026-07-28 19:12:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:12] local.INFO: Model: Journal  
[2026-07-28 19:12:12] local.INFO: Data received: {"id":"204a6653-c08c-42ae-af2e-b4a9385c96a4","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3560-2026","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:12:12] local.INFO: ID present? YES  
[2026-07-28 19:12:12] local.INFO: ID value: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:12:12] local.INFO: ID empty? NO  
[2026-07-28 19:12:12] local.INFO: Attempting to find record with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:12:12] local.INFO: Record not found, creating new with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 19:12:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (204a6653-c08c-42ae-af2e-b4a9385c96a4, Credit, 248.00, 145.000000, 248.000000, Gain on TR-3560-2026, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:12, 2026-07-28 19:12:12))  
[2026-07-28 19:12:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:13] local.INFO: Model: Journal  
[2026-07-28 19:12:13] local.INFO: Data received: {"id":"20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4","type":"Credit","amount":"465.00","rate":"145.000000","lcy_amount":"465.000000","narrative":"Gain on TR-3572-2026","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:12:13] local.INFO: ID present? YES  
[2026-07-28 19:12:13] local.INFO: ID value: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:13] local.INFO: ID empty? NO  
[2026-07-28 19:12:13] local.INFO: Attempting to find record with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:13] local.INFO: Record not found, creating new with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4, Credit, 465.00, 145.000000, 465.000000, Gain on TR-3572-2026, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:13, 2026-07-28 19:12:13))  
[2026-07-28 19:12:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:19] local.INFO: Model: Journal  
[2026-07-28 19:12:19] local.INFO: Data received: {"id":"20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4","type":"Credit","amount":"465.00","rate":"145.000000","lcy_amount":"465.000000","narrative":"Gain on TR-3572-2026","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:12:19] local.INFO: ID present? YES  
[2026-07-28 19:12:19] local.INFO: ID value: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:19] local.INFO: ID empty? NO  
[2026-07-28 19:12:19] local.INFO: Attempting to find record with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:19] local.INFO: Record not found, creating new with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4, Credit, 465.00, 145.000000, 465.000000, Gain on TR-3572-2026, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:19, 2026-07-28 19:12:19))  
[2026-07-28 19:12:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:26] local.INFO: Model: Journal  
[2026-07-28 19:12:26] local.INFO: Data received: {"id":"20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4","type":"Credit","amount":"465.00","rate":"145.000000","lcy_amount":"465.000000","narrative":"Gain on TR-3572-2026","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:12:26] local.INFO: ID present? YES  
[2026-07-28 19:12:26] local.INFO: ID value: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:26] local.INFO: ID empty? NO  
[2026-07-28 19:12:26] local.INFO: Attempting to find record with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:26] local.INFO: Record not found, creating new with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4, Credit, 465.00, 145.000000, 465.000000, Gain on TR-3572-2026, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:26, 2026-07-28 19:12:26))  
[2026-07-28 19:12:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:32] local.INFO: Model: Journal  
[2026-07-28 19:12:32] local.INFO: Data received: {"id":"20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4","type":"Credit","amount":"465.00","rate":"145.000000","lcy_amount":"465.000000","narrative":"Gain on TR-3572-2026","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:12:32] local.INFO: ID present? YES  
[2026-07-28 19:12:32] local.INFO: ID value: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:32] local.INFO: ID empty? NO  
[2026-07-28 19:12:32] local.INFO: Attempting to find record with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:32] local.INFO: Record not found, creating new with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 19:12:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4, Credit, 465.00, 145.000000, 465.000000, Gain on TR-3572-2026, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:32, 2026-07-28 19:12:32))  
[2026-07-28 19:12:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:33] local.INFO: Model: Journal  
[2026-07-28 19:12:33] local.INFO: Data received: {"id":"213ea3aa-0259-4f0f-897c-f9c42149e91c","type":"Credit","amount":"4350.00","rate":"145.000000","lcy_amount":"4350.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:12:33] local.INFO: ID present? YES  
[2026-07-28 19:12:33] local.INFO: ID value: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:33] local.INFO: ID empty? NO  
[2026-07-28 19:12:33] local.INFO: Attempting to find record with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:33] local.INFO: Record not found, creating new with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (213ea3aa-0259-4f0f-897c-f9c42149e91c, Credit, 4350.00, 145.000000, 4350.000000, Buying TX: Funds out of cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:33, 2026-07-28 19:12:33))  
[2026-07-28 19:12:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:39] local.INFO: Model: Journal  
[2026-07-28 19:12:39] local.INFO: Data received: {"id":"213ea3aa-0259-4f0f-897c-f9c42149e91c","type":"Credit","amount":"4350.00","rate":"145.000000","lcy_amount":"4350.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:12:39] local.INFO: ID present? YES  
[2026-07-28 19:12:39] local.INFO: ID value: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:39] local.INFO: ID empty? NO  
[2026-07-28 19:12:39] local.INFO: Attempting to find record with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:39] local.INFO: Record not found, creating new with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (213ea3aa-0259-4f0f-897c-f9c42149e91c, Credit, 4350.00, 145.000000, 4350.000000, Buying TX: Funds out of cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:39, 2026-07-28 19:12:39))  
[2026-07-28 19:12:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:46] local.INFO: Model: Journal  
[2026-07-28 19:12:46] local.INFO: Data received: {"id":"213ea3aa-0259-4f0f-897c-f9c42149e91c","type":"Credit","amount":"4350.00","rate":"145.000000","lcy_amount":"4350.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:12:46] local.INFO: ID present? YES  
[2026-07-28 19:12:46] local.INFO: ID value: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:46] local.INFO: ID empty? NO  
[2026-07-28 19:12:46] local.INFO: Attempting to find record with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:46] local.INFO: Record not found, creating new with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (213ea3aa-0259-4f0f-897c-f9c42149e91c, Credit, 4350.00, 145.000000, 4350.000000, Buying TX: Funds out of cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:46, 2026-07-28 19:12:46))  
[2026-07-28 19:12:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:52] local.INFO: Model: Journal  
[2026-07-28 19:12:52] local.INFO: Data received: {"id":"213ea3aa-0259-4f0f-897c-f9c42149e91c","type":"Credit","amount":"4350.00","rate":"145.000000","lcy_amount":"4350.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:12:52] local.INFO: ID present? YES  
[2026-07-28 19:12:52] local.INFO: ID value: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:52] local.INFO: ID empty? NO  
[2026-07-28 19:12:52] local.INFO: Attempting to find record with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:52] local.INFO: Record not found, creating new with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 19:12:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (213ea3aa-0259-4f0f-897c-f9c42149e91c, Credit, 4350.00, 145.000000, 4350.000000, Buying TX: Funds out of cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:52, 2026-07-28 19:12:52))  
[2026-07-28 19:12:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:12:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:12:53] local.INFO: Model: Journal  
[2026-07-28 19:12:53] local.INFO: Data received: {"id":"21cca327-7a78-4e70-a9a1-a554ff3c9f75","type":"Credit","amount":"292.50","rate":"127.500000","lcy_amount":"292.500000","narrative":"Gain on TR-3548-2026","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:12:53] local.INFO: ID present? YES  
[2026-07-28 19:12:53] local.INFO: ID value: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:12:53] local.INFO: ID empty? NO  
[2026-07-28 19:12:53] local.INFO: Attempting to find record with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:12:53] local.INFO: Record not found, creating new with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:12:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (21cca327-7a78-4e70-a9a1-a554ff3c9f75, Credit, 292.50, 127.500000, 292.500000, Gain on TR-3548-2026, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:12:53, 2026-07-28 19:12:53))  
[2026-07-28 19:12:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:00] local.INFO: Model: Journal  
[2026-07-28 19:13:00] local.INFO: Data received: {"id":"21cca327-7a78-4e70-a9a1-a554ff3c9f75","type":"Credit","amount":"292.50","rate":"127.500000","lcy_amount":"292.500000","narrative":"Gain on TR-3548-2026","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:13:00] local.INFO: ID present? YES  
[2026-07-28 19:13:00] local.INFO: ID value: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:00] local.INFO: ID empty? NO  
[2026-07-28 19:13:00] local.INFO: Attempting to find record with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:00] local.INFO: Record not found, creating new with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (21cca327-7a78-4e70-a9a1-a554ff3c9f75, Credit, 292.50, 127.500000, 292.500000, Gain on TR-3548-2026, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:00, 2026-07-28 19:13:00))  
[2026-07-28 19:13:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:06] local.INFO: Model: Journal  
[2026-07-28 19:13:06] local.INFO: Data received: {"id":"21cca327-7a78-4e70-a9a1-a554ff3c9f75","type":"Credit","amount":"292.50","rate":"127.500000","lcy_amount":"292.500000","narrative":"Gain on TR-3548-2026","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:13:06] local.INFO: ID present? YES  
[2026-07-28 19:13:06] local.INFO: ID value: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:06] local.INFO: ID empty? NO  
[2026-07-28 19:13:06] local.INFO: Attempting to find record with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:06] local.INFO: Record not found, creating new with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (21cca327-7a78-4e70-a9a1-a554ff3c9f75, Credit, 292.50, 127.500000, 292.500000, Gain on TR-3548-2026, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:06, 2026-07-28 19:13:06))  
[2026-07-28 19:13:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:12] local.INFO: Model: Journal  
[2026-07-28 19:13:12] local.INFO: Data received: {"id":"21cca327-7a78-4e70-a9a1-a554ff3c9f75","type":"Credit","amount":"292.50","rate":"127.500000","lcy_amount":"292.500000","narrative":"Gain on TR-3548-2026","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:13:12] local.INFO: ID present? YES  
[2026-07-28 19:13:12] local.INFO: ID value: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:12] local.INFO: ID empty? NO  
[2026-07-28 19:13:12] local.INFO: Attempting to find record with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:12] local.INFO: Record not found, creating new with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 19:13:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (21cca327-7a78-4e70-a9a1-a554ff3c9f75, Credit, 292.50, 127.500000, 292.500000, Gain on TR-3548-2026, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:12, 2026-07-28 19:13:12))  
[2026-07-28 19:13:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:13] local.INFO: Model: Journal  
[2026-07-28 19:13:13] local.INFO: Data received: {"id":"2214687f-97c7-408b-b112-e747c950d623","type":"Debit","amount":"500.00","rate":"128.000000","lcy_amount":"64500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:13:13] local.INFO: ID present? YES  
[2026-07-28 19:13:13] local.INFO: ID value: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:13] local.INFO: ID empty? NO  
[2026-07-28 19:13:13] local.INFO: Attempting to find record with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:13] local.INFO: Record not found, creating new with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2214687f-97c7-408b-b112-e747c950d623, Debit, 500.00, 128.000000, 64500.000000, Buying TX: Funds into cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:13:13, 2026-07-28 19:13:13))  
[2026-07-28 19:13:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:20] local.INFO: Model: Journal  
[2026-07-28 19:13:20] local.INFO: Data received: {"id":"2214687f-97c7-408b-b112-e747c950d623","type":"Debit","amount":"500.00","rate":"128.000000","lcy_amount":"64500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:13:20] local.INFO: ID present? YES  
[2026-07-28 19:13:20] local.INFO: ID value: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:20] local.INFO: ID empty? NO  
[2026-07-28 19:13:20] local.INFO: Attempting to find record with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:20] local.INFO: Record not found, creating new with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2214687f-97c7-408b-b112-e747c950d623, Debit, 500.00, 128.000000, 64500.000000, Buying TX: Funds into cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:13:20, 2026-07-28 19:13:20))  
[2026-07-28 19:13:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:26] local.INFO: Model: Journal  
[2026-07-28 19:13:26] local.INFO: Data received: {"id":"2214687f-97c7-408b-b112-e747c950d623","type":"Debit","amount":"500.00","rate":"128.000000","lcy_amount":"64500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:13:26] local.INFO: ID present? YES  
[2026-07-28 19:13:26] local.INFO: ID value: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:26] local.INFO: ID empty? NO  
[2026-07-28 19:13:26] local.INFO: Attempting to find record with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:26] local.INFO: Record not found, creating new with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2214687f-97c7-408b-b112-e747c950d623, Debit, 500.00, 128.000000, 64500.000000, Buying TX: Funds into cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:13:26, 2026-07-28 19:13:26))  
[2026-07-28 19:13:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:32] local.INFO: Model: Journal  
[2026-07-28 19:13:32] local.INFO: Data received: {"id":"2214687f-97c7-408b-b112-e747c950d623","type":"Debit","amount":"500.00","rate":"128.000000","lcy_amount":"64500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:13:32] local.INFO: ID present? YES  
[2026-07-28 19:13:32] local.INFO: ID value: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:32] local.INFO: ID empty? NO  
[2026-07-28 19:13:32] local.INFO: Attempting to find record with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:32] local.INFO: Record not found, creating new with ID: 2214687f-97c7-408b-b112-e747c950d623  
[2026-07-28 19:13:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2214687f-97c7-408b-b112-e747c950d623, Debit, 500.00, 128.000000, 64500.000000, Buying TX: Funds into cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:13:32, 2026-07-28 19:13:32))  
[2026-07-28 19:13:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:33] local.INFO: Model: Journal  
[2026-07-28 19:13:33] local.INFO: Data received: {"id":"22338910-de8a-4f40-ab7a-3c4b4888fd7d","type":"Credit","amount":"89950.00","rate":"128.500000","lcy_amount":"89950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:13:33] local.INFO: ID present? YES  
[2026-07-28 19:13:33] local.INFO: ID value: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:33] local.INFO: ID empty? NO  
[2026-07-28 19:13:33] local.INFO: Attempting to find record with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:33] local.INFO: Record not found, creating new with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (22338910-de8a-4f40-ab7a-3c4b4888fd7d, Credit, 89950.00, 128.500000, 89950.000000, Buying TX: Funds out of cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:33, 2026-07-28 19:13:33))  
[2026-07-28 19:13:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:40] local.INFO: Model: Journal  
[2026-07-28 19:13:40] local.INFO: Data received: {"id":"22338910-de8a-4f40-ab7a-3c4b4888fd7d","type":"Credit","amount":"89950.00","rate":"128.500000","lcy_amount":"89950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:13:40] local.INFO: ID present? YES  
[2026-07-28 19:13:40] local.INFO: ID value: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:40] local.INFO: ID empty? NO  
[2026-07-28 19:13:40] local.INFO: Attempting to find record with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:40] local.INFO: Record not found, creating new with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (22338910-de8a-4f40-ab7a-3c4b4888fd7d, Credit, 89950.00, 128.500000, 89950.000000, Buying TX: Funds out of cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:40, 2026-07-28 19:13:40))  
[2026-07-28 19:13:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:46] local.INFO: Model: Journal  
[2026-07-28 19:13:46] local.INFO: Data received: {"id":"22338910-de8a-4f40-ab7a-3c4b4888fd7d","type":"Credit","amount":"89950.00","rate":"128.500000","lcy_amount":"89950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:13:46] local.INFO: ID present? YES  
[2026-07-28 19:13:46] local.INFO: ID value: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:46] local.INFO: ID empty? NO  
[2026-07-28 19:13:46] local.INFO: Attempting to find record with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:46] local.INFO: Record not found, creating new with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (22338910-de8a-4f40-ab7a-3c4b4888fd7d, Credit, 89950.00, 128.500000, 89950.000000, Buying TX: Funds out of cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:46, 2026-07-28 19:13:46))  
[2026-07-28 19:13:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:52] local.INFO: Model: Journal  
[2026-07-28 19:13:52] local.INFO: Data received: {"id":"22338910-de8a-4f40-ab7a-3c4b4888fd7d","type":"Credit","amount":"89950.00","rate":"128.500000","lcy_amount":"89950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:13:52] local.INFO: ID present? YES  
[2026-07-28 19:13:52] local.INFO: ID value: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:52] local.INFO: ID empty? NO  
[2026-07-28 19:13:52] local.INFO: Attempting to find record with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:52] local.INFO: Record not found, creating new with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 19:13:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (22338910-de8a-4f40-ab7a-3c4b4888fd7d, Credit, 89950.00, 128.500000, 89950.000000, Buying TX: Funds out of cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:52, 2026-07-28 19:13:52))  
[2026-07-28 19:13:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:13:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:13:54] local.INFO: Model: Journal  
[2026-07-28 19:13:54] local.INFO: Data received: {"id":"2340bdf1-2e7e-4484-a595-e45958499124","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:13:54] local.INFO: ID present? YES  
[2026-07-28 19:13:54] local.INFO: ID value: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:13:54] local.INFO: ID empty? NO  
[2026-07-28 19:13:54] local.INFO: Attempting to find record with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:13:54] local.INFO: Record not found, creating new with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:13:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2340bdf1-2e7e-4484-a595-e45958499124, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:13:54, 2026-07-28 19:13:54))  
[2026-07-28 19:13:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:00] local.INFO: Model: Journal  
[2026-07-28 19:14:00] local.INFO: Data received: {"id":"2340bdf1-2e7e-4484-a595-e45958499124","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:14:00] local.INFO: ID present? YES  
[2026-07-28 19:14:00] local.INFO: ID value: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:00] local.INFO: ID empty? NO  
[2026-07-28 19:14:00] local.INFO: Attempting to find record with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:00] local.INFO: Record not found, creating new with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2340bdf1-2e7e-4484-a595-e45958499124, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:00, 2026-07-28 19:14:00))  
[2026-07-28 19:14:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:08] local.INFO: Model: Journal  
[2026-07-28 19:14:08] local.INFO: Data received: {"id":"2340bdf1-2e7e-4484-a595-e45958499124","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:14:08] local.INFO: ID present? YES  
[2026-07-28 19:14:08] local.INFO: ID value: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:08] local.INFO: ID empty? NO  
[2026-07-28 19:14:08] local.INFO: Attempting to find record with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:08] local.INFO: Record not found, creating new with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2340bdf1-2e7e-4484-a595-e45958499124, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:08, 2026-07-28 19:14:08))  
[2026-07-28 19:14:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:14] local.INFO: Model: Journal  
[2026-07-28 19:14:14] local.INFO: Data received: {"id":"2340bdf1-2e7e-4484-a595-e45958499124","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:14:14] local.INFO: ID present? YES  
[2026-07-28 19:14:14] local.INFO: ID value: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:14] local.INFO: ID empty? NO  
[2026-07-28 19:14:14] local.INFO: Attempting to find record with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:14] local.INFO: Record not found, creating new with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 19:14:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2340bdf1-2e7e-4484-a595-e45958499124, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:14, 2026-07-28 19:14:14))  
[2026-07-28 19:14:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:16] local.INFO: Model: Journal  
[2026-07-28 19:14:16] local.INFO: Data received: {"id":"24f9d7f5-6579-448f-90ae-a3f0d9777721","type":"Debit","amount":"1300.00","rate":"130.000000","lcy_amount":"1300.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:14:16] local.INFO: ID present? YES  
[2026-07-28 19:14:16] local.INFO: ID value: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:16] local.INFO: ID empty? NO  
[2026-07-28 19:14:16] local.INFO: Attempting to find record with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:16] local.INFO: Record not found, creating new with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (24f9d7f5-6579-448f-90ae-a3f0d9777721, Debit, 1300.00, 130.000000, 1300.000000, Selling TX: Funds into cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:16, 2026-07-28 19:14:16))  
[2026-07-28 19:14:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:22] local.INFO: Model: Journal  
[2026-07-28 19:14:22] local.INFO: Data received: {"id":"24f9d7f5-6579-448f-90ae-a3f0d9777721","type":"Debit","amount":"1300.00","rate":"130.000000","lcy_amount":"1300.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:14:22] local.INFO: ID present? YES  
[2026-07-28 19:14:22] local.INFO: ID value: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:22] local.INFO: ID empty? NO  
[2026-07-28 19:14:22] local.INFO: Attempting to find record with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:22] local.INFO: Record not found, creating new with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (24f9d7f5-6579-448f-90ae-a3f0d9777721, Debit, 1300.00, 130.000000, 1300.000000, Selling TX: Funds into cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:22, 2026-07-28 19:14:22))  
[2026-07-28 19:14:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:28] local.INFO: Model: Journal  
[2026-07-28 19:14:28] local.INFO: Data received: {"id":"24f9d7f5-6579-448f-90ae-a3f0d9777721","type":"Debit","amount":"1300.00","rate":"130.000000","lcy_amount":"1300.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:14:28] local.INFO: ID present? YES  
[2026-07-28 19:14:28] local.INFO: ID value: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:28] local.INFO: ID empty? NO  
[2026-07-28 19:14:28] local.INFO: Attempting to find record with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:28] local.INFO: Record not found, creating new with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (24f9d7f5-6579-448f-90ae-a3f0d9777721, Debit, 1300.00, 130.000000, 1300.000000, Selling TX: Funds into cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:28, 2026-07-28 19:14:28))  
[2026-07-28 19:14:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:34] local.INFO: Model: Journal  
[2026-07-28 19:14:34] local.INFO: Data received: {"id":"24f9d7f5-6579-448f-90ae-a3f0d9777721","type":"Debit","amount":"1300.00","rate":"130.000000","lcy_amount":"1300.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:14:34] local.INFO: ID present? YES  
[2026-07-28 19:14:34] local.INFO: ID value: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:34] local.INFO: ID empty? NO  
[2026-07-28 19:14:34] local.INFO: Attempting to find record with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:34] local.INFO: Record not found, creating new with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 19:14:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (24f9d7f5-6579-448f-90ae-a3f0d9777721, Debit, 1300.00, 130.000000, 1300.000000, Selling TX: Funds into cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:34, 2026-07-28 19:14:34))  
[2026-07-28 19:14:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:36] local.INFO: Model: Journal  
[2026-07-28 19:14:36] local.INFO: Data received: {"id":"279a2b71-85bb-4bb3-a1c5-a109a87aac47","type":"Debit","amount":"160.00","rate":null,"lcy_amount":"24192.000000","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:27:23","updated_at":"2026-07-28 17:27:25"} 
[2026-07-28 19:14:36] local.INFO: ID present? YES  
[2026-07-28 19:14:36] local.INFO: ID value: 279a2b71-85bb-4bb3-a1c5-a109a87aac47  
[2026-07-28 19:14:36] local.INFO: ID empty? NO  
[2026-07-28 19:14:36] local.INFO: Attempting to find record with ID: 279a2b71-85bb-4bb3-a1c5-a109a87aac47  
[2026-07-28 19:14:36] local.INFO: Record not found, creating new with ID: 279a2b71-85bb-4bb3-a1c5-a109a87aac47  
[2026-07-28 19:14:36] local.INFO: Created record: {"id":"279a2b71-85bb-4bb3-a1c5-a109a87aac47","type":"Debit","amount":"160.00","rate":null,"lcy_amount":"24192.000000","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T16:14:36.000000Z","created_at":"2026-07-28T16:14:36.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3780.0,"debit_total":15415.0,"credit_total":"19195.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:14:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:37] local.INFO: Model: Journal  
[2026-07-28 19:14:37] local.INFO: Data received: {"id":"28047399-5fda-4e64-ab13-82cedde98054","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:14:37] local.INFO: ID present? YES  
[2026-07-28 19:14:37] local.INFO: ID value: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:37] local.INFO: ID empty? NO  
[2026-07-28 19:14:37] local.INFO: Attempting to find record with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:37] local.INFO: Record not found, creating new with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (28047399-5fda-4e64-ab13-82cedde98054, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:37, 2026-07-28 19:14:37))  
[2026-07-28 19:14:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:38] local.INFO: Model: Customer  
[2026-07-28 19:14:38] local.INFO: Data received: {"id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","first_name":"Test2","last_name":"customer","sur_name":"two","phone":"788009881","calling_code":"+254","email":"hello@testcustomer.com","residence":"meru","id_type":"National ID","id_number":"555565444","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-28 19:09:28","updated_at":"2026-07-28 19:09:28"} 
[2026-07-28 19:14:38] local.INFO: ID present? YES  
[2026-07-28 19:14:38] local.INFO: ID value: 87e189e4-b996-4d6c-8ab3-4865c4cb9f89  
[2026-07-28 19:14:38] local.INFO: ID empty? NO  
[2026-07-28 19:14:38] local.INFO: Attempting to find record with ID: 87e189e4-b996-4d6c-8ab3-4865c4cb9f89  
[2026-07-28 19:14:38] local.INFO: Record not found, creating new with ID: 87e189e4-b996-4d6c-8ab3-4865c4cb9f89  
[2026-07-28 19:14:38] local.INFO: Created record: {"id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","first_name":"Test2","last_name":"customer","sur_name":"two","phone":"788009881","calling_code":"+254","email":"hello@testcustomer.com","residence":"meru","id_type":"National ID","id_number":"555565444","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T16:14:38.000000Z","created_at":"2026-07-28T16:14:38.000000Z"} 
[2026-07-28 19:14:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:39] local.INFO: Model: Transaction  
[2026-07-28 19:14:39] local.INFO: Data received: {"id":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","type":"Selling","amount":25,"rate":130.5,"negotiated_rate":null,"amount_paid":25,"amount_received":3262.5,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 19:10:30","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Pension / Retirement Funds","purpose":"Relocation / Migration Costs","uniqid":null,"batch_id":"1b8736ae-69bb-4733-8c93-a906ed6dffa7","cancellation_reason":null,"customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28 19:10:26","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:39] local.INFO: ID present? YES  
[2026-07-28 19:14:39] local.INFO: ID value: 53bda882-d558-47e7-a82e-234391638887  
[2026-07-28 19:14:39] local.INFO: ID empty? NO  
[2026-07-28 19:14:39] local.INFO: Attempting to find record with ID: 53bda882-d558-47e7-a82e-234391638887  
[2026-07-28 19:14:39] local.INFO: Record not found, creating new with ID: 53bda882-d558-47e7-a82e-234391638887  
[2026-07-28 19:14:39] local.INFO: Created record: {"id":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","type":"Selling","amount":25,"rate":130.5,"negotiated_rate":null,"amount_paid":25,"amount_received":3262.5,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 19:10:30","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Pension / Retirement Funds","purpose":"Relocation / Migration Costs","uniqid":null,"batch_id":"1b8736ae-69bb-4733-8c93-a906ed6dffa7","cancellation_reason":null,"customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-28T16:14:39.000000Z","created_at":"2026-07-28T16:14:39.000000Z"} 
[2026-07-28 19:14:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:40] local.INFO: Model: Transaction  
[2026-07-28 19:14:40] local.INFO: Data received: {"id":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","type":"Buying","amount":45,"rate":147.5,"negotiated_rate":"0","amount_paid":6637.5,"amount_received":45,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 19:10:30","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Pension / Retirement Funds","purpose":"Relocation / Migration Costs","uniqid":null,"batch_id":"1b8736ae-69bb-4733-8c93-a906ed6dffa7","cancellation_reason":null,"customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-28 19:10:26","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:40] local.INFO: ID present? YES  
[2026-07-28 19:14:40] local.INFO: ID value: 5b58e390-386a-4455-9699-1e2b1ff8f467  
[2026-07-28 19:14:40] local.INFO: ID empty? NO  
[2026-07-28 19:14:40] local.INFO: Attempting to find record with ID: 5b58e390-386a-4455-9699-1e2b1ff8f467  
[2026-07-28 19:14:40] local.INFO: Record not found, creating new with ID: 5b58e390-386a-4455-9699-1e2b1ff8f467  
[2026-07-28 19:14:40] local.INFO: Created record: {"id":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","type":"Buying","amount":45,"rate":147.5,"negotiated_rate":"0","amount_paid":6637.5,"amount_received":45,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 19:10:30","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Pension / Retirement Funds","purpose":"Relocation / Migration Costs","uniqid":null,"batch_id":"1b8736ae-69bb-4733-8c93-a906ed6dffa7","cancellation_reason":null,"customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T16:14:40.000000Z","created_at":"2026-07-28T16:14:40.000000Z"} 
[2026-07-28 19:14:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:41] local.INFO: Model: Journal  
[2026-07-28 19:14:41] local.INFO: Data received: {"id":"0ab8fc63-e3cc-4f0b-beb0-069b992a7c10","type":"Credit","amount":"25.00","rate":"130.500000","lcy_amount":"3225.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"53bda882-d558-47e7-a82e-234391638887","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 19:10:30","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:41] local.INFO: ID present? YES  
[2026-07-28 19:14:41] local.INFO: ID value: 0ab8fc63-e3cc-4f0b-beb0-069b992a7c10  
[2026-07-28 19:14:41] local.INFO: ID empty? NO  
[2026-07-28 19:14:41] local.INFO: Attempting to find record with ID: 0ab8fc63-e3cc-4f0b-beb0-069b992a7c10  
[2026-07-28 19:14:41] local.INFO: Record not found, creating new with ID: 0ab8fc63-e3cc-4f0b-beb0-069b992a7c10  
[2026-07-28 19:14:41] local.INFO: Created record: {"id":"0ab8fc63-e3cc-4f0b-beb0-069b992a7c10","type":"Credit","amount":"25.00","rate":"130.500000","lcy_amount":"3225.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"53bda882-d558-47e7-a82e-234391638887","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T16:14:41.000000Z","created_at":"2026-07-28T16:14:41.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-661.8899999999999863575794734060764312744140625,"debit_total":"56052.11","credit_total":56714.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:23.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:14:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:42] local.INFO: Model: Journal  
[2026-07-28 19:14:42] local.INFO: Data received: {"id":"6aae672b-5723-4d6c-8f0f-089855bacc55","type":"Credit","amount":"166.50","rate":"147.500000","lcy_amount":"166.500000","narrative":"Gain on TR-3593-2026","uniqid":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"5b58e390-386a-4455-9699-1e2b1ff8f467","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 19:10:30","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:42] local.INFO: ID present? YES  
[2026-07-28 19:14:42] local.INFO: ID value: 6aae672b-5723-4d6c-8f0f-089855bacc55  
[2026-07-28 19:14:42] local.INFO: ID empty? NO  
[2026-07-28 19:14:42] local.INFO: Attempting to find record with ID: 6aae672b-5723-4d6c-8f0f-089855bacc55  
[2026-07-28 19:14:42] local.INFO: Record not found, creating new with ID: 6aae672b-5723-4d6c-8f0f-089855bacc55  
[2026-07-28 19:14:42] local.INFO: Created record: {"id":"6aae672b-5723-4d6c-8f0f-089855bacc55","type":"Credit","amount":"166.50","rate":"147.500000","lcy_amount":"166.500000","narrative":"Gain on TR-3593-2026","uniqid":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"5b58e390-386a-4455-9699-1e2b1ff8f467","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:14:42.000000Z","created_at":"2026-07-28T16:14:42.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-79398.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":86598.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T15:49:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 19:14:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:43] local.INFO: Model: Journal  
[2026-07-28 19:14:43] local.INFO: Data received: {"id":"28047399-5fda-4e64-ab13-82cedde98054","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:14:43] local.INFO: ID present? YES  
[2026-07-28 19:14:43] local.INFO: ID value: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:43] local.INFO: ID empty? NO  
[2026-07-28 19:14:43] local.INFO: Attempting to find record with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:43] local.INFO: Record not found, creating new with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (28047399-5fda-4e64-ab13-82cedde98054, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:43, 2026-07-28 19:14:43))  
[2026-07-28 19:14:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:44] local.INFO: Model: Journal  
[2026-07-28 19:14:44] local.INFO: Data received: {"id":"87220b28-da72-4fc3-a678-ec51e779e86c","type":"Debit","amount":"45.00","rate":"147.500000","lcy_amount":"6804.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"5b58e390-386a-4455-9699-1e2b1ff8f467","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 19:10:30","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:44] local.INFO: ID present? YES  
[2026-07-28 19:14:44] local.INFO: ID value: 87220b28-da72-4fc3-a678-ec51e779e86c  
[2026-07-28 19:14:44] local.INFO: ID empty? NO  
[2026-07-28 19:14:44] local.INFO: Attempting to find record with ID: 87220b28-da72-4fc3-a678-ec51e779e86c  
[2026-07-28 19:14:44] local.INFO: Record not found, creating new with ID: 87220b28-da72-4fc3-a678-ec51e779e86c  
[2026-07-28 19:14:44] local.INFO: Created record: {"id":"87220b28-da72-4fc3-a678-ec51e779e86c","type":"Debit","amount":"45.00","rate":"147.500000","lcy_amount":"6804.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"5b58e390-386a-4455-9699-1e2b1ff8f467","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T16:14:44.000000Z","created_at":"2026-07-28T16:14:44.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3735.0,"debit_total":15460.0,"credit_total":"19195.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:14:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:14:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:45] local.INFO: Model: Journal  
[2026-07-28 19:14:45] local.INFO: Data received: {"id":"8c949729-1f0d-4b9c-8fb0-5231e7bce3a6","type":"Debit","amount":"3262.50","rate":"130.500000","lcy_amount":"3262.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"53bda882-d558-47e7-a82e-234391638887","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 19:10:30","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:45] local.INFO: ID present? YES  
[2026-07-28 19:14:45] local.INFO: ID value: 8c949729-1f0d-4b9c-8fb0-5231e7bce3a6  
[2026-07-28 19:14:45] local.INFO: ID empty? NO  
[2026-07-28 19:14:45] local.INFO: Attempting to find record with ID: 8c949729-1f0d-4b9c-8fb0-5231e7bce3a6  
[2026-07-28 19:14:45] local.INFO: Record not found, creating new with ID: 8c949729-1f0d-4b9c-8fb0-5231e7bce3a6  
[2026-07-28 19:14:45] local.INFO: Created record: {"id":"8c949729-1f0d-4b9c-8fb0-5231e7bce3a6","type":"Debit","amount":"3262.50","rate":"130.500000","lcy_amount":"3262.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"53bda882-d558-47e7-a82e-234391638887","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:14:45.000000Z","created_at":"2026-07-28T16:14:45.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":920812.0,"debit_total":16463632.3000000007450580596923828125,"credit_total":"15542820.30","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T15:49:24.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:14:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:46] local.INFO: Model: Journal  
[2026-07-28 19:14:46] local.INFO: Data received: {"id":"ccb53d68-2a19-4af9-98e5-1ec60e12a6b9","type":"Credit","amount":"37.50","rate":"130.500000","lcy_amount":"37.500000","narrative":"Gain on TR-3594-2026","uniqid":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"53bda882-d558-47e7-a82e-234391638887","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 19:10:30","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:46] local.INFO: ID present? YES  
[2026-07-28 19:14:46] local.INFO: ID value: ccb53d68-2a19-4af9-98e5-1ec60e12a6b9  
[2026-07-28 19:14:46] local.INFO: ID empty? NO  
[2026-07-28 19:14:46] local.INFO: Attempting to find record with ID: ccb53d68-2a19-4af9-98e5-1ec60e12a6b9  
[2026-07-28 19:14:46] local.INFO: Record not found, creating new with ID: ccb53d68-2a19-4af9-98e5-1ec60e12a6b9  
[2026-07-28 19:14:46] local.INFO: Created record: {"id":"ccb53d68-2a19-4af9-98e5-1ec60e12a6b9","type":"Credit","amount":"37.50","rate":"130.500000","lcy_amount":"37.500000","narrative":"Gain on TR-3594-2026","uniqid":"53bda882-d558-47e7-a82e-234391638887","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"53bda882-d558-47e7-a82e-234391638887","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:14:46.000000Z","created_at":"2026-07-28T16:14:46.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-79436.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":86636.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T16:14:42.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 19:14:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:47] local.INFO: Model: Journal  
[2026-07-28 19:14:47] local.INFO: Data received: {"id":"f012fe97-d6f2-43f3-ba3b-4ff6a1c0fd3d","type":"Credit","amount":"6637.50","rate":"147.500000","lcy_amount":"6637.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"5b58e390-386a-4455-9699-1e2b1ff8f467","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 19:10:30","updated_at":"2026-07-28 19:10:30"} 
[2026-07-28 19:14:47] local.INFO: ID present? YES  
[2026-07-28 19:14:47] local.INFO: ID value: f012fe97-d6f2-43f3-ba3b-4ff6a1c0fd3d  
[2026-07-28 19:14:47] local.INFO: ID empty? NO  
[2026-07-28 19:14:47] local.INFO: Attempting to find record with ID: f012fe97-d6f2-43f3-ba3b-4ff6a1c0fd3d  
[2026-07-28 19:14:47] local.INFO: Record not found, creating new with ID: f012fe97-d6f2-43f3-ba3b-4ff6a1c0fd3d  
[2026-07-28 19:14:47] local.INFO: Created record: {"id":"f012fe97-d6f2-43f3-ba3b-4ff6a1c0fd3d","type":"Credit","amount":"6637.50","rate":"147.500000","lcy_amount":"6637.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"5b58e390-386a-4455-9699-1e2b1ff8f467","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"5b58e390-386a-4455-9699-1e2b1ff8f467","customer_id":"87e189e4-b996-4d6c-8ab3-4865c4cb9f89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:14:47.000000Z","created_at":"2026-07-28T16:14:47.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":914174.5,"debit_total":"16463632.30","credit_total":15549457.8000000007450580596923828125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:14:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:14:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:50] local.INFO: Model: Journal  
[2026-07-28 19:14:50] local.INFO: Data received: {"id":"28047399-5fda-4e64-ab13-82cedde98054","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:14:50] local.INFO: ID present? YES  
[2026-07-28 19:14:50] local.INFO: ID value: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:50] local.INFO: ID empty? NO  
[2026-07-28 19:14:50] local.INFO: Attempting to find record with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:50] local.INFO: Record not found, creating new with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (28047399-5fda-4e64-ab13-82cedde98054, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:50, 2026-07-28 19:14:50))  
[2026-07-28 19:14:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:56] local.INFO: Model: Journal  
[2026-07-28 19:14:56] local.INFO: Data received: {"id":"28047399-5fda-4e64-ab13-82cedde98054","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:14:56] local.INFO: ID present? YES  
[2026-07-28 19:14:56] local.INFO: ID value: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:56] local.INFO: ID empty? NO  
[2026-07-28 19:14:56] local.INFO: Attempting to find record with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:56] local.INFO: Record not found, creating new with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 19:14:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (28047399-5fda-4e64-ab13-82cedde98054, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:56, 2026-07-28 19:14:56))  
[2026-07-28 19:14:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:14:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:14:57] local.INFO: Model: Journal  
[2026-07-28 19:14:57] local.INFO: Data received: {"id":"29a2669d-c139-4294-b7ca-3612cb1a6db6","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:14:57] local.INFO: ID present? YES  
[2026-07-28 19:14:57] local.INFO: ID value: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:14:57] local.INFO: ID empty? NO  
[2026-07-28 19:14:57] local.INFO: Attempting to find record with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:14:57] local.INFO: Record not found, creating new with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:14:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (29a2669d-c139-4294-b7ca-3612cb1a6db6, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:14:57, 2026-07-28 19:14:57))  
[2026-07-28 19:14:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:03] local.INFO: Model: Journal  
[2026-07-28 19:15:03] local.INFO: Data received: {"id":"29a2669d-c139-4294-b7ca-3612cb1a6db6","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:15:03] local.INFO: ID present? YES  
[2026-07-28 19:15:03] local.INFO: ID value: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:03] local.INFO: ID empty? NO  
[2026-07-28 19:15:03] local.INFO: Attempting to find record with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:03] local.INFO: Record not found, creating new with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (29a2669d-c139-4294-b7ca-3612cb1a6db6, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:03, 2026-07-28 19:15:03))  
[2026-07-28 19:15:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:10] local.INFO: Model: Journal  
[2026-07-28 19:15:10] local.INFO: Data received: {"id":"29a2669d-c139-4294-b7ca-3612cb1a6db6","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:15:10] local.INFO: ID present? YES  
[2026-07-28 19:15:10] local.INFO: ID value: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:10] local.INFO: ID empty? NO  
[2026-07-28 19:15:10] local.INFO: Attempting to find record with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:10] local.INFO: Record not found, creating new with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (29a2669d-c139-4294-b7ca-3612cb1a6db6, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:10, 2026-07-28 19:15:10))  
[2026-07-28 19:15:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:16] local.INFO: Model: Journal  
[2026-07-28 19:15:16] local.INFO: Data received: {"id":"29a2669d-c139-4294-b7ca-3612cb1a6db6","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 19:15:16] local.INFO: ID present? YES  
[2026-07-28 19:15:16] local.INFO: ID value: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:16] local.INFO: ID empty? NO  
[2026-07-28 19:15:16] local.INFO: Attempting to find record with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:16] local.INFO: Record not found, creating new with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 19:15:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (29a2669d-c139-4294-b7ca-3612cb1a6db6, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 75747995-714d-4b5e-9a73-1b71a84c99b5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 75747995-714d-4b5e-9a73-1b71a84c99b5, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:16, 2026-07-28 19:15:16))  
[2026-07-28 19:15:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:17] local.INFO: Model: Journal  
[2026-07-28 19:15:17] local.INFO: Data received: {"id":"2cbd2ec0-31bd-4a90-96cd-d4f17287dc56","type":"Credit","amount":"51200.00","rate":"128.000000","lcy_amount":"51200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:15:17] local.INFO: ID present? YES  
[2026-07-28 19:15:17] local.INFO: ID value: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:17] local.INFO: ID empty? NO  
[2026-07-28 19:15:17] local.INFO: Attempting to find record with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:17] local.INFO: Record not found, creating new with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2cbd2ec0-31bd-4a90-96cd-d4f17287dc56, Credit, 51200.00, 128.000000, 51200.000000, Buying TX: Funds out of cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:17, 2026-07-28 19:15:17))  
[2026-07-28 19:15:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:23] local.INFO: Model: Journal  
[2026-07-28 19:15:23] local.INFO: Data received: {"id":"2cbd2ec0-31bd-4a90-96cd-d4f17287dc56","type":"Credit","amount":"51200.00","rate":"128.000000","lcy_amount":"51200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:15:23] local.INFO: ID present? YES  
[2026-07-28 19:15:23] local.INFO: ID value: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:23] local.INFO: ID empty? NO  
[2026-07-28 19:15:23] local.INFO: Attempting to find record with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:23] local.INFO: Record not found, creating new with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2cbd2ec0-31bd-4a90-96cd-d4f17287dc56, Credit, 51200.00, 128.000000, 51200.000000, Buying TX: Funds out of cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:23, 2026-07-28 19:15:23))  
[2026-07-28 19:15:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:30] local.INFO: Model: Journal  
[2026-07-28 19:15:30] local.INFO: Data received: {"id":"2cbd2ec0-31bd-4a90-96cd-d4f17287dc56","type":"Credit","amount":"51200.00","rate":"128.000000","lcy_amount":"51200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:15:30] local.INFO: ID present? YES  
[2026-07-28 19:15:30] local.INFO: ID value: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:30] local.INFO: ID empty? NO  
[2026-07-28 19:15:30] local.INFO: Attempting to find record with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:30] local.INFO: Record not found, creating new with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2cbd2ec0-31bd-4a90-96cd-d4f17287dc56, Credit, 51200.00, 128.000000, 51200.000000, Buying TX: Funds out of cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:30, 2026-07-28 19:15:30))  
[2026-07-28 19:15:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:36] local.INFO: Model: Journal  
[2026-07-28 19:15:36] local.INFO: Data received: {"id":"2cbd2ec0-31bd-4a90-96cd-d4f17287dc56","type":"Credit","amount":"51200.00","rate":"128.000000","lcy_amount":"51200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:15:36] local.INFO: ID present? YES  
[2026-07-28 19:15:36] local.INFO: ID value: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:36] local.INFO: ID empty? NO  
[2026-07-28 19:15:36] local.INFO: Attempting to find record with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:36] local.INFO: Record not found, creating new with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 19:15:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2cbd2ec0-31bd-4a90-96cd-d4f17287dc56, Credit, 51200.00, 128.000000, 51200.000000, Buying TX: Funds out of cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:36, 2026-07-28 19:15:36))  
[2026-07-28 19:15:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:37] local.INFO: Model: Journal  
[2026-07-28 19:15:37] local.INFO: Data received: {"id":"2fabffa1-32f3-4dad-8c7e-2b954417d1c7","type":"Credit","amount":"350.00","rate":"128.500000","lcy_amount":"350.000000","narrative":"Gain on TR-3591-2026","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:15:37] local.INFO: ID present? YES  
[2026-07-28 19:15:37] local.INFO: ID value: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:37] local.INFO: ID empty? NO  
[2026-07-28 19:15:37] local.INFO: Attempting to find record with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:37] local.INFO: Record not found, creating new with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2fabffa1-32f3-4dad-8c7e-2b954417d1c7, Credit, 350.00, 128.500000, 350.000000, Gain on TR-3591-2026, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:37, 2026-07-28 19:15:37))  
[2026-07-28 19:15:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:44] local.INFO: Model: Journal  
[2026-07-28 19:15:44] local.INFO: Data received: {"id":"2fabffa1-32f3-4dad-8c7e-2b954417d1c7","type":"Credit","amount":"350.00","rate":"128.500000","lcy_amount":"350.000000","narrative":"Gain on TR-3591-2026","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:15:44] local.INFO: ID present? YES  
[2026-07-28 19:15:44] local.INFO: ID value: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:44] local.INFO: ID empty? NO  
[2026-07-28 19:15:44] local.INFO: Attempting to find record with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:44] local.INFO: Record not found, creating new with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2fabffa1-32f3-4dad-8c7e-2b954417d1c7, Credit, 350.00, 128.500000, 350.000000, Gain on TR-3591-2026, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:44, 2026-07-28 19:15:44))  
[2026-07-28 19:15:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:50] local.INFO: Model: Journal  
[2026-07-28 19:15:50] local.INFO: Data received: {"id":"2fabffa1-32f3-4dad-8c7e-2b954417d1c7","type":"Credit","amount":"350.00","rate":"128.500000","lcy_amount":"350.000000","narrative":"Gain on TR-3591-2026","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:15:50] local.INFO: ID present? YES  
[2026-07-28 19:15:50] local.INFO: ID value: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:50] local.INFO: ID empty? NO  
[2026-07-28 19:15:50] local.INFO: Attempting to find record with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:50] local.INFO: Record not found, creating new with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2fabffa1-32f3-4dad-8c7e-2b954417d1c7, Credit, 350.00, 128.500000, 350.000000, Gain on TR-3591-2026, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:50, 2026-07-28 19:15:50))  
[2026-07-28 19:15:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:56] local.INFO: Model: Journal  
[2026-07-28 19:15:56] local.INFO: Data received: {"id":"2fabffa1-32f3-4dad-8c7e-2b954417d1c7","type":"Credit","amount":"350.00","rate":"128.500000","lcy_amount":"350.000000","narrative":"Gain on TR-3591-2026","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:15:56] local.INFO: ID present? YES  
[2026-07-28 19:15:56] local.INFO: ID value: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:56] local.INFO: ID empty? NO  
[2026-07-28 19:15:56] local.INFO: Attempting to find record with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:56] local.INFO: Record not found, creating new with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 19:15:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (2fabffa1-32f3-4dad-8c7e-2b954417d1c7, Credit, 350.00, 128.500000, 350.000000, Gain on TR-3591-2026, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:15:56, 2026-07-28 19:15:56))  
[2026-07-28 19:15:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:15:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:15:57] local.INFO: Model: Journal  
[2026-07-28 19:15:57] local.INFO: Data received: {"id":"312d3329-355a-418b-84a9-cec20f71466d","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:15:57] local.INFO: ID present? YES  
[2026-07-28 19:15:57] local.INFO: ID value: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:15:57] local.INFO: ID empty? NO  
[2026-07-28 19:15:57] local.INFO: Attempting to find record with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:15:57] local.INFO: Record not found, creating new with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:15:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (312d3329-355a-418b-84a9-cec20f71466d, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:15:57, 2026-07-28 19:15:57))  
[2026-07-28 19:15:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:04] local.INFO: Model: Journal  
[2026-07-28 19:16:04] local.INFO: Data received: {"id":"312d3329-355a-418b-84a9-cec20f71466d","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:16:04] local.INFO: ID present? YES  
[2026-07-28 19:16:04] local.INFO: ID value: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:04] local.INFO: ID empty? NO  
[2026-07-28 19:16:04] local.INFO: Attempting to find record with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:04] local.INFO: Record not found, creating new with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (312d3329-355a-418b-84a9-cec20f71466d, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:16:04, 2026-07-28 19:16:04))  
[2026-07-28 19:16:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:10] local.INFO: Model: Journal  
[2026-07-28 19:16:10] local.INFO: Data received: {"id":"312d3329-355a-418b-84a9-cec20f71466d","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:16:10] local.INFO: ID present? YES  
[2026-07-28 19:16:10] local.INFO: ID value: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:10] local.INFO: ID empty? NO  
[2026-07-28 19:16:10] local.INFO: Attempting to find record with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:10] local.INFO: Record not found, creating new with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (312d3329-355a-418b-84a9-cec20f71466d, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:16:10, 2026-07-28 19:16:10))  
[2026-07-28 19:16:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:16] local.INFO: Model: Journal  
[2026-07-28 19:16:16] local.INFO: Data received: {"id":"312d3329-355a-418b-84a9-cec20f71466d","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:16:16] local.INFO: ID present? YES  
[2026-07-28 19:16:16] local.INFO: ID value: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:16] local.INFO: ID empty? NO  
[2026-07-28 19:16:16] local.INFO: Attempting to find record with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:16] local.INFO: Record not found, creating new with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 19:16:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (312d3329-355a-418b-84a9-cec20f71466d, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:16:16, 2026-07-28 19:16:16))  
[2026-07-28 19:16:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:17] local.INFO: Model: Journal  
[2026-07-28 19:16:17] local.INFO: Data received: {"id":"31503650-4256-41f8-b1b4-8c215574f45f","type":"Credit","amount":"186.00","rate":"145.000000","lcy_amount":"186.000000","narrative":"Gain on TR-3583-2026","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:16:17] local.INFO: ID present? YES  
[2026-07-28 19:16:17] local.INFO: ID value: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:17] local.INFO: ID empty? NO  
[2026-07-28 19:16:17] local.INFO: Attempting to find record with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:17] local.INFO: Record not found, creating new with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (31503650-4256-41f8-b1b4-8c215574f45f, Credit, 186.00, 145.000000, 186.000000, Gain on TR-3583-2026, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:16:17, 2026-07-28 19:16:17))  
[2026-07-28 19:16:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:24] local.INFO: Model: Journal  
[2026-07-28 19:16:24] local.INFO: Data received: {"id":"31503650-4256-41f8-b1b4-8c215574f45f","type":"Credit","amount":"186.00","rate":"145.000000","lcy_amount":"186.000000","narrative":"Gain on TR-3583-2026","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:16:24] local.INFO: ID present? YES  
[2026-07-28 19:16:24] local.INFO: ID value: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:24] local.INFO: ID empty? NO  
[2026-07-28 19:16:24] local.INFO: Attempting to find record with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:24] local.INFO: Record not found, creating new with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (31503650-4256-41f8-b1b4-8c215574f45f, Credit, 186.00, 145.000000, 186.000000, Gain on TR-3583-2026, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:16:24, 2026-07-28 19:16:24))  
[2026-07-28 19:16:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:30] local.INFO: Model: Journal  
[2026-07-28 19:16:30] local.INFO: Data received: {"id":"31503650-4256-41f8-b1b4-8c215574f45f","type":"Credit","amount":"186.00","rate":"145.000000","lcy_amount":"186.000000","narrative":"Gain on TR-3583-2026","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:16:30] local.INFO: ID present? YES  
[2026-07-28 19:16:30] local.INFO: ID value: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:30] local.INFO: ID empty? NO  
[2026-07-28 19:16:30] local.INFO: Attempting to find record with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:30] local.INFO: Record not found, creating new with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (31503650-4256-41f8-b1b4-8c215574f45f, Credit, 186.00, 145.000000, 186.000000, Gain on TR-3583-2026, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:16:30, 2026-07-28 19:16:30))  
[2026-07-28 19:16:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:36] local.INFO: Model: Journal  
[2026-07-28 19:16:36] local.INFO: Data received: {"id":"31503650-4256-41f8-b1b4-8c215574f45f","type":"Credit","amount":"186.00","rate":"145.000000","lcy_amount":"186.000000","narrative":"Gain on TR-3583-2026","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:16:36] local.INFO: ID present? YES  
[2026-07-28 19:16:36] local.INFO: ID value: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:36] local.INFO: ID empty? NO  
[2026-07-28 19:16:36] local.INFO: Attempting to find record with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:36] local.INFO: Record not found, creating new with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 19:16:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (31503650-4256-41f8-b1b4-8c215574f45f, Credit, 186.00, 145.000000, 186.000000, Gain on TR-3583-2026, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:16:36, 2026-07-28 19:16:36))  
[2026-07-28 19:16:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:38] local.INFO: Model: Journal  
[2026-07-28 19:16:38] local.INFO: Data received: {"id":"32e34415-36af-458a-86d4-26a5f8829bec","type":"Debit","amount":"850.00","rate":"6.000000","lcy_amount":"7225.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:16:38] local.INFO: ID present? YES  
[2026-07-28 19:16:38] local.INFO: ID value: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:38] local.INFO: ID empty? NO  
[2026-07-28 19:16:38] local.INFO: Attempting to find record with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:38] local.INFO: Record not found, creating new with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (32e34415-36af-458a-86d4-26a5f8829bec, Debit, 850.00, 6.000000, 7225.000000, Buying TX: Funds into cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8bb706e4-7383-4b2f-b938-94c17fd1d191, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, cb2add1e-84f0-438c-aca9-deaf6f8dec58, Posted, 2026-07-28 19:16:38, 2026-07-28 19:16:38))  
[2026-07-28 19:16:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:44] local.INFO: Model: Journal  
[2026-07-28 19:16:44] local.INFO: Data received: {"id":"32e34415-36af-458a-86d4-26a5f8829bec","type":"Debit","amount":"850.00","rate":"6.000000","lcy_amount":"7225.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:16:44] local.INFO: ID present? YES  
[2026-07-28 19:16:44] local.INFO: ID value: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:44] local.INFO: ID empty? NO  
[2026-07-28 19:16:44] local.INFO: Attempting to find record with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:44] local.INFO: Record not found, creating new with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (32e34415-36af-458a-86d4-26a5f8829bec, Debit, 850.00, 6.000000, 7225.000000, Buying TX: Funds into cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8bb706e4-7383-4b2f-b938-94c17fd1d191, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, cb2add1e-84f0-438c-aca9-deaf6f8dec58, Posted, 2026-07-28 19:16:44, 2026-07-28 19:16:44))  
[2026-07-28 19:16:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:50] local.INFO: Model: Journal  
[2026-07-28 19:16:50] local.INFO: Data received: {"id":"32e34415-36af-458a-86d4-26a5f8829bec","type":"Debit","amount":"850.00","rate":"6.000000","lcy_amount":"7225.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:16:50] local.INFO: ID present? YES  
[2026-07-28 19:16:50] local.INFO: ID value: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:50] local.INFO: ID empty? NO  
[2026-07-28 19:16:50] local.INFO: Attempting to find record with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:50] local.INFO: Record not found, creating new with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (32e34415-36af-458a-86d4-26a5f8829bec, Debit, 850.00, 6.000000, 7225.000000, Buying TX: Funds into cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8bb706e4-7383-4b2f-b938-94c17fd1d191, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, cb2add1e-84f0-438c-aca9-deaf6f8dec58, Posted, 2026-07-28 19:16:50, 2026-07-28 19:16:50))  
[2026-07-28 19:16:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:56] local.INFO: Model: Journal  
[2026-07-28 19:16:56] local.INFO: Data received: {"id":"32e34415-36af-458a-86d4-26a5f8829bec","type":"Debit","amount":"850.00","rate":"6.000000","lcy_amount":"7225.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:16:56] local.INFO: ID present? YES  
[2026-07-28 19:16:56] local.INFO: ID value: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:56] local.INFO: ID empty? NO  
[2026-07-28 19:16:56] local.INFO: Attempting to find record with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:56] local.INFO: Record not found, creating new with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 19:16:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (32e34415-36af-458a-86d4-26a5f8829bec, Debit, 850.00, 6.000000, 7225.000000, Buying TX: Funds into cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8bb706e4-7383-4b2f-b938-94c17fd1d191, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, cb2add1e-84f0-438c-aca9-deaf6f8dec58, Posted, 2026-07-28 19:16:56, 2026-07-28 19:16:56))  
[2026-07-28 19:16:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:16:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:16:58] local.INFO: Model: Journal  
[2026-07-28 19:16:58] local.INFO: Data received: {"id":"37315f03-3be1-4044-b8dc-4183728c3a41","type":"Debit","amount":"20.00","rate":"145.000000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:16:58] local.INFO: ID present? YES  
[2026-07-28 19:16:58] local.INFO: ID value: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:16:58] local.INFO: ID empty? NO  
[2026-07-28 19:16:58] local.INFO: Attempting to find record with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:16:58] local.INFO: Record not found, creating new with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:16:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (37315f03-3be1-4044-b8dc-4183728c3a41, Debit, 20.00, 145.000000, 3024.000000, Buying TX: Funds into cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:16:58, 2026-07-28 19:16:58))  
[2026-07-28 19:16:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:04] local.INFO: Model: Journal  
[2026-07-28 19:17:04] local.INFO: Data received: {"id":"37315f03-3be1-4044-b8dc-4183728c3a41","type":"Debit","amount":"20.00","rate":"145.000000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:17:04] local.INFO: ID present? YES  
[2026-07-28 19:17:04] local.INFO: ID value: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:04] local.INFO: ID empty? NO  
[2026-07-28 19:17:04] local.INFO: Attempting to find record with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:04] local.INFO: Record not found, creating new with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (37315f03-3be1-4044-b8dc-4183728c3a41, Debit, 20.00, 145.000000, 3024.000000, Buying TX: Funds into cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:17:04, 2026-07-28 19:17:04))  
[2026-07-28 19:17:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:10] local.INFO: Model: Journal  
[2026-07-28 19:17:10] local.INFO: Data received: {"id":"37315f03-3be1-4044-b8dc-4183728c3a41","type":"Debit","amount":"20.00","rate":"145.000000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:17:10] local.INFO: ID present? YES  
[2026-07-28 19:17:10] local.INFO: ID value: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:10] local.INFO: ID empty? NO  
[2026-07-28 19:17:10] local.INFO: Attempting to find record with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:10] local.INFO: Record not found, creating new with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (37315f03-3be1-4044-b8dc-4183728c3a41, Debit, 20.00, 145.000000, 3024.000000, Buying TX: Funds into cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:17:10, 2026-07-28 19:17:10))  
[2026-07-28 19:17:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:16] local.INFO: Model: Journal  
[2026-07-28 19:17:16] local.INFO: Data received: {"id":"37315f03-3be1-4044-b8dc-4183728c3a41","type":"Debit","amount":"20.00","rate":"145.000000","lcy_amount":"3024.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:17:16] local.INFO: ID present? YES  
[2026-07-28 19:17:16] local.INFO: ID value: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:16] local.INFO: ID empty? NO  
[2026-07-28 19:17:16] local.INFO: Attempting to find record with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:16] local.INFO: Record not found, creating new with ID: 37315f03-3be1-4044-b8dc-4183728c3a41  
[2026-07-28 19:17:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (37315f03-3be1-4044-b8dc-4183728c3a41, Debit, 20.00, 145.000000, 3024.000000, Buying TX: Funds into cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:17:16, 2026-07-28 19:17:16))  
[2026-07-28 19:17:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:18] local.INFO: Model: Journal  
[2026-07-28 19:17:18] local.INFO: Data received: {"id":"38d7705d-9eef-40b1-bff6-d9644291ad57","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:17:18] local.INFO: ID present? YES  
[2026-07-28 19:17:18] local.INFO: ID value: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:18] local.INFO: ID empty? NO  
[2026-07-28 19:17:18] local.INFO: Attempting to find record with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:18] local.INFO: Record not found, creating new with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (38d7705d-9eef-40b1-bff6-d9644291ad57, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:18, 2026-07-28 19:17:18))  
[2026-07-28 19:17:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:24] local.INFO: Model: Journal  
[2026-07-28 19:17:24] local.INFO: Data received: {"id":"38d7705d-9eef-40b1-bff6-d9644291ad57","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:17:24] local.INFO: ID present? YES  
[2026-07-28 19:17:24] local.INFO: ID value: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:24] local.INFO: ID empty? NO  
[2026-07-28 19:17:24] local.INFO: Attempting to find record with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:24] local.INFO: Record not found, creating new with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (38d7705d-9eef-40b1-bff6-d9644291ad57, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:24, 2026-07-28 19:17:24))  
[2026-07-28 19:17:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:30] local.INFO: Model: Journal  
[2026-07-28 19:17:30] local.INFO: Data received: {"id":"38d7705d-9eef-40b1-bff6-d9644291ad57","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:17:30] local.INFO: ID present? YES  
[2026-07-28 19:17:30] local.INFO: ID value: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:30] local.INFO: ID empty? NO  
[2026-07-28 19:17:30] local.INFO: Attempting to find record with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:30] local.INFO: Record not found, creating new with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (38d7705d-9eef-40b1-bff6-d9644291ad57, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:30, 2026-07-28 19:17:30))  
[2026-07-28 19:17:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:37] local.INFO: Model: Journal  
[2026-07-28 19:17:37] local.INFO: Data received: {"id":"38d7705d-9eef-40b1-bff6-d9644291ad57","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:17:37] local.INFO: ID present? YES  
[2026-07-28 19:17:37] local.INFO: ID value: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:37] local.INFO: ID empty? NO  
[2026-07-28 19:17:37] local.INFO: Attempting to find record with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:37] local.INFO: Record not found, creating new with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 19:17:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (38d7705d-9eef-40b1-bff6-d9644291ad57, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:37, 2026-07-28 19:17:37))  
[2026-07-28 19:17:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:38] local.INFO: Model: Journal  
[2026-07-28 19:17:38] local.INFO: Data received: {"id":"3a8797a9-8076-4ce3-b75b-8c30b5985513","type":"Credit","amount":"90.00","rate":null,"lcy_amount":"2893.500000","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":null,"customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:27:01","updated_at":"2026-07-28 17:27:02"} 
[2026-07-28 19:17:38] local.INFO: ID present? YES  
[2026-07-28 19:17:38] local.INFO: ID value: 3a8797a9-8076-4ce3-b75b-8c30b5985513  
[2026-07-28 19:17:38] local.INFO: ID empty? NO  
[2026-07-28 19:17:38] local.INFO: Attempting to find record with ID: 3a8797a9-8076-4ce3-b75b-8c30b5985513  
[2026-07-28 19:17:38] local.INFO: Record not found, creating new with ID: 3a8797a9-8076-4ce3-b75b-8c30b5985513  
[2026-07-28 19:17:38] local.INFO: Created record: {"id":"3a8797a9-8076-4ce3-b75b-8c30b5985513","type":"Credit","amount":"90.00","rate":null,"lcy_amount":"2893.500000","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":null,"customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","updated_at":"2026-07-28T16:17:38.000000Z","created_at":"2026-07-28T16:17:38.000000Z","account":{"id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","name":"SAR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-SAR-000002","is_fx_account":"1","balance":-90.0,"debit_total":"0.00","credit_total":90.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"f07eccc5-6190-495b-b9d0-8714a89519a7","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-06-21T14:02:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:17:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:39] local.INFO: Model: Journal  
[2026-07-28 19:17:39] local.INFO: Data received: {"id":"3c8c03a8-e189-4c04-9c70-a1b53b7b295f","type":"Debit","amount":"1500.00","rate":"128.500000","lcy_amount":"193500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:17:39] local.INFO: ID present? YES  
[2026-07-28 19:17:39] local.INFO: ID value: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:39] local.INFO: ID empty? NO  
[2026-07-28 19:17:39] local.INFO: Attempting to find record with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:39] local.INFO: Record not found, creating new with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3c8c03a8-e189-4c04-9c70-a1b53b7b295f, Debit, 1500.00, 128.500000, 193500.000000, Buying TX: Funds into cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:39, 2026-07-28 19:17:39))  
[2026-07-28 19:17:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:45] local.INFO: Model: Journal  
[2026-07-28 19:17:45] local.INFO: Data received: {"id":"3c8c03a8-e189-4c04-9c70-a1b53b7b295f","type":"Debit","amount":"1500.00","rate":"128.500000","lcy_amount":"193500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:17:45] local.INFO: ID present? YES  
[2026-07-28 19:17:45] local.INFO: ID value: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:45] local.INFO: ID empty? NO  
[2026-07-28 19:17:45] local.INFO: Attempting to find record with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:45] local.INFO: Record not found, creating new with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3c8c03a8-e189-4c04-9c70-a1b53b7b295f, Debit, 1500.00, 128.500000, 193500.000000, Buying TX: Funds into cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:45, 2026-07-28 19:17:45))  
[2026-07-28 19:17:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:52] local.INFO: Model: Journal  
[2026-07-28 19:17:52] local.INFO: Data received: {"id":"3c8c03a8-e189-4c04-9c70-a1b53b7b295f","type":"Debit","amount":"1500.00","rate":"128.500000","lcy_amount":"193500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:17:52] local.INFO: ID present? YES  
[2026-07-28 19:17:52] local.INFO: ID value: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:52] local.INFO: ID empty? NO  
[2026-07-28 19:17:52] local.INFO: Attempting to find record with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:52] local.INFO: Record not found, creating new with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3c8c03a8-e189-4c04-9c70-a1b53b7b295f, Debit, 1500.00, 128.500000, 193500.000000, Buying TX: Funds into cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:52, 2026-07-28 19:17:52))  
[2026-07-28 19:17:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:58] local.INFO: Model: Journal  
[2026-07-28 19:17:58] local.INFO: Data received: {"id":"3c8c03a8-e189-4c04-9c70-a1b53b7b295f","type":"Debit","amount":"1500.00","rate":"128.500000","lcy_amount":"193500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:17:58] local.INFO: ID present? YES  
[2026-07-28 19:17:58] local.INFO: ID value: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:58] local.INFO: ID empty? NO  
[2026-07-28 19:17:58] local.INFO: Attempting to find record with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:58] local.INFO: Record not found, creating new with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 19:17:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3c8c03a8-e189-4c04-9c70-a1b53b7b295f, Debit, 1500.00, 128.500000, 193500.000000, Buying TX: Funds into cashbox, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:17:58, 2026-07-28 19:17:58))  
[2026-07-28 19:17:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:17:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:17:59] local.INFO: Model: Journal  
[2026-07-28 19:17:59] local.INFO: Data received: {"id":"3d1d07d7-7f23-467f-af7f-c107f9caa392","type":"Credit","amount":"30.00","rate":"127.500000","lcy_amount":"30.000000","narrative":"Gain on TR-3563-2026","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:17:59] local.INFO: ID present? YES  
[2026-07-28 19:17:59] local.INFO: ID value: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:17:59] local.INFO: ID empty? NO  
[2026-07-28 19:17:59] local.INFO: Attempting to find record with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:17:59] local.INFO: Record not found, creating new with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:17:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d1d07d7-7f23-467f-af7f-c107f9caa392, Credit, 30.00, 127.500000, 30.000000, Gain on TR-3563-2026, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:17:59, 2026-07-28 19:17:59))  
[2026-07-28 19:17:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:05] local.INFO: Model: Journal  
[2026-07-28 19:18:05] local.INFO: Data received: {"id":"3d1d07d7-7f23-467f-af7f-c107f9caa392","type":"Credit","amount":"30.00","rate":"127.500000","lcy_amount":"30.000000","narrative":"Gain on TR-3563-2026","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:18:05] local.INFO: ID present? YES  
[2026-07-28 19:18:05] local.INFO: ID value: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:05] local.INFO: ID empty? NO  
[2026-07-28 19:18:05] local.INFO: Attempting to find record with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:05] local.INFO: Record not found, creating new with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d1d07d7-7f23-467f-af7f-c107f9caa392, Credit, 30.00, 127.500000, 30.000000, Gain on TR-3563-2026, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:05, 2026-07-28 19:18:05))  
[2026-07-28 19:18:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:12] local.INFO: Model: Journal  
[2026-07-28 19:18:12] local.INFO: Data received: {"id":"3d1d07d7-7f23-467f-af7f-c107f9caa392","type":"Credit","amount":"30.00","rate":"127.500000","lcy_amount":"30.000000","narrative":"Gain on TR-3563-2026","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:18:12] local.INFO: ID present? YES  
[2026-07-28 19:18:12] local.INFO: ID value: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:12] local.INFO: ID empty? NO  
[2026-07-28 19:18:12] local.INFO: Attempting to find record with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:12] local.INFO: Record not found, creating new with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d1d07d7-7f23-467f-af7f-c107f9caa392, Credit, 30.00, 127.500000, 30.000000, Gain on TR-3563-2026, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:12, 2026-07-28 19:18:12))  
[2026-07-28 19:18:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:18] local.INFO: Model: Journal  
[2026-07-28 19:18:18] local.INFO: Data received: {"id":"3d1d07d7-7f23-467f-af7f-c107f9caa392","type":"Credit","amount":"30.00","rate":"127.500000","lcy_amount":"30.000000","narrative":"Gain on TR-3563-2026","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:18:18] local.INFO: ID present? YES  
[2026-07-28 19:18:18] local.INFO: ID value: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:18] local.INFO: ID empty? NO  
[2026-07-28 19:18:18] local.INFO: Attempting to find record with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:18] local.INFO: Record not found, creating new with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 19:18:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d1d07d7-7f23-467f-af7f-c107f9caa392, Credit, 30.00, 127.500000, 30.000000, Gain on TR-3563-2026, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:18, 2026-07-28 19:18:18))  
[2026-07-28 19:18:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:19] local.INFO: Model: Journal  
[2026-07-28 19:18:19] local.INFO: Data received: {"id":"3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3580-2026","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:18:19] local.INFO: ID present? YES  
[2026-07-28 19:18:19] local.INFO: ID value: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:19] local.INFO: ID empty? NO  
[2026-07-28 19:18:19] local.INFO: Attempting to find record with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:19] local.INFO: Record not found, creating new with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3580-2026, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:19, 2026-07-28 19:18:19))  
[2026-07-28 19:18:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:26] local.INFO: Model: Journal  
[2026-07-28 19:18:26] local.INFO: Data received: {"id":"3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3580-2026","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:18:26] local.INFO: ID present? YES  
[2026-07-28 19:18:26] local.INFO: ID value: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:26] local.INFO: ID empty? NO  
[2026-07-28 19:18:26] local.INFO: Attempting to find record with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:26] local.INFO: Record not found, creating new with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3580-2026, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:26, 2026-07-28 19:18:26))  
[2026-07-28 19:18:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:32] local.INFO: Model: Journal  
[2026-07-28 19:18:32] local.INFO: Data received: {"id":"3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3580-2026","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:18:32] local.INFO: ID present? YES  
[2026-07-28 19:18:32] local.INFO: ID value: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:32] local.INFO: ID empty? NO  
[2026-07-28 19:18:32] local.INFO: Attempting to find record with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:32] local.INFO: Record not found, creating new with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3580-2026, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:32, 2026-07-28 19:18:32))  
[2026-07-28 19:18:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:38] local.INFO: Model: Journal  
[2026-07-28 19:18:38] local.INFO: Data received: {"id":"3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3580-2026","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:18:38] local.INFO: ID present? YES  
[2026-07-28 19:18:38] local.INFO: ID value: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:38] local.INFO: ID empty? NO  
[2026-07-28 19:18:38] local.INFO: Attempting to find record with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:38] local.INFO: Record not found, creating new with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 19:18:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3580-2026, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:38, 2026-07-28 19:18:38))  
[2026-07-28 19:18:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:39] local.INFO: Model: Journal  
[2026-07-28 19:18:39] local.INFO: Data received: {"id":"405d88b6-403e-413f-8532-a73585e3182e","type":"Debit","amount":"700.00","rate":"128.500000","lcy_amount":"90300.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:18:39] local.INFO: ID present? YES  
[2026-07-28 19:18:39] local.INFO: ID value: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:39] local.INFO: ID empty? NO  
[2026-07-28 19:18:39] local.INFO: Attempting to find record with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:39] local.INFO: Record not found, creating new with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (405d88b6-403e-413f-8532-a73585e3182e, Debit, 700.00, 128.500000, 90300.000000, Buying TX: Funds into cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:18:39, 2026-07-28 19:18:39))  
[2026-07-28 19:18:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:46] local.INFO: Model: Journal  
[2026-07-28 19:18:46] local.INFO: Data received: {"id":"405d88b6-403e-413f-8532-a73585e3182e","type":"Debit","amount":"700.00","rate":"128.500000","lcy_amount":"90300.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:18:46] local.INFO: ID present? YES  
[2026-07-28 19:18:46] local.INFO: ID value: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:46] local.INFO: ID empty? NO  
[2026-07-28 19:18:46] local.INFO: Attempting to find record with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:46] local.INFO: Record not found, creating new with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (405d88b6-403e-413f-8532-a73585e3182e, Debit, 700.00, 128.500000, 90300.000000, Buying TX: Funds into cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:18:46, 2026-07-28 19:18:46))  
[2026-07-28 19:18:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:52] local.INFO: Model: Journal  
[2026-07-28 19:18:52] local.INFO: Data received: {"id":"405d88b6-403e-413f-8532-a73585e3182e","type":"Debit","amount":"700.00","rate":"128.500000","lcy_amount":"90300.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:18:52] local.INFO: ID present? YES  
[2026-07-28 19:18:52] local.INFO: ID value: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:52] local.INFO: ID empty? NO  
[2026-07-28 19:18:52] local.INFO: Attempting to find record with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:52] local.INFO: Record not found, creating new with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (405d88b6-403e-413f-8532-a73585e3182e, Debit, 700.00, 128.500000, 90300.000000, Buying TX: Funds into cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:18:52, 2026-07-28 19:18:52))  
[2026-07-28 19:18:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:58] local.INFO: Model: Journal  
[2026-07-28 19:18:58] local.INFO: Data received: {"id":"405d88b6-403e-413f-8532-a73585e3182e","type":"Debit","amount":"700.00","rate":"128.500000","lcy_amount":"90300.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 19:18:58] local.INFO: ID present? YES  
[2026-07-28 19:18:58] local.INFO: ID value: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:58] local.INFO: ID empty? NO  
[2026-07-28 19:18:58] local.INFO: Attempting to find record with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:58] local.INFO: Record not found, creating new with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 19:18:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (405d88b6-403e-413f-8532-a73585e3182e, Debit, 700.00, 128.500000, 90300.000000, Buying TX: Funds into cashbox, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ee6e82b6-e8a2-46b1-afeb-af77d8c09184, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:18:58, 2026-07-28 19:18:58))  
[2026-07-28 19:18:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:18:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:18:59] local.INFO: Model: Journal  
[2026-07-28 19:18:59] local.INFO: Data received: {"id":"42e66a89-ff91-4f58-84cb-97ed4cdb090c","type":"Credit","amount":"16950.00","rate":"169.500000","lcy_amount":"16950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:18:59] local.INFO: ID present? YES  
[2026-07-28 19:18:59] local.INFO: ID value: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:18:59] local.INFO: ID empty? NO  
[2026-07-28 19:18:59] local.INFO: Attempting to find record with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:18:59] local.INFO: Record not found, creating new with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:18:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (42e66a89-ff91-4f58-84cb-97ed4cdb090c, Credit, 16950.00, 169.500000, 16950.000000, Buying TX: Funds out of cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:18:59, 2026-07-28 19:18:59))  
[2026-07-28 19:18:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:06] local.INFO: Model: Journal  
[2026-07-28 19:19:06] local.INFO: Data received: {"id":"42e66a89-ff91-4f58-84cb-97ed4cdb090c","type":"Credit","amount":"16950.00","rate":"169.500000","lcy_amount":"16950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:19:06] local.INFO: ID present? YES  
[2026-07-28 19:19:06] local.INFO: ID value: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:06] local.INFO: ID empty? NO  
[2026-07-28 19:19:06] local.INFO: Attempting to find record with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:06] local.INFO: Record not found, creating new with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (42e66a89-ff91-4f58-84cb-97ed4cdb090c, Credit, 16950.00, 169.500000, 16950.000000, Buying TX: Funds out of cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:06, 2026-07-28 19:19:06))  
[2026-07-28 19:19:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:12] local.INFO: Model: Journal  
[2026-07-28 19:19:12] local.INFO: Data received: {"id":"42e66a89-ff91-4f58-84cb-97ed4cdb090c","type":"Credit","amount":"16950.00","rate":"169.500000","lcy_amount":"16950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:19:12] local.INFO: ID present? YES  
[2026-07-28 19:19:12] local.INFO: ID value: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:12] local.INFO: ID empty? NO  
[2026-07-28 19:19:12] local.INFO: Attempting to find record with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:12] local.INFO: Record not found, creating new with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (42e66a89-ff91-4f58-84cb-97ed4cdb090c, Credit, 16950.00, 169.500000, 16950.000000, Buying TX: Funds out of cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:12, 2026-07-28 19:19:12))  
[2026-07-28 19:19:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:18] local.INFO: Model: Journal  
[2026-07-28 19:19:18] local.INFO: Data received: {"id":"42e66a89-ff91-4f58-84cb-97ed4cdb090c","type":"Credit","amount":"16950.00","rate":"169.500000","lcy_amount":"16950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:19:18] local.INFO: ID present? YES  
[2026-07-28 19:19:18] local.INFO: ID value: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:18] local.INFO: ID empty? NO  
[2026-07-28 19:19:18] local.INFO: Attempting to find record with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:18] local.INFO: Record not found, creating new with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 19:19:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (42e66a89-ff91-4f58-84cb-97ed4cdb090c, Credit, 16950.00, 169.500000, 16950.000000, Buying TX: Funds out of cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:18, 2026-07-28 19:19:18))  
[2026-07-28 19:19:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:20] local.INFO: Model: Journal  
[2026-07-28 19:19:20] local.INFO: Data received: {"id":"45ddac7b-3962-4f6c-9050-8d99697c0b1c","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:19:20] local.INFO: ID present? YES  
[2026-07-28 19:19:20] local.INFO: ID value: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:20] local.INFO: ID empty? NO  
[2026-07-28 19:19:20] local.INFO: Attempting to find record with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:20] local.INFO: Record not found, creating new with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (45ddac7b-3962-4f6c-9050-8d99697c0b1c, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:20, 2026-07-28 19:19:20))  
[2026-07-28 19:19:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:26] local.INFO: Model: Journal  
[2026-07-28 19:19:26] local.INFO: Data received: {"id":"45ddac7b-3962-4f6c-9050-8d99697c0b1c","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:19:26] local.INFO: ID present? YES  
[2026-07-28 19:19:26] local.INFO: ID value: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:26] local.INFO: ID empty? NO  
[2026-07-28 19:19:26] local.INFO: Attempting to find record with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:26] local.INFO: Record not found, creating new with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (45ddac7b-3962-4f6c-9050-8d99697c0b1c, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:26, 2026-07-28 19:19:26))  
[2026-07-28 19:19:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:32] local.INFO: Model: Journal  
[2026-07-28 19:19:32] local.INFO: Data received: {"id":"45ddac7b-3962-4f6c-9050-8d99697c0b1c","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:19:32] local.INFO: ID present? YES  
[2026-07-28 19:19:32] local.INFO: ID value: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:32] local.INFO: ID empty? NO  
[2026-07-28 19:19:32] local.INFO: Attempting to find record with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:32] local.INFO: Record not found, creating new with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (45ddac7b-3962-4f6c-9050-8d99697c0b1c, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:32, 2026-07-28 19:19:32))  
[2026-07-28 19:19:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:38] local.INFO: Model: Journal  
[2026-07-28 19:19:38] local.INFO: Data received: {"id":"45ddac7b-3962-4f6c-9050-8d99697c0b1c","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:19:38] local.INFO: ID present? YES  
[2026-07-28 19:19:38] local.INFO: ID value: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:38] local.INFO: ID empty? NO  
[2026-07-28 19:19:38] local.INFO: Attempting to find record with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:38] local.INFO: Record not found, creating new with ID: 45ddac7b-3962-4f6c-9050-8d99697c0b1c  
[2026-07-28 19:19:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (45ddac7b-3962-4f6c-9050-8d99697c0b1c, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:38, 2026-07-28 19:19:38))  
[2026-07-28 19:19:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:40] local.INFO: Model: Journal  
[2026-07-28 19:19:40] local.INFO: Data received: {"id":"478efa6c-7e3d-4932-a9c2-a45d66586eb7","type":"Credit","amount":"321250.00","rate":"128.500000","lcy_amount":"321250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:19:40] local.INFO: ID present? YES  
[2026-07-28 19:19:40] local.INFO: ID value: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:40] local.INFO: ID empty? NO  
[2026-07-28 19:19:40] local.INFO: Attempting to find record with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:40] local.INFO: Record not found, creating new with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (478efa6c-7e3d-4932-a9c2-a45d66586eb7, Credit, 321250.00, 128.500000, 321250.000000, Buying TX: Funds out of cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:40, 2026-07-28 19:19:40))  
[2026-07-28 19:19:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:46] local.INFO: Model: Journal  
[2026-07-28 19:19:46] local.INFO: Data received: {"id":"478efa6c-7e3d-4932-a9c2-a45d66586eb7","type":"Credit","amount":"321250.00","rate":"128.500000","lcy_amount":"321250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:19:46] local.INFO: ID present? YES  
[2026-07-28 19:19:46] local.INFO: ID value: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:46] local.INFO: ID empty? NO  
[2026-07-28 19:19:46] local.INFO: Attempting to find record with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:46] local.INFO: Record not found, creating new with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (478efa6c-7e3d-4932-a9c2-a45d66586eb7, Credit, 321250.00, 128.500000, 321250.000000, Buying TX: Funds out of cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:46, 2026-07-28 19:19:46))  
[2026-07-28 19:19:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:52] local.INFO: Model: Journal  
[2026-07-28 19:19:52] local.INFO: Data received: {"id":"478efa6c-7e3d-4932-a9c2-a45d66586eb7","type":"Credit","amount":"321250.00","rate":"128.500000","lcy_amount":"321250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:19:52] local.INFO: ID present? YES  
[2026-07-28 19:19:52] local.INFO: ID value: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:52] local.INFO: ID empty? NO  
[2026-07-28 19:19:52] local.INFO: Attempting to find record with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:52] local.INFO: Record not found, creating new with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (478efa6c-7e3d-4932-a9c2-a45d66586eb7, Credit, 321250.00, 128.500000, 321250.000000, Buying TX: Funds out of cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:52, 2026-07-28 19:19:52))  
[2026-07-28 19:19:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:19:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:19:58] local.INFO: Model: Journal  
[2026-07-28 19:19:58] local.INFO: Data received: {"id":"478efa6c-7e3d-4932-a9c2-a45d66586eb7","type":"Credit","amount":"321250.00","rate":"128.500000","lcy_amount":"321250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:19:58] local.INFO: ID present? YES  
[2026-07-28 19:19:58] local.INFO: ID value: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:58] local.INFO: ID empty? NO  
[2026-07-28 19:19:58] local.INFO: Attempting to find record with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:58] local.INFO: Record not found, creating new with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 19:19:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (478efa6c-7e3d-4932-a9c2-a45d66586eb7, Credit, 321250.00, 128.500000, 321250.000000, Buying TX: Funds out of cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:19:58, 2026-07-28 19:19:58))  
[2026-07-28 19:19:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:00] local.INFO: Model: Journal  
[2026-07-28 19:20:00] local.INFO: Data received: {"id":"4792d172-391f-4a93-8610-1aea8137a350","type":"Credit","amount":"421045.00","rate":null,"lcy_amount":"421045.000000","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 18:44:29","updated_at":"2026-07-28 18:44:32"} 
[2026-07-28 19:20:00] local.INFO: ID present? YES  
[2026-07-28 19:20:00] local.INFO: ID value: 4792d172-391f-4a93-8610-1aea8137a350  
[2026-07-28 19:20:00] local.INFO: ID empty? NO  
[2026-07-28 19:20:00] local.INFO: Attempting to find record with ID: 4792d172-391f-4a93-8610-1aea8137a350  
[2026-07-28 19:20:00] local.INFO: Record not found, creating new with ID: 4792d172-391f-4a93-8610-1aea8137a350  
[2026-07-28 19:20:00] local.INFO: Created record: {"id":"4792d172-391f-4a93-8610-1aea8137a350","type":"Credit","amount":"421045.00","rate":null,"lcy_amount":"421045.000000","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:20:00.000000Z","created_at":"2026-07-28T16:20:00.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2321898.0,"debit_total":"3359990.00","credit_total":5681888.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-27T06:43:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 19:20:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:01] local.INFO: Model: Journal  
[2026-07-28 19:20:01] local.INFO: Data received: {"id":"47ec4225-c00c-4f93-adf0-e2b5965ab4ed","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:20:01] local.INFO: ID present? YES  
[2026-07-28 19:20:01] local.INFO: ID value: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:01] local.INFO: ID empty? NO  
[2026-07-28 19:20:01] local.INFO: Attempting to find record with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:01] local.INFO: Record not found, creating new with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (47ec4225-c00c-4f93-adf0-e2b5965ab4ed, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:01, 2026-07-28 19:20:01))  
[2026-07-28 19:20:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:07] local.INFO: Model: Journal  
[2026-07-28 19:20:07] local.INFO: Data received: {"id":"47ec4225-c00c-4f93-adf0-e2b5965ab4ed","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:20:07] local.INFO: ID present? YES  
[2026-07-28 19:20:07] local.INFO: ID value: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:07] local.INFO: ID empty? NO  
[2026-07-28 19:20:07] local.INFO: Attempting to find record with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:07] local.INFO: Record not found, creating new with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (47ec4225-c00c-4f93-adf0-e2b5965ab4ed, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:07, 2026-07-28 19:20:07))  
[2026-07-28 19:20:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:14] local.INFO: Model: Journal  
[2026-07-28 19:20:14] local.INFO: Data received: {"id":"47ec4225-c00c-4f93-adf0-e2b5965ab4ed","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:20:14] local.INFO: ID present? YES  
[2026-07-28 19:20:14] local.INFO: ID value: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:14] local.INFO: ID empty? NO  
[2026-07-28 19:20:14] local.INFO: Attempting to find record with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:14] local.INFO: Record not found, creating new with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (47ec4225-c00c-4f93-adf0-e2b5965ab4ed, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:14, 2026-07-28 19:20:14))  
[2026-07-28 19:20:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:20] local.INFO: Model: Journal  
[2026-07-28 19:20:20] local.INFO: Data received: {"id":"47ec4225-c00c-4f93-adf0-e2b5965ab4ed","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:20:20] local.INFO: ID present? YES  
[2026-07-28 19:20:20] local.INFO: ID value: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:20] local.INFO: ID empty? NO  
[2026-07-28 19:20:20] local.INFO: Attempting to find record with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:20] local.INFO: Record not found, creating new with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 19:20:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (47ec4225-c00c-4f93-adf0-e2b5965ab4ed, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:20, 2026-07-28 19:20:20))  
[2026-07-28 19:20:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:21] local.INFO: Model: Journal  
[2026-07-28 19:20:21] local.INFO: Data received: {"id":"4860b015-7ba4-45d7-9c2f-9c4243ec0209","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:20:21] local.INFO: ID present? YES  
[2026-07-28 19:20:21] local.INFO: ID value: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:21] local.INFO: ID empty? NO  
[2026-07-28 19:20:21] local.INFO: Attempting to find record with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:21] local.INFO: Record not found, creating new with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4860b015-7ba4-45d7-9c2f-9c4243ec0209, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:21, 2026-07-28 19:20:21))  
[2026-07-28 19:20:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:27] local.INFO: Model: Journal  
[2026-07-28 19:20:27] local.INFO: Data received: {"id":"4860b015-7ba4-45d7-9c2f-9c4243ec0209","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:20:27] local.INFO: ID present? YES  
[2026-07-28 19:20:27] local.INFO: ID value: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:27] local.INFO: ID empty? NO  
[2026-07-28 19:20:27] local.INFO: Attempting to find record with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:27] local.INFO: Record not found, creating new with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4860b015-7ba4-45d7-9c2f-9c4243ec0209, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:27, 2026-07-28 19:20:27))  
[2026-07-28 19:20:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:34] local.INFO: Model: Journal  
[2026-07-28 19:20:34] local.INFO: Data received: {"id":"4860b015-7ba4-45d7-9c2f-9c4243ec0209","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:20:34] local.INFO: ID present? YES  
[2026-07-28 19:20:34] local.INFO: ID value: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:34] local.INFO: ID empty? NO  
[2026-07-28 19:20:34] local.INFO: Attempting to find record with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:34] local.INFO: Record not found, creating new with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4860b015-7ba4-45d7-9c2f-9c4243ec0209, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:34, 2026-07-28 19:20:34))  
[2026-07-28 19:20:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:40] local.INFO: Model: Journal  
[2026-07-28 19:20:40] local.INFO: Data received: {"id":"4860b015-7ba4-45d7-9c2f-9c4243ec0209","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:20:40] local.INFO: ID present? YES  
[2026-07-28 19:20:40] local.INFO: ID value: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:40] local.INFO: ID empty? NO  
[2026-07-28 19:20:40] local.INFO: Attempting to find record with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:40] local.INFO: Record not found, creating new with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 19:20:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4860b015-7ba4-45d7-9c2f-9c4243ec0209, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:20:40, 2026-07-28 19:20:40))  
[2026-07-28 19:20:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:41] local.INFO: Model: Journal  
[2026-07-28 19:20:41] local.INFO: Data received: {"id":"48be2068-2886-4af6-b0b5-57f9019eeb0d","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:20:41] local.INFO: ID present? YES  
[2026-07-28 19:20:41] local.INFO: ID value: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:41] local.INFO: ID empty? NO  
[2026-07-28 19:20:41] local.INFO: Attempting to find record with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:41] local.INFO: Record not found, creating new with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (48be2068-2886-4af6-b0b5-57f9019eeb0d, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:20:41, 2026-07-28 19:20:41))  
[2026-07-28 19:20:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:47] local.INFO: Model: Journal  
[2026-07-28 19:20:47] local.INFO: Data received: {"id":"48be2068-2886-4af6-b0b5-57f9019eeb0d","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:20:47] local.INFO: ID present? YES  
[2026-07-28 19:20:47] local.INFO: ID value: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:47] local.INFO: ID empty? NO  
[2026-07-28 19:20:47] local.INFO: Attempting to find record with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:47] local.INFO: Record not found, creating new with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (48be2068-2886-4af6-b0b5-57f9019eeb0d, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:20:47, 2026-07-28 19:20:47))  
[2026-07-28 19:20:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:20:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:20:54] local.INFO: Model: Journal  
[2026-07-28 19:20:54] local.INFO: Data received: {"id":"48be2068-2886-4af6-b0b5-57f9019eeb0d","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:20:54] local.INFO: ID present? YES  
[2026-07-28 19:20:54] local.INFO: ID value: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:54] local.INFO: ID empty? NO  
[2026-07-28 19:20:54] local.INFO: Attempting to find record with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:54] local.INFO: Record not found, creating new with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:20:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (48be2068-2886-4af6-b0b5-57f9019eeb0d, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:20:54, 2026-07-28 19:20:54))  
[2026-07-28 19:20:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:00] local.INFO: Model: Journal  
[2026-07-28 19:21:00] local.INFO: Data received: {"id":"48be2068-2886-4af6-b0b5-57f9019eeb0d","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:21:00] local.INFO: ID present? YES  
[2026-07-28 19:21:00] local.INFO: ID value: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:21:00] local.INFO: ID empty? NO  
[2026-07-28 19:21:00] local.INFO: Attempting to find record with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:21:00] local.INFO: Record not found, creating new with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 19:21:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (48be2068-2886-4af6-b0b5-57f9019eeb0d, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:21:00, 2026-07-28 19:21:00))  
[2026-07-28 19:21:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:01] local.INFO: Model: Journal  
[2026-07-28 19:21:01] local.INFO: Data received: {"id":"4c1967e5-b90b-4ff9-b98d-1ddb9f520711","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3590-2026","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:21:01] local.INFO: ID present? YES  
[2026-07-28 19:21:01] local.INFO: ID value: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:01] local.INFO: ID empty? NO  
[2026-07-28 19:21:01] local.INFO: Attempting to find record with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:01] local.INFO: Record not found, creating new with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c1967e5-b90b-4ff9-b98d-1ddb9f520711, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3590-2026, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:01, 2026-07-28 19:21:01))  
[2026-07-28 19:21:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:08] local.INFO: Model: Journal  
[2026-07-28 19:21:08] local.INFO: Data received: {"id":"4c1967e5-b90b-4ff9-b98d-1ddb9f520711","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3590-2026","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:21:08] local.INFO: ID present? YES  
[2026-07-28 19:21:08] local.INFO: ID value: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:08] local.INFO: ID empty? NO  
[2026-07-28 19:21:08] local.INFO: Attempting to find record with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:08] local.INFO: Record not found, creating new with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c1967e5-b90b-4ff9-b98d-1ddb9f520711, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3590-2026, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:08, 2026-07-28 19:21:08))  
[2026-07-28 19:21:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:14] local.INFO: Model: Journal  
[2026-07-28 19:21:14] local.INFO: Data received: {"id":"4c1967e5-b90b-4ff9-b98d-1ddb9f520711","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3590-2026","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:21:14] local.INFO: ID present? YES  
[2026-07-28 19:21:14] local.INFO: ID value: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:14] local.INFO: ID empty? NO  
[2026-07-28 19:21:14] local.INFO: Attempting to find record with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:14] local.INFO: Record not found, creating new with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c1967e5-b90b-4ff9-b98d-1ddb9f520711, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3590-2026, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:14, 2026-07-28 19:21:14))  
[2026-07-28 19:21:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:20] local.INFO: Model: Journal  
[2026-07-28 19:21:20] local.INFO: Data received: {"id":"4c1967e5-b90b-4ff9-b98d-1ddb9f520711","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3590-2026","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:21:20] local.INFO: ID present? YES  
[2026-07-28 19:21:20] local.INFO: ID value: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:20] local.INFO: ID empty? NO  
[2026-07-28 19:21:20] local.INFO: Attempting to find record with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:20] local.INFO: Record not found, creating new with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 19:21:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c1967e5-b90b-4ff9-b98d-1ddb9f520711, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3590-2026, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:20, 2026-07-28 19:21:20))  
[2026-07-28 19:21:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:21] local.INFO: Model: Journal  
[2026-07-28 19:21:21] local.INFO: Data received: {"id":"4c6c52b7-3e35-4b60-9344-a9c578beab75","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:21:21] local.INFO: ID present? YES  
[2026-07-28 19:21:21] local.INFO: ID value: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:21] local.INFO: ID empty? NO  
[2026-07-28 19:21:21] local.INFO: Attempting to find record with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:21] local.INFO: Record not found, creating new with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c6c52b7-3e35-4b60-9344-a9c578beab75, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:21, 2026-07-28 19:21:21))  
[2026-07-28 19:21:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:28] local.INFO: Model: Journal  
[2026-07-28 19:21:28] local.INFO: Data received: {"id":"4c6c52b7-3e35-4b60-9344-a9c578beab75","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:21:28] local.INFO: ID present? YES  
[2026-07-28 19:21:28] local.INFO: ID value: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:28] local.INFO: ID empty? NO  
[2026-07-28 19:21:28] local.INFO: Attempting to find record with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:28] local.INFO: Record not found, creating new with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c6c52b7-3e35-4b60-9344-a9c578beab75, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:28, 2026-07-28 19:21:28))  
[2026-07-28 19:21:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:34] local.INFO: Model: Journal  
[2026-07-28 19:21:34] local.INFO: Data received: {"id":"4c6c52b7-3e35-4b60-9344-a9c578beab75","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:21:34] local.INFO: ID present? YES  
[2026-07-28 19:21:34] local.INFO: ID value: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:34] local.INFO: ID empty? NO  
[2026-07-28 19:21:34] local.INFO: Attempting to find record with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:34] local.INFO: Record not found, creating new with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c6c52b7-3e35-4b60-9344-a9c578beab75, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:34, 2026-07-28 19:21:34))  
[2026-07-28 19:21:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:40] local.INFO: Model: Journal  
[2026-07-28 19:21:40] local.INFO: Data received: {"id":"4c6c52b7-3e35-4b60-9344-a9c578beab75","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:21:40] local.INFO: ID present? YES  
[2026-07-28 19:21:40] local.INFO: ID value: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:40] local.INFO: ID empty? NO  
[2026-07-28 19:21:40] local.INFO: Attempting to find record with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:40] local.INFO: Record not found, creating new with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 19:21:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4c6c52b7-3e35-4b60-9344-a9c578beab75, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:40, 2026-07-28 19:21:40))  
[2026-07-28 19:21:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:41] local.INFO: Model: Journal  
[2026-07-28 19:21:41] local.INFO: Data received: {"id":"4f68c6c9-0c12-4c4b-b534-d0607dd0e879","type":"Credit","amount":"10875.00","rate":"145.000000","lcy_amount":"10875.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:21:41] local.INFO: ID present? YES  
[2026-07-28 19:21:41] local.INFO: ID value: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:41] local.INFO: ID empty? NO  
[2026-07-28 19:21:41] local.INFO: Attempting to find record with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:41] local.INFO: Record not found, creating new with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4f68c6c9-0c12-4c4b-b534-d0607dd0e879, Credit, 10875.00, 145.000000, 10875.000000, Buying TX: Funds out of cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:41, 2026-07-28 19:21:41))  
[2026-07-28 19:21:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:48] local.INFO: Model: Journal  
[2026-07-28 19:21:48] local.INFO: Data received: {"id":"4f68c6c9-0c12-4c4b-b534-d0607dd0e879","type":"Credit","amount":"10875.00","rate":"145.000000","lcy_amount":"10875.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:21:48] local.INFO: ID present? YES  
[2026-07-28 19:21:48] local.INFO: ID value: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:48] local.INFO: ID empty? NO  
[2026-07-28 19:21:48] local.INFO: Attempting to find record with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:48] local.INFO: Record not found, creating new with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4f68c6c9-0c12-4c4b-b534-d0607dd0e879, Credit, 10875.00, 145.000000, 10875.000000, Buying TX: Funds out of cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:48, 2026-07-28 19:21:48))  
[2026-07-28 19:21:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:21:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:21:54] local.INFO: Model: Journal  
[2026-07-28 19:21:54] local.INFO: Data received: {"id":"4f68c6c9-0c12-4c4b-b534-d0607dd0e879","type":"Credit","amount":"10875.00","rate":"145.000000","lcy_amount":"10875.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:21:54] local.INFO: ID present? YES  
[2026-07-28 19:21:54] local.INFO: ID value: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:54] local.INFO: ID empty? NO  
[2026-07-28 19:21:54] local.INFO: Attempting to find record with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:54] local.INFO: Record not found, creating new with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:21:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4f68c6c9-0c12-4c4b-b534-d0607dd0e879, Credit, 10875.00, 145.000000, 10875.000000, Buying TX: Funds out of cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:21:54, 2026-07-28 19:21:54))  
[2026-07-28 19:21:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:00] local.INFO: Model: Journal  
[2026-07-28 19:22:00] local.INFO: Data received: {"id":"4f68c6c9-0c12-4c4b-b534-d0607dd0e879","type":"Credit","amount":"10875.00","rate":"145.000000","lcy_amount":"10875.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:22:00] local.INFO: ID present? YES  
[2026-07-28 19:22:00] local.INFO: ID value: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:22:00] local.INFO: ID empty? NO  
[2026-07-28 19:22:00] local.INFO: Attempting to find record with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:22:00] local.INFO: Record not found, creating new with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 19:22:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (4f68c6c9-0c12-4c4b-b534-d0607dd0e879, Credit, 10875.00, 145.000000, 10875.000000, Buying TX: Funds out of cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:00, 2026-07-28 19:22:00))  
[2026-07-28 19:22:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:02] local.INFO: Model: Journal  
[2026-07-28 19:22:02] local.INFO: Data received: {"id":"5036b749-1858-4694-872b-c52ffd1dbe65","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:22:02] local.INFO: ID present? YES  
[2026-07-28 19:22:02] local.INFO: ID value: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:02] local.INFO: ID empty? NO  
[2026-07-28 19:22:02] local.INFO: Attempting to find record with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:02] local.INFO: Record not found, creating new with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5036b749-1858-4694-872b-c52ffd1dbe65, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:02, 2026-07-28 19:22:02))  
[2026-07-28 19:22:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:08] local.INFO: Model: Journal  
[2026-07-28 19:22:08] local.INFO: Data received: {"id":"5036b749-1858-4694-872b-c52ffd1dbe65","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:22:08] local.INFO: ID present? YES  
[2026-07-28 19:22:08] local.INFO: ID value: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:08] local.INFO: ID empty? NO  
[2026-07-28 19:22:08] local.INFO: Attempting to find record with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:08] local.INFO: Record not found, creating new with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5036b749-1858-4694-872b-c52ffd1dbe65, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:08, 2026-07-28 19:22:08))  
[2026-07-28 19:22:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:14] local.INFO: Model: Journal  
[2026-07-28 19:22:14] local.INFO: Data received: {"id":"5036b749-1858-4694-872b-c52ffd1dbe65","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:22:14] local.INFO: ID present? YES  
[2026-07-28 19:22:14] local.INFO: ID value: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:14] local.INFO: ID empty? NO  
[2026-07-28 19:22:14] local.INFO: Attempting to find record with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:14] local.INFO: Record not found, creating new with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5036b749-1858-4694-872b-c52ffd1dbe65, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:14, 2026-07-28 19:22:14))  
[2026-07-28 19:22:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:20] local.INFO: Model: Journal  
[2026-07-28 19:22:20] local.INFO: Data received: {"id":"5036b749-1858-4694-872b-c52ffd1dbe65","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:22:20] local.INFO: ID present? YES  
[2026-07-28 19:22:20] local.INFO: ID value: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:20] local.INFO: ID empty? NO  
[2026-07-28 19:22:20] local.INFO: Attempting to find record with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:20] local.INFO: Record not found, creating new with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 19:22:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5036b749-1858-4694-872b-c52ffd1dbe65, Credit, 14500.00, 145.000000, 14500.000000, Buying TX: Funds out of cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:20, 2026-07-28 19:22:20))  
[2026-07-28 19:22:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:22] local.INFO: Model: Journal  
[2026-07-28 19:22:22] local.INFO: Data received: {"id":"50af9eea-fd7b-4837-a0e9-585ac27849d5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:22:22] local.INFO: ID present? YES  
[2026-07-28 19:22:22] local.INFO: ID value: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:22] local.INFO: ID empty? NO  
[2026-07-28 19:22:22] local.INFO: Attempting to find record with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:22] local.INFO: Record not found, creating new with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (50af9eea-fd7b-4837-a0e9-585ac27849d5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:22, 2026-07-28 19:22:22))  
[2026-07-28 19:22:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:28] local.INFO: Model: Journal  
[2026-07-28 19:22:28] local.INFO: Data received: {"id":"50af9eea-fd7b-4837-a0e9-585ac27849d5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:22:28] local.INFO: ID present? YES  
[2026-07-28 19:22:28] local.INFO: ID value: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:28] local.INFO: ID empty? NO  
[2026-07-28 19:22:28] local.INFO: Attempting to find record with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:28] local.INFO: Record not found, creating new with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (50af9eea-fd7b-4837-a0e9-585ac27849d5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:28, 2026-07-28 19:22:28))  
[2026-07-28 19:22:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:34] local.INFO: Model: Journal  
[2026-07-28 19:22:34] local.INFO: Data received: {"id":"50af9eea-fd7b-4837-a0e9-585ac27849d5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:22:34] local.INFO: ID present? YES  
[2026-07-28 19:22:34] local.INFO: ID value: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:34] local.INFO: ID empty? NO  
[2026-07-28 19:22:34] local.INFO: Attempting to find record with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:34] local.INFO: Record not found, creating new with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (50af9eea-fd7b-4837-a0e9-585ac27849d5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:34, 2026-07-28 19:22:34))  
[2026-07-28 19:22:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:40] local.INFO: Model: Journal  
[2026-07-28 19:22:40] local.INFO: Data received: {"id":"50af9eea-fd7b-4837-a0e9-585ac27849d5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 19:22:40] local.INFO: ID present? YES  
[2026-07-28 19:22:40] local.INFO: ID value: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:40] local.INFO: ID empty? NO  
[2026-07-28 19:22:40] local.INFO: Attempting to find record with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:40] local.INFO: Record not found, creating new with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 19:22:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (50af9eea-fd7b-4837-a0e9-585ac27849d5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:22:40, 2026-07-28 19:22:40))  
[2026-07-28 19:22:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:42] local.INFO: Model: Journal  
[2026-07-28 19:22:42] local.INFO: Data received: {"id":"51c58281-3e98-4ad4-8f6c-e7007cc9b3ec","type":"Debit","amount":"290.00","rate":"127.500000","lcy_amount":"37410.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:22:42] local.INFO: ID present? YES  
[2026-07-28 19:22:42] local.INFO: ID value: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:42] local.INFO: ID empty? NO  
[2026-07-28 19:22:42] local.INFO: Attempting to find record with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:42] local.INFO: Record not found, creating new with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (51c58281-3e98-4ad4-8f6c-e7007cc9b3ec, Debit, 290.00, 127.500000, 37410.000000, Buying TX: Funds into cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:22:42, 2026-07-28 19:22:42))  
[2026-07-28 19:22:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:48] local.INFO: Model: Journal  
[2026-07-28 19:22:48] local.INFO: Data received: {"id":"51c58281-3e98-4ad4-8f6c-e7007cc9b3ec","type":"Debit","amount":"290.00","rate":"127.500000","lcy_amount":"37410.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:22:48] local.INFO: ID present? YES  
[2026-07-28 19:22:48] local.INFO: ID value: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:48] local.INFO: ID empty? NO  
[2026-07-28 19:22:48] local.INFO: Attempting to find record with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:48] local.INFO: Record not found, creating new with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (51c58281-3e98-4ad4-8f6c-e7007cc9b3ec, Debit, 290.00, 127.500000, 37410.000000, Buying TX: Funds into cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:22:48, 2026-07-28 19:22:48))  
[2026-07-28 19:22:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:22:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:22:54] local.INFO: Model: Journal  
[2026-07-28 19:22:54] local.INFO: Data received: {"id":"51c58281-3e98-4ad4-8f6c-e7007cc9b3ec","type":"Debit","amount":"290.00","rate":"127.500000","lcy_amount":"37410.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:22:54] local.INFO: ID present? YES  
[2026-07-28 19:22:54] local.INFO: ID value: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:54] local.INFO: ID empty? NO  
[2026-07-28 19:22:54] local.INFO: Attempting to find record with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:54] local.INFO: Record not found, creating new with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:22:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (51c58281-3e98-4ad4-8f6c-e7007cc9b3ec, Debit, 290.00, 127.500000, 37410.000000, Buying TX: Funds into cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:22:54, 2026-07-28 19:22:54))  
[2026-07-28 19:22:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:01] local.INFO: Model: Journal  
[2026-07-28 19:23:01] local.INFO: Data received: {"id":"51c58281-3e98-4ad4-8f6c-e7007cc9b3ec","type":"Debit","amount":"290.00","rate":"127.500000","lcy_amount":"37410.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 19:23:01] local.INFO: ID present? YES  
[2026-07-28 19:23:01] local.INFO: ID value: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:23:01] local.INFO: ID empty? NO  
[2026-07-28 19:23:01] local.INFO: Attempting to find record with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:23:01] local.INFO: Record not found, creating new with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 19:23:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (51c58281-3e98-4ad4-8f6c-e7007cc9b3ec, Debit, 290.00, 127.500000, 37410.000000, Buying TX: Funds into cashbox, efbbbe8d-bb62-4338-9108-12af159bf67c, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, efbbbe8d-bb62-4338-9108-12af159bf67c, 71fb0471-7101-4317-9dae-49c8f7cc08af, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:01, 2026-07-28 19:23:01))  
[2026-07-28 19:23:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:02] local.INFO: Model: Journal  
[2026-07-28 19:23:02] local.INFO: Data received: {"id":"5203e0e6-2cae-46f2-801c-233c677b914f","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:23:02] local.INFO: ID present? YES  
[2026-07-28 19:23:02] local.INFO: ID value: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:02] local.INFO: ID empty? NO  
[2026-07-28 19:23:02] local.INFO: Attempting to find record with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:02] local.INFO: Record not found, creating new with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5203e0e6-2cae-46f2-801c-233c677b914f, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:02, 2026-07-28 19:23:02))  
[2026-07-28 19:23:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:08] local.INFO: Model: Journal  
[2026-07-28 19:23:08] local.INFO: Data received: {"id":"5203e0e6-2cae-46f2-801c-233c677b914f","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:23:08] local.INFO: ID present? YES  
[2026-07-28 19:23:08] local.INFO: ID value: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:08] local.INFO: ID empty? NO  
[2026-07-28 19:23:08] local.INFO: Attempting to find record with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:08] local.INFO: Record not found, creating new with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5203e0e6-2cae-46f2-801c-233c677b914f, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:08, 2026-07-28 19:23:08))  
[2026-07-28 19:23:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:14] local.INFO: Model: Journal  
[2026-07-28 19:23:14] local.INFO: Data received: {"id":"5203e0e6-2cae-46f2-801c-233c677b914f","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:23:14] local.INFO: ID present? YES  
[2026-07-28 19:23:14] local.INFO: ID value: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:14] local.INFO: ID empty? NO  
[2026-07-28 19:23:14] local.INFO: Attempting to find record with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:14] local.INFO: Record not found, creating new with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5203e0e6-2cae-46f2-801c-233c677b914f, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:14, 2026-07-28 19:23:14))  
[2026-07-28 19:23:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:21] local.INFO: Model: Journal  
[2026-07-28 19:23:21] local.INFO: Data received: {"id":"5203e0e6-2cae-46f2-801c-233c677b914f","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:23:21] local.INFO: ID present? YES  
[2026-07-28 19:23:21] local.INFO: ID value: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:21] local.INFO: ID empty? NO  
[2026-07-28 19:23:21] local.INFO: Attempting to find record with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:21] local.INFO: Record not found, creating new with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 19:23:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5203e0e6-2cae-46f2-801c-233c677b914f, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:21, 2026-07-28 19:23:21))  
[2026-07-28 19:23:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:22] local.INFO: Model: Journal  
[2026-07-28 19:23:22] local.INFO: Data received: {"id":"5262a10c-081f-40e6-aa5c-07ff0951088f","type":"Credit","amount":"14600.00","rate":"146.000000","lcy_amount":"14600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:23:22] local.INFO: ID present? YES  
[2026-07-28 19:23:22] local.INFO: ID value: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:22] local.INFO: ID empty? NO  
[2026-07-28 19:23:22] local.INFO: Attempting to find record with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:22] local.INFO: Record not found, creating new with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5262a10c-081f-40e6-aa5c-07ff0951088f, Credit, 14600.00, 146.000000, 14600.000000, Buying TX: Funds out of cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:23:22, 2026-07-28 19:23:22))  
[2026-07-28 19:23:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:28] local.INFO: Model: Journal  
[2026-07-28 19:23:28] local.INFO: Data received: {"id":"5262a10c-081f-40e6-aa5c-07ff0951088f","type":"Credit","amount":"14600.00","rate":"146.000000","lcy_amount":"14600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:23:28] local.INFO: ID present? YES  
[2026-07-28 19:23:28] local.INFO: ID value: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:28] local.INFO: ID empty? NO  
[2026-07-28 19:23:28] local.INFO: Attempting to find record with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:28] local.INFO: Record not found, creating new with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5262a10c-081f-40e6-aa5c-07ff0951088f, Credit, 14600.00, 146.000000, 14600.000000, Buying TX: Funds out of cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:23:28, 2026-07-28 19:23:28))  
[2026-07-28 19:23:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:34] local.INFO: Model: Journal  
[2026-07-28 19:23:34] local.INFO: Data received: {"id":"5262a10c-081f-40e6-aa5c-07ff0951088f","type":"Credit","amount":"14600.00","rate":"146.000000","lcy_amount":"14600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:23:34] local.INFO: ID present? YES  
[2026-07-28 19:23:34] local.INFO: ID value: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:34] local.INFO: ID empty? NO  
[2026-07-28 19:23:34] local.INFO: Attempting to find record with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:34] local.INFO: Record not found, creating new with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5262a10c-081f-40e6-aa5c-07ff0951088f, Credit, 14600.00, 146.000000, 14600.000000, Buying TX: Funds out of cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:23:34, 2026-07-28 19:23:34))  
[2026-07-28 19:23:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:41] local.INFO: Model: Journal  
[2026-07-28 19:23:41] local.INFO: Data received: {"id":"5262a10c-081f-40e6-aa5c-07ff0951088f","type":"Credit","amount":"14600.00","rate":"146.000000","lcy_amount":"14600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:23:41] local.INFO: ID present? YES  
[2026-07-28 19:23:41] local.INFO: ID value: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:41] local.INFO: ID empty? NO  
[2026-07-28 19:23:41] local.INFO: Attempting to find record with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:41] local.INFO: Record not found, creating new with ID: 5262a10c-081f-40e6-aa5c-07ff0951088f  
[2026-07-28 19:23:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5262a10c-081f-40e6-aa5c-07ff0951088f, Credit, 14600.00, 146.000000, 14600.000000, Buying TX: Funds out of cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:23:41, 2026-07-28 19:23:41))  
[2026-07-28 19:23:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:42] local.INFO: Model: Journal  
[2026-07-28 19:23:42] local.INFO: Data received: {"id":"532c9e6d-13e3-4e71-8a42-e1b817b0150f","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:23:42] local.INFO: ID present? YES  
[2026-07-28 19:23:42] local.INFO: ID value: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:42] local.INFO: ID empty? NO  
[2026-07-28 19:23:42] local.INFO: Attempting to find record with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:42] local.INFO: Record not found, creating new with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (532c9e6d-13e3-4e71-8a42-e1b817b0150f, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:42, 2026-07-28 19:23:42))  
[2026-07-28 19:23:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:48] local.INFO: Model: Journal  
[2026-07-28 19:23:48] local.INFO: Data received: {"id":"532c9e6d-13e3-4e71-8a42-e1b817b0150f","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:23:48] local.INFO: ID present? YES  
[2026-07-28 19:23:48] local.INFO: ID value: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:48] local.INFO: ID empty? NO  
[2026-07-28 19:23:48] local.INFO: Attempting to find record with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:48] local.INFO: Record not found, creating new with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (532c9e6d-13e3-4e71-8a42-e1b817b0150f, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:48, 2026-07-28 19:23:48))  
[2026-07-28 19:23:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:23:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:23:54] local.INFO: Model: Journal  
[2026-07-28 19:23:54] local.INFO: Data received: {"id":"532c9e6d-13e3-4e71-8a42-e1b817b0150f","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:23:54] local.INFO: ID present? YES  
[2026-07-28 19:23:54] local.INFO: ID value: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:54] local.INFO: ID empty? NO  
[2026-07-28 19:23:54] local.INFO: Attempting to find record with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:54] local.INFO: Record not found, creating new with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:23:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (532c9e6d-13e3-4e71-8a42-e1b817b0150f, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:23:54, 2026-07-28 19:23:54))  
[2026-07-28 19:23:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:01] local.INFO: Model: Journal  
[2026-07-28 19:24:01] local.INFO: Data received: {"id":"532c9e6d-13e3-4e71-8a42-e1b817b0150f","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:24:01] local.INFO: ID present? YES  
[2026-07-28 19:24:01] local.INFO: ID value: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:24:01] local.INFO: ID empty? NO  
[2026-07-28 19:24:01] local.INFO: Attempting to find record with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:24:01] local.INFO: Record not found, creating new with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 19:24:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (532c9e6d-13e3-4e71-8a42-e1b817b0150f, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:01, 2026-07-28 19:24:01))  
[2026-07-28 19:24:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:02] local.INFO: Model: Journal  
[2026-07-28 19:24:02] local.INFO: Data received: {"id":"53a689f5-4ac3-459a-8283-c0fde1a27d58","type":"Credit","amount":"154200.00","rate":"128.500000","lcy_amount":"154200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:24:02] local.INFO: ID present? YES  
[2026-07-28 19:24:02] local.INFO: ID value: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:02] local.INFO: ID empty? NO  
[2026-07-28 19:24:02] local.INFO: Attempting to find record with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:02] local.INFO: Record not found, creating new with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (53a689f5-4ac3-459a-8283-c0fde1a27d58, Credit, 154200.00, 128.500000, 154200.000000, Buying TX: Funds out of cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:24:02, 2026-07-28 19:24:02))  
[2026-07-28 19:24:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:08] local.INFO: Model: Journal  
[2026-07-28 19:24:08] local.INFO: Data received: {"id":"53a689f5-4ac3-459a-8283-c0fde1a27d58","type":"Credit","amount":"154200.00","rate":"128.500000","lcy_amount":"154200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:24:08] local.INFO: ID present? YES  
[2026-07-28 19:24:08] local.INFO: ID value: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:08] local.INFO: ID empty? NO  
[2026-07-28 19:24:08] local.INFO: Attempting to find record with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:08] local.INFO: Record not found, creating new with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (53a689f5-4ac3-459a-8283-c0fde1a27d58, Credit, 154200.00, 128.500000, 154200.000000, Buying TX: Funds out of cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:24:08, 2026-07-28 19:24:08))  
[2026-07-28 19:24:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:14] local.INFO: Model: Journal  
[2026-07-28 19:24:14] local.INFO: Data received: {"id":"53a689f5-4ac3-459a-8283-c0fde1a27d58","type":"Credit","amount":"154200.00","rate":"128.500000","lcy_amount":"154200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:24:14] local.INFO: ID present? YES  
[2026-07-28 19:24:14] local.INFO: ID value: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:14] local.INFO: ID empty? NO  
[2026-07-28 19:24:14] local.INFO: Attempting to find record with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:14] local.INFO: Record not found, creating new with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (53a689f5-4ac3-459a-8283-c0fde1a27d58, Credit, 154200.00, 128.500000, 154200.000000, Buying TX: Funds out of cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:24:14, 2026-07-28 19:24:14))  
[2026-07-28 19:24:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:21] local.INFO: Model: Journal  
[2026-07-28 19:24:21] local.INFO: Data received: {"id":"53a689f5-4ac3-459a-8283-c0fde1a27d58","type":"Credit","amount":"154200.00","rate":"128.500000","lcy_amount":"154200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:24:21] local.INFO: ID present? YES  
[2026-07-28 19:24:21] local.INFO: ID value: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:21] local.INFO: ID empty? NO  
[2026-07-28 19:24:21] local.INFO: Attempting to find record with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:21] local.INFO: Record not found, creating new with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 19:24:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (53a689f5-4ac3-459a-8283-c0fde1a27d58, Credit, 154200.00, 128.500000, 154200.000000, Buying TX: Funds out of cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:24:21, 2026-07-28 19:24:21))  
[2026-07-28 19:24:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:22] local.INFO: Model: Journal  
[2026-07-28 19:24:22] local.INFO: Data received: {"id":"544fd1cd-b55d-4e7c-bafb-a72ed17be958","type":"Debit","amount":"100.00","rate":"128.000000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 19:24:22] local.INFO: ID present? YES  
[2026-07-28 19:24:22] local.INFO: ID value: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:22] local.INFO: ID empty? NO  
[2026-07-28 19:24:22] local.INFO: Attempting to find record with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:22] local.INFO: Record not found, creating new with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (544fd1cd-b55d-4e7c-bafb-a72ed17be958, Debit, 100.00, 128.000000, 12900.000000, Buying TX: Funds into cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:22, 2026-07-28 19:24:22))  
[2026-07-28 19:24:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:28] local.INFO: Model: Journal  
[2026-07-28 19:24:28] local.INFO: Data received: {"id":"544fd1cd-b55d-4e7c-bafb-a72ed17be958","type":"Debit","amount":"100.00","rate":"128.000000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 19:24:28] local.INFO: ID present? YES  
[2026-07-28 19:24:28] local.INFO: ID value: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:28] local.INFO: ID empty? NO  
[2026-07-28 19:24:28] local.INFO: Attempting to find record with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:28] local.INFO: Record not found, creating new with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (544fd1cd-b55d-4e7c-bafb-a72ed17be958, Debit, 100.00, 128.000000, 12900.000000, Buying TX: Funds into cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:28, 2026-07-28 19:24:28))  
[2026-07-28 19:24:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:35] local.INFO: Model: Journal  
[2026-07-28 19:24:35] local.INFO: Data received: {"id":"544fd1cd-b55d-4e7c-bafb-a72ed17be958","type":"Debit","amount":"100.00","rate":"128.000000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 19:24:35] local.INFO: ID present? YES  
[2026-07-28 19:24:35] local.INFO: ID value: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:35] local.INFO: ID empty? NO  
[2026-07-28 19:24:35] local.INFO: Attempting to find record with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:35] local.INFO: Record not found, creating new with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (544fd1cd-b55d-4e7c-bafb-a72ed17be958, Debit, 100.00, 128.000000, 12900.000000, Buying TX: Funds into cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:35, 2026-07-28 19:24:35))  
[2026-07-28 19:24:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:41] local.INFO: Model: Journal  
[2026-07-28 19:24:41] local.INFO: Data received: {"id":"544fd1cd-b55d-4e7c-bafb-a72ed17be958","type":"Debit","amount":"100.00","rate":"128.000000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 19:24:41] local.INFO: ID present? YES  
[2026-07-28 19:24:41] local.INFO: ID value: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:41] local.INFO: ID empty? NO  
[2026-07-28 19:24:41] local.INFO: Attempting to find record with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:41] local.INFO: Record not found, creating new with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 19:24:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (544fd1cd-b55d-4e7c-bafb-a72ed17be958, Debit, 100.00, 128.000000, 12900.000000, Buying TX: Funds into cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:41, 2026-07-28 19:24:41))  
[2026-07-28 19:24:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:42] local.INFO: Model: Journal  
[2026-07-28 19:24:42] local.INFO: Data received: {"id":"5501bb96-740a-4df5-92df-8c8fbb7f37b4","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:24:42] local.INFO: ID present? YES  
[2026-07-28 19:24:42] local.INFO: ID value: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:42] local.INFO: ID empty? NO  
[2026-07-28 19:24:42] local.INFO: Attempting to find record with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:42] local.INFO: Record not found, creating new with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5501bb96-740a-4df5-92df-8c8fbb7f37b4, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:42, 2026-07-28 19:24:42))  
[2026-07-28 19:24:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:48] local.INFO: Model: Journal  
[2026-07-28 19:24:48] local.INFO: Data received: {"id":"5501bb96-740a-4df5-92df-8c8fbb7f37b4","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:24:48] local.INFO: ID present? YES  
[2026-07-28 19:24:48] local.INFO: ID value: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:48] local.INFO: ID empty? NO  
[2026-07-28 19:24:48] local.INFO: Attempting to find record with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:48] local.INFO: Record not found, creating new with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5501bb96-740a-4df5-92df-8c8fbb7f37b4, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:48, 2026-07-28 19:24:48))  
[2026-07-28 19:24:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:24:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:24:55] local.INFO: Model: Journal  
[2026-07-28 19:24:55] local.INFO: Data received: {"id":"5501bb96-740a-4df5-92df-8c8fbb7f37b4","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:24:55] local.INFO: ID present? YES  
[2026-07-28 19:24:55] local.INFO: ID value: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:55] local.INFO: ID empty? NO  
[2026-07-28 19:24:55] local.INFO: Attempting to find record with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:55] local.INFO: Record not found, creating new with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:24:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5501bb96-740a-4df5-92df-8c8fbb7f37b4, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:24:55, 2026-07-28 19:24:55))  
[2026-07-28 19:24:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:01] local.INFO: Model: Journal  
[2026-07-28 19:25:01] local.INFO: Data received: {"id":"5501bb96-740a-4df5-92df-8c8fbb7f37b4","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:25:01] local.INFO: ID present? YES  
[2026-07-28 19:25:01] local.INFO: ID value: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:25:01] local.INFO: ID empty? NO  
[2026-07-28 19:25:01] local.INFO: Attempting to find record with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:25:01] local.INFO: Record not found, creating new with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 19:25:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5501bb96-740a-4df5-92df-8c8fbb7f37b4, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:25:01, 2026-07-28 19:25:01))  
[2026-07-28 19:25:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:02] local.INFO: Model: Journal  
[2026-07-28 19:25:02] local.INFO: Data received: {"id":"562a916c-59cd-4f26-9834-9f429446e1c6","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3592-2026","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:25:02] local.INFO: ID present? YES  
[2026-07-28 19:25:02] local.INFO: ID value: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:02] local.INFO: ID empty? NO  
[2026-07-28 19:25:02] local.INFO: Attempting to find record with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:02] local.INFO: Record not found, creating new with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562a916c-59cd-4f26-9834-9f429446e1c6, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3592-2026, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:25:02, 2026-07-28 19:25:02))  
[2026-07-28 19:25:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:09] local.INFO: Model: Journal  
[2026-07-28 19:25:09] local.INFO: Data received: {"id":"562a916c-59cd-4f26-9834-9f429446e1c6","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3592-2026","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:25:09] local.INFO: ID present? YES  
[2026-07-28 19:25:09] local.INFO: ID value: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:09] local.INFO: ID empty? NO  
[2026-07-28 19:25:09] local.INFO: Attempting to find record with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:09] local.INFO: Record not found, creating new with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562a916c-59cd-4f26-9834-9f429446e1c6, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3592-2026, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:25:09, 2026-07-28 19:25:09))  
[2026-07-28 19:25:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:15] local.INFO: Model: Journal  
[2026-07-28 19:25:15] local.INFO: Data received: {"id":"562a916c-59cd-4f26-9834-9f429446e1c6","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3592-2026","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:25:15] local.INFO: ID present? YES  
[2026-07-28 19:25:15] local.INFO: ID value: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:15] local.INFO: ID empty? NO  
[2026-07-28 19:25:15] local.INFO: Attempting to find record with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:15] local.INFO: Record not found, creating new with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562a916c-59cd-4f26-9834-9f429446e1c6, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3592-2026, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:25:15, 2026-07-28 19:25:15))  
[2026-07-28 19:25:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:21] local.INFO: Model: Journal  
[2026-07-28 19:25:21] local.INFO: Data received: {"id":"562a916c-59cd-4f26-9834-9f429446e1c6","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3592-2026","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:25:21] local.INFO: ID present? YES  
[2026-07-28 19:25:21] local.INFO: ID value: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:21] local.INFO: ID empty? NO  
[2026-07-28 19:25:21] local.INFO: Attempting to find record with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:21] local.INFO: Record not found, creating new with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 19:25:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562a916c-59cd-4f26-9834-9f429446e1c6, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3592-2026, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:25:21, 2026-07-28 19:25:21))  
[2026-07-28 19:25:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:22] local.INFO: Model: Journal  
[2026-07-28 19:25:22] local.INFO: Data received: {"id":"562dcef1-abe1-40df-80b1-dc5fbca94a2b","type":"Debit","amount":"400.00","rate":"128.000000","lcy_amount":"51600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:25:22] local.INFO: ID present? YES  
[2026-07-28 19:25:22] local.INFO: ID value: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:22] local.INFO: ID empty? NO  
[2026-07-28 19:25:22] local.INFO: Attempting to find record with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:22] local.INFO: Record not found, creating new with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562dcef1-abe1-40df-80b1-dc5fbca94a2b, Debit, 400.00, 128.000000, 51600.000000, Buying TX: Funds into cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:25:22, 2026-07-28 19:25:22))  
[2026-07-28 19:25:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:29] local.INFO: Model: Journal  
[2026-07-28 19:25:29] local.INFO: Data received: {"id":"562dcef1-abe1-40df-80b1-dc5fbca94a2b","type":"Debit","amount":"400.00","rate":"128.000000","lcy_amount":"51600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:25:29] local.INFO: ID present? YES  
[2026-07-28 19:25:29] local.INFO: ID value: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:29] local.INFO: ID empty? NO  
[2026-07-28 19:25:29] local.INFO: Attempting to find record with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:29] local.INFO: Record not found, creating new with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562dcef1-abe1-40df-80b1-dc5fbca94a2b, Debit, 400.00, 128.000000, 51600.000000, Buying TX: Funds into cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:25:29, 2026-07-28 19:25:29))  
[2026-07-28 19:25:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:35] local.INFO: Model: Journal  
[2026-07-28 19:25:35] local.INFO: Data received: {"id":"562dcef1-abe1-40df-80b1-dc5fbca94a2b","type":"Debit","amount":"400.00","rate":"128.000000","lcy_amount":"51600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:25:35] local.INFO: ID present? YES  
[2026-07-28 19:25:35] local.INFO: ID value: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:35] local.INFO: ID empty? NO  
[2026-07-28 19:25:35] local.INFO: Attempting to find record with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:35] local.INFO: Record not found, creating new with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562dcef1-abe1-40df-80b1-dc5fbca94a2b, Debit, 400.00, 128.000000, 51600.000000, Buying TX: Funds into cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:25:35, 2026-07-28 19:25:35))  
[2026-07-28 19:25:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:41] local.INFO: Model: Journal  
[2026-07-28 19:25:41] local.INFO: Data received: {"id":"562dcef1-abe1-40df-80b1-dc5fbca94a2b","type":"Debit","amount":"400.00","rate":"128.000000","lcy_amount":"51600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:25:41] local.INFO: ID present? YES  
[2026-07-28 19:25:41] local.INFO: ID value: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:41] local.INFO: ID empty? NO  
[2026-07-28 19:25:41] local.INFO: Attempting to find record with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:41] local.INFO: Record not found, creating new with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 19:25:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (562dcef1-abe1-40df-80b1-dc5fbca94a2b, Debit, 400.00, 128.000000, 51600.000000, Buying TX: Funds into cashbox, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:25:41, 2026-07-28 19:25:41))  
[2026-07-28 19:25:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:42] local.INFO: Model: Journal  
[2026-07-28 19:25:42] local.INFO: Data received: {"id":"573f0050-40d2-45d5-a01c-d887bff6c85d","type":"Credit","amount":"180.00","rate":"127.500000","lcy_amount":"180.000000","narrative":"Gain on TR-3553-2026","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:25:42] local.INFO: ID present? YES  
[2026-07-28 19:25:42] local.INFO: ID value: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:42] local.INFO: ID empty? NO  
[2026-07-28 19:25:42] local.INFO: Attempting to find record with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:42] local.INFO: Record not found, creating new with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (573f0050-40d2-45d5-a01c-d887bff6c85d, Credit, 180.00, 127.500000, 180.000000, Gain on TR-3553-2026, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:25:42, 2026-07-28 19:25:42))  
[2026-07-28 19:25:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:49] local.INFO: Model: Journal  
[2026-07-28 19:25:49] local.INFO: Data received: {"id":"573f0050-40d2-45d5-a01c-d887bff6c85d","type":"Credit","amount":"180.00","rate":"127.500000","lcy_amount":"180.000000","narrative":"Gain on TR-3553-2026","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:25:49] local.INFO: ID present? YES  
[2026-07-28 19:25:49] local.INFO: ID value: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:49] local.INFO: ID empty? NO  
[2026-07-28 19:25:49] local.INFO: Attempting to find record with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:49] local.INFO: Record not found, creating new with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (573f0050-40d2-45d5-a01c-d887bff6c85d, Credit, 180.00, 127.500000, 180.000000, Gain on TR-3553-2026, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:25:49, 2026-07-28 19:25:49))  
[2026-07-28 19:25:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:25:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:25:55] local.INFO: Model: Journal  
[2026-07-28 19:25:55] local.INFO: Data received: {"id":"573f0050-40d2-45d5-a01c-d887bff6c85d","type":"Credit","amount":"180.00","rate":"127.500000","lcy_amount":"180.000000","narrative":"Gain on TR-3553-2026","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:25:55] local.INFO: ID present? YES  
[2026-07-28 19:25:55] local.INFO: ID value: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:55] local.INFO: ID empty? NO  
[2026-07-28 19:25:55] local.INFO: Attempting to find record with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:55] local.INFO: Record not found, creating new with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:25:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (573f0050-40d2-45d5-a01c-d887bff6c85d, Credit, 180.00, 127.500000, 180.000000, Gain on TR-3553-2026, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:25:55, 2026-07-28 19:25:55))  
[2026-07-28 19:25:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:01] local.INFO: Model: Journal  
[2026-07-28 19:26:01] local.INFO: Data received: {"id":"573f0050-40d2-45d5-a01c-d887bff6c85d","type":"Credit","amount":"180.00","rate":"127.500000","lcy_amount":"180.000000","narrative":"Gain on TR-3553-2026","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:26:01] local.INFO: ID present? YES  
[2026-07-28 19:26:01] local.INFO: ID value: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:26:01] local.INFO: ID empty? NO  
[2026-07-28 19:26:01] local.INFO: Attempting to find record with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:26:01] local.INFO: Record not found, creating new with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 19:26:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (573f0050-40d2-45d5-a01c-d887bff6c85d, Credit, 180.00, 127.500000, 180.000000, Gain on TR-3553-2026, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:26:01, 2026-07-28 19:26:01))  
[2026-07-28 19:26:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:02] local.INFO: Model: Journal  
[2026-07-28 19:26:02] local.INFO: Data received: {"id":"59300551-4688-4b28-b392-2620761374bf","type":"Credit","amount":"6760.00","rate":"169.000000","lcy_amount":"6760.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:26:02] local.INFO: ID present? YES  
[2026-07-28 19:26:02] local.INFO: ID value: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:02] local.INFO: ID empty? NO  
[2026-07-28 19:26:02] local.INFO: Attempting to find record with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:02] local.INFO: Record not found, creating new with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (59300551-4688-4b28-b392-2620761374bf, Credit, 6760.00, 169.000000, 6760.000000, Buying TX: Funds out of cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:26:02, 2026-07-28 19:26:02))  
[2026-07-28 19:26:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:09] local.INFO: Model: Journal  
[2026-07-28 19:26:09] local.INFO: Data received: {"id":"59300551-4688-4b28-b392-2620761374bf","type":"Credit","amount":"6760.00","rate":"169.000000","lcy_amount":"6760.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:26:09] local.INFO: ID present? YES  
[2026-07-28 19:26:09] local.INFO: ID value: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:09] local.INFO: ID empty? NO  
[2026-07-28 19:26:09] local.INFO: Attempting to find record with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:09] local.INFO: Record not found, creating new with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (59300551-4688-4b28-b392-2620761374bf, Credit, 6760.00, 169.000000, 6760.000000, Buying TX: Funds out of cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:26:09, 2026-07-28 19:26:09))  
[2026-07-28 19:26:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:15] local.INFO: Model: Journal  
[2026-07-28 19:26:15] local.INFO: Data received: {"id":"59300551-4688-4b28-b392-2620761374bf","type":"Credit","amount":"6760.00","rate":"169.000000","lcy_amount":"6760.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:26:15] local.INFO: ID present? YES  
[2026-07-28 19:26:15] local.INFO: ID value: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:15] local.INFO: ID empty? NO  
[2026-07-28 19:26:15] local.INFO: Attempting to find record with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:15] local.INFO: Record not found, creating new with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (59300551-4688-4b28-b392-2620761374bf, Credit, 6760.00, 169.000000, 6760.000000, Buying TX: Funds out of cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:26:15, 2026-07-28 19:26:15))  
[2026-07-28 19:26:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:21] local.INFO: Model: Journal  
[2026-07-28 19:26:21] local.INFO: Data received: {"id":"59300551-4688-4b28-b392-2620761374bf","type":"Credit","amount":"6760.00","rate":"169.000000","lcy_amount":"6760.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:26:21] local.INFO: ID present? YES  
[2026-07-28 19:26:21] local.INFO: ID value: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:21] local.INFO: ID empty? NO  
[2026-07-28 19:26:21] local.INFO: Attempting to find record with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:21] local.INFO: Record not found, creating new with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 19:26:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (59300551-4688-4b28-b392-2620761374bf, Credit, 6760.00, 169.000000, 6760.000000, Buying TX: Funds out of cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:26:21, 2026-07-28 19:26:21))  
[2026-07-28 19:26:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:22] local.INFO: Model: Journal  
[2026-07-28 19:26:22] local.INFO: Data received: {"id":"5ad0c363-fc52-4ee5-aeda-4db6a5b738bb","type":"Debit","amount":"10.00","rate":"125.000000","lcy_amount":"1290.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:26:22] local.INFO: ID present? YES  
[2026-07-28 19:26:22] local.INFO: ID value: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:22] local.INFO: ID empty? NO  
[2026-07-28 19:26:22] local.INFO: Attempting to find record with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:22] local.INFO: Record not found, creating new with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5ad0c363-fc52-4ee5-aeda-4db6a5b738bb, Debit, 10.00, 125.000000, 1290.000000, Buying TX: Funds into cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:26:22, 2026-07-28 19:26:22))  
[2026-07-28 19:26:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:29] local.INFO: Model: Journal  
[2026-07-28 19:26:29] local.INFO: Data received: {"id":"5ad0c363-fc52-4ee5-aeda-4db6a5b738bb","type":"Debit","amount":"10.00","rate":"125.000000","lcy_amount":"1290.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:26:29] local.INFO: ID present? YES  
[2026-07-28 19:26:29] local.INFO: ID value: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:29] local.INFO: ID empty? NO  
[2026-07-28 19:26:29] local.INFO: Attempting to find record with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:29] local.INFO: Record not found, creating new with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5ad0c363-fc52-4ee5-aeda-4db6a5b738bb, Debit, 10.00, 125.000000, 1290.000000, Buying TX: Funds into cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:26:29, 2026-07-28 19:26:29))  
[2026-07-28 19:26:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:35] local.INFO: Model: Journal  
[2026-07-28 19:26:35] local.INFO: Data received: {"id":"5ad0c363-fc52-4ee5-aeda-4db6a5b738bb","type":"Debit","amount":"10.00","rate":"125.000000","lcy_amount":"1290.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:26:35] local.INFO: ID present? YES  
[2026-07-28 19:26:35] local.INFO: ID value: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:35] local.INFO: ID empty? NO  
[2026-07-28 19:26:35] local.INFO: Attempting to find record with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:35] local.INFO: Record not found, creating new with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5ad0c363-fc52-4ee5-aeda-4db6a5b738bb, Debit, 10.00, 125.000000, 1290.000000, Buying TX: Funds into cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:26:35, 2026-07-28 19:26:35))  
[2026-07-28 19:26:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:41] local.INFO: Model: Journal  
[2026-07-28 19:26:41] local.INFO: Data received: {"id":"5ad0c363-fc52-4ee5-aeda-4db6a5b738bb","type":"Debit","amount":"10.00","rate":"125.000000","lcy_amount":"1290.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:26:41] local.INFO: ID present? YES  
[2026-07-28 19:26:41] local.INFO: ID value: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:41] local.INFO: ID empty? NO  
[2026-07-28 19:26:41] local.INFO: Attempting to find record with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:41] local.INFO: Record not found, creating new with ID: 5ad0c363-fc52-4ee5-aeda-4db6a5b738bb  
[2026-07-28 19:26:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5ad0c363-fc52-4ee5-aeda-4db6a5b738bb, Debit, 10.00, 125.000000, 1290.000000, Buying TX: Funds into cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:26:41, 2026-07-28 19:26:41))  
[2026-07-28 19:26:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:42] local.INFO: Model: Journal  
[2026-07-28 19:26:42] local.INFO: Data received: {"id":"5d6ca16d-d005-41aa-856b-b064676f0b62","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:26:42] local.INFO: ID present? YES  
[2026-07-28 19:26:42] local.INFO: ID value: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:42] local.INFO: ID empty? NO  
[2026-07-28 19:26:42] local.INFO: Attempting to find record with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:42] local.INFO: Record not found, creating new with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5d6ca16d-d005-41aa-856b-b064676f0b62, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:26:42, 2026-07-28 19:26:42))  
[2026-07-28 19:26:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:49] local.INFO: Model: Journal  
[2026-07-28 19:26:49] local.INFO: Data received: {"id":"5d6ca16d-d005-41aa-856b-b064676f0b62","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:26:49] local.INFO: ID present? YES  
[2026-07-28 19:26:49] local.INFO: ID value: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:49] local.INFO: ID empty? NO  
[2026-07-28 19:26:49] local.INFO: Attempting to find record with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:49] local.INFO: Record not found, creating new with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5d6ca16d-d005-41aa-856b-b064676f0b62, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:26:49, 2026-07-28 19:26:49))  
[2026-07-28 19:26:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:26:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:26:55] local.INFO: Model: Journal  
[2026-07-28 19:26:55] local.INFO: Data received: {"id":"5d6ca16d-d005-41aa-856b-b064676f0b62","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:26:55] local.INFO: ID present? YES  
[2026-07-28 19:26:55] local.INFO: ID value: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:55] local.INFO: ID empty? NO  
[2026-07-28 19:26:55] local.INFO: Attempting to find record with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:55] local.INFO: Record not found, creating new with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:26:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5d6ca16d-d005-41aa-856b-b064676f0b62, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:26:55, 2026-07-28 19:26:55))  
[2026-07-28 19:26:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:01] local.INFO: Model: Journal  
[2026-07-28 19:27:01] local.INFO: Data received: {"id":"5d6ca16d-d005-41aa-856b-b064676f0b62","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:27:01] local.INFO: ID present? YES  
[2026-07-28 19:27:01] local.INFO: ID value: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:27:01] local.INFO: ID empty? NO  
[2026-07-28 19:27:01] local.INFO: Attempting to find record with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:27:01] local.INFO: Record not found, creating new with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 19:27:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5d6ca16d-d005-41aa-856b-b064676f0b62, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:27:01, 2026-07-28 19:27:01))  
[2026-07-28 19:27:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:03] local.INFO: Model: Journal  
[2026-07-28 19:27:03] local.INFO: Data received: {"id":"5dacc382-6b5e-4600-91f8-6e4140a0cda5","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:27:03] local.INFO: ID present? YES  
[2026-07-28 19:27:03] local.INFO: ID value: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:03] local.INFO: ID empty? NO  
[2026-07-28 19:27:03] local.INFO: Attempting to find record with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:03] local.INFO: Record not found, creating new with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dacc382-6b5e-4600-91f8-6e4140a0cda5, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:03, 2026-07-28 19:27:03))  
[2026-07-28 19:27:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:09] local.INFO: Model: Journal  
[2026-07-28 19:27:09] local.INFO: Data received: {"id":"5dacc382-6b5e-4600-91f8-6e4140a0cda5","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:27:09] local.INFO: ID present? YES  
[2026-07-28 19:27:09] local.INFO: ID value: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:09] local.INFO: ID empty? NO  
[2026-07-28 19:27:09] local.INFO: Attempting to find record with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:09] local.INFO: Record not found, creating new with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dacc382-6b5e-4600-91f8-6e4140a0cda5, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:09, 2026-07-28 19:27:09))  
[2026-07-28 19:27:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:15] local.INFO: Model: Journal  
[2026-07-28 19:27:15] local.INFO: Data received: {"id":"5dacc382-6b5e-4600-91f8-6e4140a0cda5","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:27:15] local.INFO: ID present? YES  
[2026-07-28 19:27:15] local.INFO: ID value: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:15] local.INFO: ID empty? NO  
[2026-07-28 19:27:15] local.INFO: Attempting to find record with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:15] local.INFO: Record not found, creating new with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dacc382-6b5e-4600-91f8-6e4140a0cda5, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:15, 2026-07-28 19:27:15))  
[2026-07-28 19:27:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:21] local.INFO: Model: Journal  
[2026-07-28 19:27:21] local.INFO: Data received: {"id":"5dacc382-6b5e-4600-91f8-6e4140a0cda5","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:27:21] local.INFO: ID present? YES  
[2026-07-28 19:27:21] local.INFO: ID value: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:21] local.INFO: ID empty? NO  
[2026-07-28 19:27:21] local.INFO: Attempting to find record with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:21] local.INFO: Record not found, creating new with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 19:27:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dacc382-6b5e-4600-91f8-6e4140a0cda5, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:21, 2026-07-28 19:27:21))  
[2026-07-28 19:27:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:23] local.INFO: Model: Journal  
[2026-07-28 19:27:23] local.INFO: Data received: {"id":"5dbcfcea-f77f-431c-9420-18a615d88c69","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3541-2026","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:27:23] local.INFO: ID present? YES  
[2026-07-28 19:27:23] local.INFO: ID value: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:23] local.INFO: ID empty? NO  
[2026-07-28 19:27:23] local.INFO: Attempting to find record with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:23] local.INFO: Record not found, creating new with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dbcfcea-f77f-431c-9420-18a615d88c69, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3541-2026, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:23, 2026-07-28 19:27:23))  
[2026-07-28 19:27:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:29] local.INFO: Model: Journal  
[2026-07-28 19:27:29] local.INFO: Data received: {"id":"5dbcfcea-f77f-431c-9420-18a615d88c69","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3541-2026","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:27:29] local.INFO: ID present? YES  
[2026-07-28 19:27:29] local.INFO: ID value: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:29] local.INFO: ID empty? NO  
[2026-07-28 19:27:29] local.INFO: Attempting to find record with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:29] local.INFO: Record not found, creating new with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dbcfcea-f77f-431c-9420-18a615d88c69, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3541-2026, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:29, 2026-07-28 19:27:29))  
[2026-07-28 19:27:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:35] local.INFO: Model: Journal  
[2026-07-28 19:27:35] local.INFO: Data received: {"id":"5dbcfcea-f77f-431c-9420-18a615d88c69","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3541-2026","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:27:35] local.INFO: ID present? YES  
[2026-07-28 19:27:35] local.INFO: ID value: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:35] local.INFO: ID empty? NO  
[2026-07-28 19:27:35] local.INFO: Attempting to find record with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:35] local.INFO: Record not found, creating new with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dbcfcea-f77f-431c-9420-18a615d88c69, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3541-2026, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:35, 2026-07-28 19:27:35))  
[2026-07-28 19:27:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:41] local.INFO: Model: Journal  
[2026-07-28 19:27:41] local.INFO: Data received: {"id":"5dbcfcea-f77f-431c-9420-18a615d88c69","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3541-2026","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:27:41] local.INFO: ID present? YES  
[2026-07-28 19:27:41] local.INFO: ID value: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:41] local.INFO: ID empty? NO  
[2026-07-28 19:27:41] local.INFO: Attempting to find record with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:41] local.INFO: Record not found, creating new with ID: 5dbcfcea-f77f-431c-9420-18a615d88c69  
[2026-07-28 19:27:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5dbcfcea-f77f-431c-9420-18a615d88c69, Credit, 1860.00, 145.000000, 1860.000000, Gain on TR-3541-2026, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:27:41, 2026-07-28 19:27:41))  
[2026-07-28 19:27:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:43] local.INFO: Model: Journal  
[2026-07-28 19:27:43] local.INFO: Data received: {"id":"5e64d274-c8d3-4ba4-a931-3d3494d3e3b4","type":"Debit","amount":"120000.00","rate":"0.040000","lcy_amount":"7200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:27:43] local.INFO: ID present? YES  
[2026-07-28 19:27:43] local.INFO: ID value: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:43] local.INFO: ID empty? NO  
[2026-07-28 19:27:43] local.INFO: Attempting to find record with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:43] local.INFO: Record not found, creating new with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5e64d274-c8d3-4ba4-a931-3d3494d3e3b4, Debit, 120000.00, 0.040000, 7200.000000, Buying TX: Funds into cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8df29516-125f-421a-9545-6cf63ea60c7c, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, Posted, 2026-07-28 19:27:43, 2026-07-28 19:27:43))  
[2026-07-28 19:27:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:49] local.INFO: Model: Journal  
[2026-07-28 19:27:49] local.INFO: Data received: {"id":"5e64d274-c8d3-4ba4-a931-3d3494d3e3b4","type":"Debit","amount":"120000.00","rate":"0.040000","lcy_amount":"7200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:27:49] local.INFO: ID present? YES  
[2026-07-28 19:27:49] local.INFO: ID value: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:49] local.INFO: ID empty? NO  
[2026-07-28 19:27:49] local.INFO: Attempting to find record with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:49] local.INFO: Record not found, creating new with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5e64d274-c8d3-4ba4-a931-3d3494d3e3b4, Debit, 120000.00, 0.040000, 7200.000000, Buying TX: Funds into cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8df29516-125f-421a-9545-6cf63ea60c7c, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, Posted, 2026-07-28 19:27:49, 2026-07-28 19:27:49))  
[2026-07-28 19:27:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:27:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:27:55] local.INFO: Model: Journal  
[2026-07-28 19:27:55] local.INFO: Data received: {"id":"5e64d274-c8d3-4ba4-a931-3d3494d3e3b4","type":"Debit","amount":"120000.00","rate":"0.040000","lcy_amount":"7200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:27:55] local.INFO: ID present? YES  
[2026-07-28 19:27:55] local.INFO: ID value: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:55] local.INFO: ID empty? NO  
[2026-07-28 19:27:55] local.INFO: Attempting to find record with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:55] local.INFO: Record not found, creating new with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:27:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5e64d274-c8d3-4ba4-a931-3d3494d3e3b4, Debit, 120000.00, 0.040000, 7200.000000, Buying TX: Funds into cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8df29516-125f-421a-9545-6cf63ea60c7c, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, Posted, 2026-07-28 19:27:55, 2026-07-28 19:27:55))  
[2026-07-28 19:27:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:01] local.INFO: Model: Journal  
[2026-07-28 19:28:01] local.INFO: Data received: {"id":"5e64d274-c8d3-4ba4-a931-3d3494d3e3b4","type":"Debit","amount":"120000.00","rate":"0.040000","lcy_amount":"7200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:28:01] local.INFO: ID present? YES  
[2026-07-28 19:28:01] local.INFO: ID value: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:28:01] local.INFO: ID empty? NO  
[2026-07-28 19:28:01] local.INFO: Attempting to find record with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:28:01] local.INFO: Record not found, creating new with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 19:28:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (5e64d274-c8d3-4ba4-a931-3d3494d3e3b4, Debit, 120000.00, 0.040000, 7200.000000, Buying TX: Funds into cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8df29516-125f-421a-9545-6cf63ea60c7c, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 48891bea-a095-48e8-8ce9-bdd3e5c5696e, Posted, 2026-07-28 19:28:01, 2026-07-28 19:28:01))  
[2026-07-28 19:28:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:03] local.INFO: Model: Journal  
[2026-07-28 19:28:03] local.INFO: Data received: {"id":"5eb94b6d-59ac-4116-8218-ce8e53cec021","type":"Debit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:28:37","updated_at":"2026-07-28 17:28:38"} 
[2026-07-28 19:28:03] local.INFO: ID present? YES  
[2026-07-28 19:28:03] local.INFO: ID value: 5eb94b6d-59ac-4116-8218-ce8e53cec021  
[2026-07-28 19:28:03] local.INFO: ID empty? NO  
[2026-07-28 19:28:03] local.INFO: Attempting to find record with ID: 5eb94b6d-59ac-4116-8218-ce8e53cec021  
[2026-07-28 19:28:03] local.INFO: Record not found, creating new with ID: 5eb94b6d-59ac-4116-8218-ce8e53cec021  
[2026-07-28 19:28:03] local.INFO: Created record: {"id":"5eb94b6d-59ac-4116-8218-ce8e53cec021","type":"Debit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:28:03.000000Z","created_at":"2026-07-28T16:28:03.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-1921898.0,"debit_total":3759990.0,"credit_total":"5681888.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T16:20:00.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 19:28:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:04] local.INFO: Model: Journal  
[2026-07-28 19:28:04] local.INFO: Data received: {"id":"64bc826f-8267-487b-b415-8e25bba47067","type":"Credit","amount":"2000.00","rate":"129.400000","lcy_amount":"2000.000000","narrative":"Gain on TR-3556-2026","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:28:04] local.INFO: ID present? YES  
[2026-07-28 19:28:04] local.INFO: ID value: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:04] local.INFO: ID empty? NO  
[2026-07-28 19:28:04] local.INFO: Attempting to find record with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:04] local.INFO: Record not found, creating new with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (64bc826f-8267-487b-b415-8e25bba47067, Credit, 2000.00, 129.400000, 2000.000000, Gain on TR-3556-2026, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:04, 2026-07-28 19:28:04))  
[2026-07-28 19:28:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:10] local.INFO: Model: Journal  
[2026-07-28 19:28:10] local.INFO: Data received: {"id":"64bc826f-8267-487b-b415-8e25bba47067","type":"Credit","amount":"2000.00","rate":"129.400000","lcy_amount":"2000.000000","narrative":"Gain on TR-3556-2026","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:28:10] local.INFO: ID present? YES  
[2026-07-28 19:28:10] local.INFO: ID value: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:10] local.INFO: ID empty? NO  
[2026-07-28 19:28:10] local.INFO: Attempting to find record with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:10] local.INFO: Record not found, creating new with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (64bc826f-8267-487b-b415-8e25bba47067, Credit, 2000.00, 129.400000, 2000.000000, Gain on TR-3556-2026, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:10, 2026-07-28 19:28:10))  
[2026-07-28 19:28:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:16] local.INFO: Model: Journal  
[2026-07-28 19:28:16] local.INFO: Data received: {"id":"64bc826f-8267-487b-b415-8e25bba47067","type":"Credit","amount":"2000.00","rate":"129.400000","lcy_amount":"2000.000000","narrative":"Gain on TR-3556-2026","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:28:16] local.INFO: ID present? YES  
[2026-07-28 19:28:16] local.INFO: ID value: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:16] local.INFO: ID empty? NO  
[2026-07-28 19:28:16] local.INFO: Attempting to find record with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:16] local.INFO: Record not found, creating new with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (64bc826f-8267-487b-b415-8e25bba47067, Credit, 2000.00, 129.400000, 2000.000000, Gain on TR-3556-2026, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:16, 2026-07-28 19:28:16))  
[2026-07-28 19:28:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:23] local.INFO: Model: Journal  
[2026-07-28 19:28:23] local.INFO: Data received: {"id":"64bc826f-8267-487b-b415-8e25bba47067","type":"Credit","amount":"2000.00","rate":"129.400000","lcy_amount":"2000.000000","narrative":"Gain on TR-3556-2026","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:28:23] local.INFO: ID present? YES  
[2026-07-28 19:28:23] local.INFO: ID value: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:23] local.INFO: ID empty? NO  
[2026-07-28 19:28:23] local.INFO: Attempting to find record with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:23] local.INFO: Record not found, creating new with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 19:28:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (64bc826f-8267-487b-b415-8e25bba47067, Credit, 2000.00, 129.400000, 2000.000000, Gain on TR-3556-2026, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:23, 2026-07-28 19:28:23))  
[2026-07-28 19:28:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:24] local.INFO: Model: Journal  
[2026-07-28 19:28:24] local.INFO: Data received: {"id":"664779cb-040e-4546-9aff-21691784903c","type":"Credit","amount":"4800.00","rate":"0.040000","lcy_amount":"4800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:28:24] local.INFO: ID present? YES  
[2026-07-28 19:28:24] local.INFO: ID value: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:24] local.INFO: ID empty? NO  
[2026-07-28 19:28:24] local.INFO: Attempting to find record with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:24] local.INFO: Record not found, creating new with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (664779cb-040e-4546-9aff-21691784903c, Credit, 4800.00, 0.040000, 4800.000000, Buying TX: Funds out of cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:24, 2026-07-28 19:28:24))  
[2026-07-28 19:28:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:30] local.INFO: Model: Journal  
[2026-07-28 19:28:30] local.INFO: Data received: {"id":"664779cb-040e-4546-9aff-21691784903c","type":"Credit","amount":"4800.00","rate":"0.040000","lcy_amount":"4800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:28:30] local.INFO: ID present? YES  
[2026-07-28 19:28:30] local.INFO: ID value: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:30] local.INFO: ID empty? NO  
[2026-07-28 19:28:30] local.INFO: Attempting to find record with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:30] local.INFO: Record not found, creating new with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (664779cb-040e-4546-9aff-21691784903c, Credit, 4800.00, 0.040000, 4800.000000, Buying TX: Funds out of cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:30, 2026-07-28 19:28:30))  
[2026-07-28 19:28:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:36] local.INFO: Model: Journal  
[2026-07-28 19:28:36] local.INFO: Data received: {"id":"664779cb-040e-4546-9aff-21691784903c","type":"Credit","amount":"4800.00","rate":"0.040000","lcy_amount":"4800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:28:36] local.INFO: ID present? YES  
[2026-07-28 19:28:36] local.INFO: ID value: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:36] local.INFO: ID empty? NO  
[2026-07-28 19:28:36] local.INFO: Attempting to find record with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:36] local.INFO: Record not found, creating new with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (664779cb-040e-4546-9aff-21691784903c, Credit, 4800.00, 0.040000, 4800.000000, Buying TX: Funds out of cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:36, 2026-07-28 19:28:36))  
[2026-07-28 19:28:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:43] local.INFO: Model: Journal  
[2026-07-28 19:28:43] local.INFO: Data received: {"id":"664779cb-040e-4546-9aff-21691784903c","type":"Credit","amount":"4800.00","rate":"0.040000","lcy_amount":"4800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 19:28:43] local.INFO: ID present? YES  
[2026-07-28 19:28:43] local.INFO: ID value: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:43] local.INFO: ID empty? NO  
[2026-07-28 19:28:43] local.INFO: Attempting to find record with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:43] local.INFO: Record not found, creating new with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 19:28:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (664779cb-040e-4546-9aff-21691784903c, Credit, 4800.00, 0.040000, 4800.000000, Buying TX: Funds out of cashbox, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:43, 2026-07-28 19:28:43))  
[2026-07-28 19:28:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:44] local.INFO: Model: Journal  
[2026-07-28 19:28:44] local.INFO: Data received: {"id":"672769fa-359a-45b1-a708-53bc7a4c0cf0","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:28:44] local.INFO: ID present? YES  
[2026-07-28 19:28:44] local.INFO: ID value: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:44] local.INFO: ID empty? NO  
[2026-07-28 19:28:44] local.INFO: Attempting to find record with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:44] local.INFO: Record not found, creating new with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (672769fa-359a-45b1-a708-53bc7a4c0cf0, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:44, 2026-07-28 19:28:44))  
[2026-07-28 19:28:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:50] local.INFO: Model: Journal  
[2026-07-28 19:28:50] local.INFO: Data received: {"id":"672769fa-359a-45b1-a708-53bc7a4c0cf0","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:28:50] local.INFO: ID present? YES  
[2026-07-28 19:28:50] local.INFO: ID value: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:50] local.INFO: ID empty? NO  
[2026-07-28 19:28:50] local.INFO: Attempting to find record with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:50] local.INFO: Record not found, creating new with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (672769fa-359a-45b1-a708-53bc7a4c0cf0, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:50, 2026-07-28 19:28:50))  
[2026-07-28 19:28:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:28:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:28:56] local.INFO: Model: Journal  
[2026-07-28 19:28:56] local.INFO: Data received: {"id":"672769fa-359a-45b1-a708-53bc7a4c0cf0","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:28:56] local.INFO: ID present? YES  
[2026-07-28 19:28:56] local.INFO: ID value: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:56] local.INFO: ID empty? NO  
[2026-07-28 19:28:56] local.INFO: Attempting to find record with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:56] local.INFO: Record not found, creating new with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:28:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (672769fa-359a-45b1-a708-53bc7a4c0cf0, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:28:56, 2026-07-28 19:28:56))  
[2026-07-28 19:28:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:03] local.INFO: Model: Journal  
[2026-07-28 19:29:03] local.INFO: Data received: {"id":"672769fa-359a-45b1-a708-53bc7a4c0cf0","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:29:03] local.INFO: ID present? YES  
[2026-07-28 19:29:03] local.INFO: ID value: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:29:03] local.INFO: ID empty? NO  
[2026-07-28 19:29:03] local.INFO: Attempting to find record with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:29:03] local.INFO: Record not found, creating new with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 19:29:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (672769fa-359a-45b1-a708-53bc7a4c0cf0, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 491a309a-b5f8-4fff-87b1-9e3d6d442967, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:03, 2026-07-28 19:29:03))  
[2026-07-28 19:29:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:04] local.INFO: Model: Journal  
[2026-07-28 19:29:04] local.INFO: Data received: {"id":"6881cccf-698b-4103-a0c0-5472fb83a8d5","type":"Credit","amount":"500.00","rate":"128.000000","lcy_amount":"500.000000","narrative":"Gain on TR-3537-2026","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:29:04] local.INFO: ID present? YES  
[2026-07-28 19:29:04] local.INFO: ID value: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:04] local.INFO: ID empty? NO  
[2026-07-28 19:29:04] local.INFO: Attempting to find record with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:04] local.INFO: Record not found, creating new with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6881cccf-698b-4103-a0c0-5472fb83a8d5, Credit, 500.00, 128.000000, 500.000000, Gain on TR-3537-2026, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:04, 2026-07-28 19:29:04))  
[2026-07-28 19:29:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:10] local.INFO: Model: Journal  
[2026-07-28 19:29:10] local.INFO: Data received: {"id":"6881cccf-698b-4103-a0c0-5472fb83a8d5","type":"Credit","amount":"500.00","rate":"128.000000","lcy_amount":"500.000000","narrative":"Gain on TR-3537-2026","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:29:10] local.INFO: ID present? YES  
[2026-07-28 19:29:10] local.INFO: ID value: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:10] local.INFO: ID empty? NO  
[2026-07-28 19:29:10] local.INFO: Attempting to find record with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:10] local.INFO: Record not found, creating new with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6881cccf-698b-4103-a0c0-5472fb83a8d5, Credit, 500.00, 128.000000, 500.000000, Gain on TR-3537-2026, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:10, 2026-07-28 19:29:10))  
[2026-07-28 19:29:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:16] local.INFO: Model: Journal  
[2026-07-28 19:29:16] local.INFO: Data received: {"id":"6881cccf-698b-4103-a0c0-5472fb83a8d5","type":"Credit","amount":"500.00","rate":"128.000000","lcy_amount":"500.000000","narrative":"Gain on TR-3537-2026","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:29:16] local.INFO: ID present? YES  
[2026-07-28 19:29:16] local.INFO: ID value: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:16] local.INFO: ID empty? NO  
[2026-07-28 19:29:16] local.INFO: Attempting to find record with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:16] local.INFO: Record not found, creating new with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6881cccf-698b-4103-a0c0-5472fb83a8d5, Credit, 500.00, 128.000000, 500.000000, Gain on TR-3537-2026, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:16, 2026-07-28 19:29:16))  
[2026-07-28 19:29:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:23] local.INFO: Model: Journal  
[2026-07-28 19:29:23] local.INFO: Data received: {"id":"6881cccf-698b-4103-a0c0-5472fb83a8d5","type":"Credit","amount":"500.00","rate":"128.000000","lcy_amount":"500.000000","narrative":"Gain on TR-3537-2026","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:29:23] local.INFO: ID present? YES  
[2026-07-28 19:29:23] local.INFO: ID value: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:23] local.INFO: ID empty? NO  
[2026-07-28 19:29:23] local.INFO: Attempting to find record with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:23] local.INFO: Record not found, creating new with ID: 6881cccf-698b-4103-a0c0-5472fb83a8d5  
[2026-07-28 19:29:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6881cccf-698b-4103-a0c0-5472fb83a8d5, Credit, 500.00, 128.000000, 500.000000, Gain on TR-3537-2026, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:23, 2026-07-28 19:29:23))  
[2026-07-28 19:29:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:24] local.INFO: Model: Journal  
[2026-07-28 19:29:24] local.INFO: Data received: {"id":"694e2718-aca8-49f9-bb3c-619db1b7f421","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:29:24] local.INFO: ID present? YES  
[2026-07-28 19:29:24] local.INFO: ID value: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:24] local.INFO: ID empty? NO  
[2026-07-28 19:29:24] local.INFO: Attempting to find record with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:24] local.INFO: Record not found, creating new with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (694e2718-aca8-49f9-bb3c-619db1b7f421, Credit, 3625.00, 145.000000, 3625.000000, Buying TX: Funds out of cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:24, 2026-07-28 19:29:24))  
[2026-07-28 19:29:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:30] local.INFO: Model: Journal  
[2026-07-28 19:29:30] local.INFO: Data received: {"id":"694e2718-aca8-49f9-bb3c-619db1b7f421","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:29:30] local.INFO: ID present? YES  
[2026-07-28 19:29:30] local.INFO: ID value: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:30] local.INFO: ID empty? NO  
[2026-07-28 19:29:30] local.INFO: Attempting to find record with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:30] local.INFO: Record not found, creating new with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (694e2718-aca8-49f9-bb3c-619db1b7f421, Credit, 3625.00, 145.000000, 3625.000000, Buying TX: Funds out of cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:30, 2026-07-28 19:29:30))  
[2026-07-28 19:29:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:37] local.INFO: Model: Journal  
[2026-07-28 19:29:37] local.INFO: Data received: {"id":"694e2718-aca8-49f9-bb3c-619db1b7f421","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:29:37] local.INFO: ID present? YES  
[2026-07-28 19:29:37] local.INFO: ID value: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:37] local.INFO: ID empty? NO  
[2026-07-28 19:29:37] local.INFO: Attempting to find record with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:37] local.INFO: Record not found, creating new with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (694e2718-aca8-49f9-bb3c-619db1b7f421, Credit, 3625.00, 145.000000, 3625.000000, Buying TX: Funds out of cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:37, 2026-07-28 19:29:37))  
[2026-07-28 19:29:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:43] local.INFO: Model: Journal  
[2026-07-28 19:29:43] local.INFO: Data received: {"id":"694e2718-aca8-49f9-bb3c-619db1b7f421","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:29:43] local.INFO: ID present? YES  
[2026-07-28 19:29:43] local.INFO: ID value: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:43] local.INFO: ID empty? NO  
[2026-07-28 19:29:43] local.INFO: Attempting to find record with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:43] local.INFO: Record not found, creating new with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 19:29:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (694e2718-aca8-49f9-bb3c-619db1b7f421, Credit, 3625.00, 145.000000, 3625.000000, Buying TX: Funds out of cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:29:43, 2026-07-28 19:29:43))  
[2026-07-28 19:29:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:44] local.INFO: Model: Journal  
[2026-07-28 19:29:44] local.INFO: Data received: {"id":"6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:29:44] local.INFO: ID present? YES  
[2026-07-28 19:29:44] local.INFO: ID value: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:44] local.INFO: ID empty? NO  
[2026-07-28 19:29:44] local.INFO: Attempting to find record with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:44] local.INFO: Record not found, creating new with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:29:44, 2026-07-28 19:29:44))  
[2026-07-28 19:29:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:50] local.INFO: Model: Journal  
[2026-07-28 19:29:50] local.INFO: Data received: {"id":"6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:29:50] local.INFO: ID present? YES  
[2026-07-28 19:29:50] local.INFO: ID value: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:50] local.INFO: ID empty? NO  
[2026-07-28 19:29:50] local.INFO: Attempting to find record with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:50] local.INFO: Record not found, creating new with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:29:50, 2026-07-28 19:29:50))  
[2026-07-28 19:29:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:29:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:29:57] local.INFO: Model: Journal  
[2026-07-28 19:29:57] local.INFO: Data received: {"id":"6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:29:57] local.INFO: ID present? YES  
[2026-07-28 19:29:57] local.INFO: ID value: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:57] local.INFO: ID empty? NO  
[2026-07-28 19:29:57] local.INFO: Attempting to find record with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:57] local.INFO: Record not found, creating new with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:29:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:29:57, 2026-07-28 19:29:57))  
[2026-07-28 19:29:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:03] local.INFO: Model: Journal  
[2026-07-28 19:30:03] local.INFO: Data received: {"id":"6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:30:03] local.INFO: ID present? YES  
[2026-07-28 19:30:03] local.INFO: ID value: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:30:03] local.INFO: ID empty? NO  
[2026-07-28 19:30:03] local.INFO: Attempting to find record with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:30:03] local.INFO: Record not found, creating new with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 19:30:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:30:03, 2026-07-28 19:30:03))  
[2026-07-28 19:30:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:04] local.INFO: Model: Journal  
[2026-07-28 19:30:04] local.INFO: Data received: {"id":"6addec2a-ae52-4db3-a45b-3e5c8a5f059b","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"20.000000","narrative":"Gain on TR-3561-2026","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:30:04] local.INFO: ID present? YES  
[2026-07-28 19:30:04] local.INFO: ID value: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:04] local.INFO: ID empty? NO  
[2026-07-28 19:30:04] local.INFO: Attempting to find record with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:04] local.INFO: Record not found, creating new with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6addec2a-ae52-4db3-a45b-3e5c8a5f059b, Credit, 20.00, 130.000000, 20.000000, Gain on TR-3561-2026, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:04, 2026-07-28 19:30:04))  
[2026-07-28 19:30:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:11] local.INFO: Model: Journal  
[2026-07-28 19:30:11] local.INFO: Data received: {"id":"6addec2a-ae52-4db3-a45b-3e5c8a5f059b","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"20.000000","narrative":"Gain on TR-3561-2026","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:30:11] local.INFO: ID present? YES  
[2026-07-28 19:30:11] local.INFO: ID value: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:11] local.INFO: ID empty? NO  
[2026-07-28 19:30:11] local.INFO: Attempting to find record with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:11] local.INFO: Record not found, creating new with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6addec2a-ae52-4db3-a45b-3e5c8a5f059b, Credit, 20.00, 130.000000, 20.000000, Gain on TR-3561-2026, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:11, 2026-07-28 19:30:11))  
[2026-07-28 19:30:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:17] local.INFO: Model: Journal  
[2026-07-28 19:30:17] local.INFO: Data received: {"id":"6addec2a-ae52-4db3-a45b-3e5c8a5f059b","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"20.000000","narrative":"Gain on TR-3561-2026","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:30:17] local.INFO: ID present? YES  
[2026-07-28 19:30:17] local.INFO: ID value: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:17] local.INFO: ID empty? NO  
[2026-07-28 19:30:17] local.INFO: Attempting to find record with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:17] local.INFO: Record not found, creating new with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6addec2a-ae52-4db3-a45b-3e5c8a5f059b, Credit, 20.00, 130.000000, 20.000000, Gain on TR-3561-2026, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:17, 2026-07-28 19:30:17))  
[2026-07-28 19:30:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:23] local.INFO: Model: Journal  
[2026-07-28 19:30:23] local.INFO: Data received: {"id":"6addec2a-ae52-4db3-a45b-3e5c8a5f059b","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"20.000000","narrative":"Gain on TR-3561-2026","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:30:23] local.INFO: ID present? YES  
[2026-07-28 19:30:23] local.INFO: ID value: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:23] local.INFO: ID empty? NO  
[2026-07-28 19:30:23] local.INFO: Attempting to find record with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:23] local.INFO: Record not found, creating new with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 19:30:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6addec2a-ae52-4db3-a45b-3e5c8a5f059b, Credit, 20.00, 130.000000, 20.000000, Gain on TR-3561-2026, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:23, 2026-07-28 19:30:23))  
[2026-07-28 19:30:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:24] local.INFO: Model: Journal  
[2026-07-28 19:30:24] local.INFO: Data received: {"id":"6c69bc84-d229-47af-869d-562d0fc1ed8d","type":"Credit","amount":"1250.00","rate":"128.500000","lcy_amount":"1250.000000","narrative":"Gain on TR-3597-2026","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:30:24] local.INFO: ID present? YES  
[2026-07-28 19:30:24] local.INFO: ID value: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:24] local.INFO: ID empty? NO  
[2026-07-28 19:30:24] local.INFO: Attempting to find record with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:24] local.INFO: Record not found, creating new with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6c69bc84-d229-47af-869d-562d0fc1ed8d, Credit, 1250.00, 128.500000, 1250.000000, Gain on TR-3597-2026, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:24, 2026-07-28 19:30:24))  
[2026-07-28 19:30:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:31] local.INFO: Model: Journal  
[2026-07-28 19:30:31] local.INFO: Data received: {"id":"6c69bc84-d229-47af-869d-562d0fc1ed8d","type":"Credit","amount":"1250.00","rate":"128.500000","lcy_amount":"1250.000000","narrative":"Gain on TR-3597-2026","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:30:31] local.INFO: ID present? YES  
[2026-07-28 19:30:31] local.INFO: ID value: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:31] local.INFO: ID empty? NO  
[2026-07-28 19:30:31] local.INFO: Attempting to find record with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:31] local.INFO: Record not found, creating new with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6c69bc84-d229-47af-869d-562d0fc1ed8d, Credit, 1250.00, 128.500000, 1250.000000, Gain on TR-3597-2026, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:31, 2026-07-28 19:30:31))  
[2026-07-28 19:30:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:37] local.INFO: Model: Journal  
[2026-07-28 19:30:37] local.INFO: Data received: {"id":"6c69bc84-d229-47af-869d-562d0fc1ed8d","type":"Credit","amount":"1250.00","rate":"128.500000","lcy_amount":"1250.000000","narrative":"Gain on TR-3597-2026","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:30:37] local.INFO: ID present? YES  
[2026-07-28 19:30:37] local.INFO: ID value: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:37] local.INFO: ID empty? NO  
[2026-07-28 19:30:37] local.INFO: Attempting to find record with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:37] local.INFO: Record not found, creating new with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6c69bc84-d229-47af-869d-562d0fc1ed8d, Credit, 1250.00, 128.500000, 1250.000000, Gain on TR-3597-2026, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:37, 2026-07-28 19:30:37))  
[2026-07-28 19:30:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:43] local.INFO: Model: Journal  
[2026-07-28 19:30:43] local.INFO: Data received: {"id":"6c69bc84-d229-47af-869d-562d0fc1ed8d","type":"Credit","amount":"1250.00","rate":"128.500000","lcy_amount":"1250.000000","narrative":"Gain on TR-3597-2026","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:30:43] local.INFO: ID present? YES  
[2026-07-28 19:30:43] local.INFO: ID value: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:43] local.INFO: ID empty? NO  
[2026-07-28 19:30:43] local.INFO: Attempting to find record with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:43] local.INFO: Record not found, creating new with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 19:30:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6c69bc84-d229-47af-869d-562d0fc1ed8d, Credit, 1250.00, 128.500000, 1250.000000, Gain on TR-3597-2026, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:43, 2026-07-28 19:30:43))  
[2026-07-28 19:30:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:45] local.INFO: Model: Journal  
[2026-07-28 19:30:45] local.INFO: Data received: {"id":"6cdffcd3-caf2-450b-97f2-5d41166237f0","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3546-2026","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:30:45] local.INFO: ID present? YES  
[2026-07-28 19:30:45] local.INFO: ID value: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:45] local.INFO: ID empty? NO  
[2026-07-28 19:30:45] local.INFO: Attempting to find record with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:45] local.INFO: Record not found, creating new with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6cdffcd3-caf2-450b-97f2-5d41166237f0, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3546-2026, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:45, 2026-07-28 19:30:45))  
[2026-07-28 19:30:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:52] local.INFO: Model: Journal  
[2026-07-28 19:30:52] local.INFO: Data received: {"id":"6cdffcd3-caf2-450b-97f2-5d41166237f0","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3546-2026","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:30:52] local.INFO: ID present? YES  
[2026-07-28 19:30:52] local.INFO: ID value: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:52] local.INFO: ID empty? NO  
[2026-07-28 19:30:52] local.INFO: Attempting to find record with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:52] local.INFO: Record not found, creating new with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6cdffcd3-caf2-450b-97f2-5d41166237f0, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3546-2026, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:52, 2026-07-28 19:30:52))  
[2026-07-28 19:30:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:30:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:30:59] local.INFO: Model: Journal  
[2026-07-28 19:30:59] local.INFO: Data received: {"id":"6cdffcd3-caf2-450b-97f2-5d41166237f0","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3546-2026","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:30:59] local.INFO: ID present? YES  
[2026-07-28 19:30:59] local.INFO: ID value: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:59] local.INFO: ID empty? NO  
[2026-07-28 19:30:59] local.INFO: Attempting to find record with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:59] local.INFO: Record not found, creating new with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:30:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6cdffcd3-caf2-450b-97f2-5d41166237f0, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3546-2026, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:30:59, 2026-07-28 19:30:59))  
[2026-07-28 19:30:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:05] local.INFO: Model: Journal  
[2026-07-28 19:31:05] local.INFO: Data received: {"id":"6cdffcd3-caf2-450b-97f2-5d41166237f0","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3546-2026","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:31:05] local.INFO: ID present? YES  
[2026-07-28 19:31:05] local.INFO: ID value: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:31:05] local.INFO: ID empty? NO  
[2026-07-28 19:31:05] local.INFO: Attempting to find record with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:31:05] local.INFO: Record not found, creating new with ID: 6cdffcd3-caf2-450b-97f2-5d41166237f0  
[2026-07-28 19:31:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6cdffcd3-caf2-450b-97f2-5d41166237f0, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3546-2026, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:05, 2026-07-28 19:31:05))  
[2026-07-28 19:31:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:06] local.INFO: Model: Journal  
[2026-07-28 19:31:06] local.INFO: Data received: {"id":"6e0aee20-b77e-40e3-8697-5a458498fd49","type":"Credit","amount":"124.00","rate":"145.000000","lcy_amount":"124.000000","narrative":"Gain on TR-3542-2026","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:31:06] local.INFO: ID present? YES  
[2026-07-28 19:31:06] local.INFO: ID value: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:06] local.INFO: ID empty? NO  
[2026-07-28 19:31:06] local.INFO: Attempting to find record with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:06] local.INFO: Record not found, creating new with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6e0aee20-b77e-40e3-8697-5a458498fd49, Credit, 124.00, 145.000000, 124.000000, Gain on TR-3542-2026, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:06, 2026-07-28 19:31:06))  
[2026-07-28 19:31:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:13] local.INFO: Model: Journal  
[2026-07-28 19:31:13] local.INFO: Data received: {"id":"6e0aee20-b77e-40e3-8697-5a458498fd49","type":"Credit","amount":"124.00","rate":"145.000000","lcy_amount":"124.000000","narrative":"Gain on TR-3542-2026","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:31:13] local.INFO: ID present? YES  
[2026-07-28 19:31:13] local.INFO: ID value: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:13] local.INFO: ID empty? NO  
[2026-07-28 19:31:13] local.INFO: Attempting to find record with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:13] local.INFO: Record not found, creating new with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6e0aee20-b77e-40e3-8697-5a458498fd49, Credit, 124.00, 145.000000, 124.000000, Gain on TR-3542-2026, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:13, 2026-07-28 19:31:13))  
[2026-07-28 19:31:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:19] local.INFO: Model: Journal  
[2026-07-28 19:31:19] local.INFO: Data received: {"id":"6e0aee20-b77e-40e3-8697-5a458498fd49","type":"Credit","amount":"124.00","rate":"145.000000","lcy_amount":"124.000000","narrative":"Gain on TR-3542-2026","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:31:19] local.INFO: ID present? YES  
[2026-07-28 19:31:19] local.INFO: ID value: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:19] local.INFO: ID empty? NO  
[2026-07-28 19:31:19] local.INFO: Attempting to find record with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:19] local.INFO: Record not found, creating new with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6e0aee20-b77e-40e3-8697-5a458498fd49, Credit, 124.00, 145.000000, 124.000000, Gain on TR-3542-2026, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:19, 2026-07-28 19:31:19))  
[2026-07-28 19:31:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:25] local.INFO: Model: Journal  
[2026-07-28 19:31:25] local.INFO: Data received: {"id":"6e0aee20-b77e-40e3-8697-5a458498fd49","type":"Credit","amount":"124.00","rate":"145.000000","lcy_amount":"124.000000","narrative":"Gain on TR-3542-2026","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 19:31:25] local.INFO: ID present? YES  
[2026-07-28 19:31:25] local.INFO: ID value: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:25] local.INFO: ID empty? NO  
[2026-07-28 19:31:25] local.INFO: Attempting to find record with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:25] local.INFO: Record not found, creating new with ID: 6e0aee20-b77e-40e3-8697-5a458498fd49  
[2026-07-28 19:31:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (6e0aee20-b77e-40e3-8697-5a458498fd49, Credit, 124.00, 145.000000, 124.000000, Gain on TR-3542-2026, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:25, 2026-07-28 19:31:25))  
[2026-07-28 19:31:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:26] local.INFO: Model: Journal  
[2026-07-28 19:31:26] local.INFO: Data received: {"id":"701f2bb0-6361-41f0-94de-f369a95d2089","type":"Debit","amount":"100.00","rate":"169.500000","lcy_amount":"17345.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:31:26] local.INFO: ID present? YES  
[2026-07-28 19:31:26] local.INFO: ID value: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:26] local.INFO: ID empty? NO  
[2026-07-28 19:31:26] local.INFO: Attempting to find record with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:26] local.INFO: Record not found, creating new with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (701f2bb0-6361-41f0-94de-f369a95d2089, Debit, 100.00, 169.500000, 17345.000000, Buying TX: Funds into cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:31:26, 2026-07-28 19:31:26))  
[2026-07-28 19:31:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:33] local.INFO: Model: Journal  
[2026-07-28 19:31:33] local.INFO: Data received: {"id":"701f2bb0-6361-41f0-94de-f369a95d2089","type":"Debit","amount":"100.00","rate":"169.500000","lcy_amount":"17345.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:31:33] local.INFO: ID present? YES  
[2026-07-28 19:31:33] local.INFO: ID value: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:33] local.INFO: ID empty? NO  
[2026-07-28 19:31:33] local.INFO: Attempting to find record with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:33] local.INFO: Record not found, creating new with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (701f2bb0-6361-41f0-94de-f369a95d2089, Debit, 100.00, 169.500000, 17345.000000, Buying TX: Funds into cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:31:33, 2026-07-28 19:31:33))  
[2026-07-28 19:31:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:39] local.INFO: Model: Journal  
[2026-07-28 19:31:39] local.INFO: Data received: {"id":"701f2bb0-6361-41f0-94de-f369a95d2089","type":"Debit","amount":"100.00","rate":"169.500000","lcy_amount":"17345.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:31:39] local.INFO: ID present? YES  
[2026-07-28 19:31:39] local.INFO: ID value: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:39] local.INFO: ID empty? NO  
[2026-07-28 19:31:39] local.INFO: Attempting to find record with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:39] local.INFO: Record not found, creating new with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (701f2bb0-6361-41f0-94de-f369a95d2089, Debit, 100.00, 169.500000, 17345.000000, Buying TX: Funds into cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:31:39, 2026-07-28 19:31:39))  
[2026-07-28 19:31:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:45] local.INFO: Model: Journal  
[2026-07-28 19:31:45] local.INFO: Data received: {"id":"701f2bb0-6361-41f0-94de-f369a95d2089","type":"Debit","amount":"100.00","rate":"169.500000","lcy_amount":"17345.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:31:45] local.INFO: ID present? YES  
[2026-07-28 19:31:45] local.INFO: ID value: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:45] local.INFO: ID empty? NO  
[2026-07-28 19:31:45] local.INFO: Attempting to find record with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:45] local.INFO: Record not found, creating new with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 19:31:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (701f2bb0-6361-41f0-94de-f369a95d2089, Debit, 100.00, 169.500000, 17345.000000, Buying TX: Funds into cashbox, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:31:45, 2026-07-28 19:31:45))  
[2026-07-28 19:31:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:47] local.INFO: Model: Journal  
[2026-07-28 19:31:47] local.INFO: Data received: {"id":"7043a07f-53e3-425c-b734-ae98e8c13524","type":"Credit","amount":"100.00","rate":"128.000000","lcy_amount":"100.000000","narrative":"Gain on TR-3579-2026","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:46","updated_at":"2026-07-26 12:21:46"} 
[2026-07-28 19:31:47] local.INFO: ID present? YES  
[2026-07-28 19:31:47] local.INFO: ID value: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:47] local.INFO: ID empty? NO  
[2026-07-28 19:31:47] local.INFO: Attempting to find record with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:47] local.INFO: Record not found, creating new with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7043a07f-53e3-425c-b734-ae98e8c13524, Credit, 100.00, 128.000000, 100.000000, Gain on TR-3579-2026, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:47, 2026-07-28 19:31:47))  
[2026-07-28 19:31:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:53] local.INFO: Model: Journal  
[2026-07-28 19:31:53] local.INFO: Data received: {"id":"7043a07f-53e3-425c-b734-ae98e8c13524","type":"Credit","amount":"100.00","rate":"128.000000","lcy_amount":"100.000000","narrative":"Gain on TR-3579-2026","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:46","updated_at":"2026-07-26 12:21:46"} 
[2026-07-28 19:31:53] local.INFO: ID present? YES  
[2026-07-28 19:31:53] local.INFO: ID value: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:53] local.INFO: ID empty? NO  
[2026-07-28 19:31:53] local.INFO: Attempting to find record with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:53] local.INFO: Record not found, creating new with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7043a07f-53e3-425c-b734-ae98e8c13524, Credit, 100.00, 128.000000, 100.000000, Gain on TR-3579-2026, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:53, 2026-07-28 19:31:53))  
[2026-07-28 19:31:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:31:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:31:59] local.INFO: Model: Journal  
[2026-07-28 19:31:59] local.INFO: Data received: {"id":"7043a07f-53e3-425c-b734-ae98e8c13524","type":"Credit","amount":"100.00","rate":"128.000000","lcy_amount":"100.000000","narrative":"Gain on TR-3579-2026","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:46","updated_at":"2026-07-26 12:21:46"} 
[2026-07-28 19:31:59] local.INFO: ID present? YES  
[2026-07-28 19:31:59] local.INFO: ID value: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:59] local.INFO: ID empty? NO  
[2026-07-28 19:31:59] local.INFO: Attempting to find record with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:59] local.INFO: Record not found, creating new with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:31:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7043a07f-53e3-425c-b734-ae98e8c13524, Credit, 100.00, 128.000000, 100.000000, Gain on TR-3579-2026, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:31:59, 2026-07-28 19:31:59))  
[2026-07-28 19:31:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:05] local.INFO: Model: Journal  
[2026-07-28 19:32:05] local.INFO: Data received: {"id":"7043a07f-53e3-425c-b734-ae98e8c13524","type":"Credit","amount":"100.00","rate":"128.000000","lcy_amount":"100.000000","narrative":"Gain on TR-3579-2026","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:46","updated_at":"2026-07-26 12:21:46"} 
[2026-07-28 19:32:05] local.INFO: ID present? YES  
[2026-07-28 19:32:05] local.INFO: ID value: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:32:05] local.INFO: ID empty? NO  
[2026-07-28 19:32:05] local.INFO: Attempting to find record with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:32:05] local.INFO: Record not found, creating new with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 19:32:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7043a07f-53e3-425c-b734-ae98e8c13524, Credit, 100.00, 128.000000, 100.000000, Gain on TR-3579-2026, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:32:05, 2026-07-28 19:32:05))  
[2026-07-28 19:32:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:07] local.INFO: Model: Journal  
[2026-07-28 19:32:07] local.INFO: Data received: {"id":"70b55abd-cd57-4b70-bab9-02a99a56aa28","type":"Debit","amount":"70.00","rate":"145.000000","lcy_amount":"10584.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:32:07] local.INFO: ID present? YES  
[2026-07-28 19:32:07] local.INFO: ID value: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:07] local.INFO: ID empty? NO  
[2026-07-28 19:32:07] local.INFO: Attempting to find record with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:07] local.INFO: Record not found, creating new with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (70b55abd-cd57-4b70-bab9-02a99a56aa28, Debit, 70.00, 145.000000, 10584.000000, Buying TX: Funds into cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:32:07, 2026-07-28 19:32:07))  
[2026-07-28 19:32:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:13] local.INFO: Model: Journal  
[2026-07-28 19:32:13] local.INFO: Data received: {"id":"70b55abd-cd57-4b70-bab9-02a99a56aa28","type":"Debit","amount":"70.00","rate":"145.000000","lcy_amount":"10584.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:32:13] local.INFO: ID present? YES  
[2026-07-28 19:32:13] local.INFO: ID value: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:13] local.INFO: ID empty? NO  
[2026-07-28 19:32:13] local.INFO: Attempting to find record with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:13] local.INFO: Record not found, creating new with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (70b55abd-cd57-4b70-bab9-02a99a56aa28, Debit, 70.00, 145.000000, 10584.000000, Buying TX: Funds into cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:32:13, 2026-07-28 19:32:13))  
[2026-07-28 19:32:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:19] local.INFO: Model: Journal  
[2026-07-28 19:32:19] local.INFO: Data received: {"id":"70b55abd-cd57-4b70-bab9-02a99a56aa28","type":"Debit","amount":"70.00","rate":"145.000000","lcy_amount":"10584.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:32:19] local.INFO: ID present? YES  
[2026-07-28 19:32:19] local.INFO: ID value: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:19] local.INFO: ID empty? NO  
[2026-07-28 19:32:19] local.INFO: Attempting to find record with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:19] local.INFO: Record not found, creating new with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (70b55abd-cd57-4b70-bab9-02a99a56aa28, Debit, 70.00, 145.000000, 10584.000000, Buying TX: Funds into cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:32:19, 2026-07-28 19:32:19))  
[2026-07-28 19:32:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:25] local.INFO: Model: Journal  
[2026-07-28 19:32:25] local.INFO: Data received: {"id":"70b55abd-cd57-4b70-bab9-02a99a56aa28","type":"Debit","amount":"70.00","rate":"145.000000","lcy_amount":"10584.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:32:25] local.INFO: ID present? YES  
[2026-07-28 19:32:25] local.INFO: ID value: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:25] local.INFO: ID empty? NO  
[2026-07-28 19:32:25] local.INFO: Attempting to find record with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:25] local.INFO: Record not found, creating new with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 19:32:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (70b55abd-cd57-4b70-bab9-02a99a56aa28, Debit, 70.00, 145.000000, 10584.000000, Buying TX: Funds into cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:32:25, 2026-07-28 19:32:25))  
[2026-07-28 19:32:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:27] local.INFO: Model: Journal  
[2026-07-28 19:32:27] local.INFO: Data received: {"id":"717615ca-8ff0-4278-9f68-e4592d3391ae","type":"Debit","amount":"1200.00","rate":"128.500000","lcy_amount":"154800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:32:27] local.INFO: ID present? YES  
[2026-07-28 19:32:27] local.INFO: ID value: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:27] local.INFO: ID empty? NO  
[2026-07-28 19:32:27] local.INFO: Attempting to find record with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:27] local.INFO: Record not found, creating new with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (717615ca-8ff0-4278-9f68-e4592d3391ae, Debit, 1200.00, 128.500000, 154800.000000, Buying TX: Funds into cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:32:27, 2026-07-28 19:32:27))  
[2026-07-28 19:32:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:33] local.INFO: Model: Journal  
[2026-07-28 19:32:33] local.INFO: Data received: {"id":"717615ca-8ff0-4278-9f68-e4592d3391ae","type":"Debit","amount":"1200.00","rate":"128.500000","lcy_amount":"154800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:32:33] local.INFO: ID present? YES  
[2026-07-28 19:32:33] local.INFO: ID value: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:33] local.INFO: ID empty? NO  
[2026-07-28 19:32:33] local.INFO: Attempting to find record with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:33] local.INFO: Record not found, creating new with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (717615ca-8ff0-4278-9f68-e4592d3391ae, Debit, 1200.00, 128.500000, 154800.000000, Buying TX: Funds into cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:32:33, 2026-07-28 19:32:33))  
[2026-07-28 19:32:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:39] local.INFO: Model: Journal  
[2026-07-28 19:32:39] local.INFO: Data received: {"id":"717615ca-8ff0-4278-9f68-e4592d3391ae","type":"Debit","amount":"1200.00","rate":"128.500000","lcy_amount":"154800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:32:39] local.INFO: ID present? YES  
[2026-07-28 19:32:39] local.INFO: ID value: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:39] local.INFO: ID empty? NO  
[2026-07-28 19:32:39] local.INFO: Attempting to find record with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:39] local.INFO: Record not found, creating new with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (717615ca-8ff0-4278-9f68-e4592d3391ae, Debit, 1200.00, 128.500000, 154800.000000, Buying TX: Funds into cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:32:39, 2026-07-28 19:32:39))  
[2026-07-28 19:32:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:46] local.INFO: Model: Journal  
[2026-07-28 19:32:46] local.INFO: Data received: {"id":"717615ca-8ff0-4278-9f68-e4592d3391ae","type":"Debit","amount":"1200.00","rate":"128.500000","lcy_amount":"154800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:32:46] local.INFO: ID present? YES  
[2026-07-28 19:32:46] local.INFO: ID value: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:46] local.INFO: ID empty? NO  
[2026-07-28 19:32:46] local.INFO: Attempting to find record with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:46] local.INFO: Record not found, creating new with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 19:32:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (717615ca-8ff0-4278-9f68-e4592d3391ae, Debit, 1200.00, 128.500000, 154800.000000, Buying TX: Funds into cashbox, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:32:46, 2026-07-28 19:32:46))  
[2026-07-28 19:32:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:47] local.INFO: Model: Journal  
[2026-07-28 19:32:47] local.INFO: Data received: {"id":"71c8c9b3-076f-4a7a-9e74-3ed20addc4e7","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:32:47] local.INFO: ID present? YES  
[2026-07-28 19:32:47] local.INFO: ID value: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:47] local.INFO: ID empty? NO  
[2026-07-28 19:32:47] local.INFO: Attempting to find record with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:47] local.INFO: Record not found, creating new with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (71c8c9b3-076f-4a7a-9e74-3ed20addc4e7, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:32:47, 2026-07-28 19:32:47))  
[2026-07-28 19:32:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:53] local.INFO: Model: Journal  
[2026-07-28 19:32:53] local.INFO: Data received: {"id":"71c8c9b3-076f-4a7a-9e74-3ed20addc4e7","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:32:53] local.INFO: ID present? YES  
[2026-07-28 19:32:53] local.INFO: ID value: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:53] local.INFO: ID empty? NO  
[2026-07-28 19:32:53] local.INFO: Attempting to find record with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:53] local.INFO: Record not found, creating new with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (71c8c9b3-076f-4a7a-9e74-3ed20addc4e7, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:32:53, 2026-07-28 19:32:53))  
[2026-07-28 19:32:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:32:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:32:59] local.INFO: Model: Journal  
[2026-07-28 19:32:59] local.INFO: Data received: {"id":"71c8c9b3-076f-4a7a-9e74-3ed20addc4e7","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:32:59] local.INFO: ID present? YES  
[2026-07-28 19:32:59] local.INFO: ID value: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:59] local.INFO: ID empty? NO  
[2026-07-28 19:32:59] local.INFO: Attempting to find record with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:59] local.INFO: Record not found, creating new with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:32:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (71c8c9b3-076f-4a7a-9e74-3ed20addc4e7, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:32:59, 2026-07-28 19:32:59))  
[2026-07-28 19:32:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:06] local.INFO: Model: Journal  
[2026-07-28 19:33:06] local.INFO: Data received: {"id":"71c8c9b3-076f-4a7a-9e74-3ed20addc4e7","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:33:06] local.INFO: ID present? YES  
[2026-07-28 19:33:06] local.INFO: ID value: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:33:06] local.INFO: ID empty? NO  
[2026-07-28 19:33:06] local.INFO: Attempting to find record with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:33:06] local.INFO: Record not found, creating new with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 19:33:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (71c8c9b3-076f-4a7a-9e74-3ed20addc4e7, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:33:06, 2026-07-28 19:33:06))  
[2026-07-28 19:33:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:07] local.INFO: Model: Journal  
[2026-07-28 19:33:07] local.INFO: Data received: {"id":"72204a5a-2f6f-4428-bacd-3d19012438a2","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:33:07] local.INFO: ID present? YES  
[2026-07-28 19:33:07] local.INFO: ID value: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:07] local.INFO: ID empty? NO  
[2026-07-28 19:33:07] local.INFO: Attempting to find record with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:07] local.INFO: Record not found, creating new with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (72204a5a-2f6f-4428-bacd-3d19012438a2, Debit, 25.00, 145.000000, 3780.000000, Buying TX: Funds into cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:33:07, 2026-07-28 19:33:07))  
[2026-07-28 19:33:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:13] local.INFO: Model: Journal  
[2026-07-28 19:33:13] local.INFO: Data received: {"id":"72204a5a-2f6f-4428-bacd-3d19012438a2","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:33:13] local.INFO: ID present? YES  
[2026-07-28 19:33:13] local.INFO: ID value: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:13] local.INFO: ID empty? NO  
[2026-07-28 19:33:13] local.INFO: Attempting to find record with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:13] local.INFO: Record not found, creating new with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (72204a5a-2f6f-4428-bacd-3d19012438a2, Debit, 25.00, 145.000000, 3780.000000, Buying TX: Funds into cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:33:13, 2026-07-28 19:33:13))  
[2026-07-28 19:33:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:20] local.INFO: Model: Journal  
[2026-07-28 19:33:20] local.INFO: Data received: {"id":"72204a5a-2f6f-4428-bacd-3d19012438a2","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:33:20] local.INFO: ID present? YES  
[2026-07-28 19:33:20] local.INFO: ID value: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:20] local.INFO: ID empty? NO  
[2026-07-28 19:33:20] local.INFO: Attempting to find record with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:20] local.INFO: Record not found, creating new with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (72204a5a-2f6f-4428-bacd-3d19012438a2, Debit, 25.00, 145.000000, 3780.000000, Buying TX: Funds into cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:33:20, 2026-07-28 19:33:20))  
[2026-07-28 19:33:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:26] local.INFO: Model: Journal  
[2026-07-28 19:33:26] local.INFO: Data received: {"id":"72204a5a-2f6f-4428-bacd-3d19012438a2","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:33:26] local.INFO: ID present? YES  
[2026-07-28 19:33:26] local.INFO: ID value: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:26] local.INFO: ID empty? NO  
[2026-07-28 19:33:26] local.INFO: Attempting to find record with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:26] local.INFO: Record not found, creating new with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 19:33:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (72204a5a-2f6f-4428-bacd-3d19012438a2, Debit, 25.00, 145.000000, 3780.000000, Buying TX: Funds into cashbox, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:33:26, 2026-07-28 19:33:26))  
[2026-07-28 19:33:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:27] local.INFO: Model: Journal  
[2026-07-28 19:33:27] local.INFO: Data received: {"id":"73411c2a-eea8-4785-83ac-1d4a3012dd9e","type":"Credit","amount":"10150.00","rate":"145.000000","lcy_amount":"10150.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:33:27] local.INFO: ID present? YES  
[2026-07-28 19:33:27] local.INFO: ID value: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:27] local.INFO: ID empty? NO  
[2026-07-28 19:33:27] local.INFO: Attempting to find record with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:27] local.INFO: Record not found, creating new with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (73411c2a-eea8-4785-83ac-1d4a3012dd9e, Credit, 10150.00, 145.000000, 10150.000000, Buying TX: Funds out of cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:33:27, 2026-07-28 19:33:27))  
[2026-07-28 19:33:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:33] local.INFO: Model: Journal  
[2026-07-28 19:33:33] local.INFO: Data received: {"id":"73411c2a-eea8-4785-83ac-1d4a3012dd9e","type":"Credit","amount":"10150.00","rate":"145.000000","lcy_amount":"10150.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:33:33] local.INFO: ID present? YES  
[2026-07-28 19:33:33] local.INFO: ID value: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:33] local.INFO: ID empty? NO  
[2026-07-28 19:33:33] local.INFO: Attempting to find record with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:33] local.INFO: Record not found, creating new with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (73411c2a-eea8-4785-83ac-1d4a3012dd9e, Credit, 10150.00, 145.000000, 10150.000000, Buying TX: Funds out of cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:33:33, 2026-07-28 19:33:33))  
[2026-07-28 19:33:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:40] local.INFO: Model: Journal  
[2026-07-28 19:33:40] local.INFO: Data received: {"id":"73411c2a-eea8-4785-83ac-1d4a3012dd9e","type":"Credit","amount":"10150.00","rate":"145.000000","lcy_amount":"10150.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:33:40] local.INFO: ID present? YES  
[2026-07-28 19:33:40] local.INFO: ID value: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:40] local.INFO: ID empty? NO  
[2026-07-28 19:33:40] local.INFO: Attempting to find record with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:40] local.INFO: Record not found, creating new with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (73411c2a-eea8-4785-83ac-1d4a3012dd9e, Credit, 10150.00, 145.000000, 10150.000000, Buying TX: Funds out of cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:33:40, 2026-07-28 19:33:40))  
[2026-07-28 19:33:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:46] local.INFO: Model: Journal  
[2026-07-28 19:33:46] local.INFO: Data received: {"id":"73411c2a-eea8-4785-83ac-1d4a3012dd9e","type":"Credit","amount":"10150.00","rate":"145.000000","lcy_amount":"10150.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:33:46] local.INFO: ID present? YES  
[2026-07-28 19:33:46] local.INFO: ID value: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:46] local.INFO: ID empty? NO  
[2026-07-28 19:33:46] local.INFO: Attempting to find record with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:46] local.INFO: Record not found, creating new with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 19:33:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (73411c2a-eea8-4785-83ac-1d4a3012dd9e, Credit, 10150.00, 145.000000, 10150.000000, Buying TX: Funds out of cashbox, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:33:46, 2026-07-28 19:33:46))  
[2026-07-28 19:33:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:47] local.INFO: Model: Journal  
[2026-07-28 19:33:47] local.INFO: Data received: {"id":"7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc","type":"Credit","amount":"750.00","rate":"128.500000","lcy_amount":"750.000000","narrative":"Gain on TR-3577-2026","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:33:47] local.INFO: ID present? YES  
[2026-07-28 19:33:47] local.INFO: ID value: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:33:47] local.INFO: ID empty? NO  
[2026-07-28 19:33:47] local.INFO: Attempting to find record with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:33:47] local.INFO: Record not found, creating new with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:33:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc, Credit, 750.00, 128.500000, 750.000000, Gain on TR-3577-2026, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:33:47, 2026-07-28 19:33:47))  
[2026-07-28 19:33:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:33:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:33:53] local.INFO: Model: Journal  
[2026-07-28 19:33:53] local.INFO: Data received: {"id":"7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc","type":"Credit","amount":"750.00","rate":"128.500000","lcy_amount":"750.000000","narrative":"Gain on TR-3577-2026","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:33:53] local.INFO: ID present? YES  
[2026-07-28 19:33:53] local.INFO: ID value: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:33:53] local.INFO: ID empty? NO  
[2026-07-28 19:33:53] local.INFO: Attempting to find record with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:33:53] local.INFO: Record not found, creating new with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:33:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc, Credit, 750.00, 128.500000, 750.000000, Gain on TR-3577-2026, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:33:53, 2026-07-28 19:33:53))  
[2026-07-28 19:33:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:00] local.INFO: Model: Journal  
[2026-07-28 19:34:00] local.INFO: Data received: {"id":"7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc","type":"Credit","amount":"750.00","rate":"128.500000","lcy_amount":"750.000000","narrative":"Gain on TR-3577-2026","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:34:00] local.INFO: ID present? YES  
[2026-07-28 19:34:00] local.INFO: ID value: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:34:00] local.INFO: ID empty? NO  
[2026-07-28 19:34:00] local.INFO: Attempting to find record with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:34:00] local.INFO: Record not found, creating new with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:34:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc, Credit, 750.00, 128.500000, 750.000000, Gain on TR-3577-2026, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:00, 2026-07-28 19:34:00))  
[2026-07-28 19:34:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:06] local.INFO: Model: Journal  
[2026-07-28 19:34:06] local.INFO: Data received: {"id":"7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc","type":"Credit","amount":"750.00","rate":"128.500000","lcy_amount":"750.000000","narrative":"Gain on TR-3577-2026","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 19:34:06] local.INFO: ID present? YES  
[2026-07-28 19:34:06] local.INFO: ID value: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:34:06] local.INFO: ID empty? NO  
[2026-07-28 19:34:06] local.INFO: Attempting to find record with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:34:06] local.INFO: Record not found, creating new with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 19:34:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc, Credit, 750.00, 128.500000, 750.000000, Gain on TR-3577-2026, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, aeee902c-dbf4-45dd-94bf-7d7fdc5585e7, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:06, 2026-07-28 19:34:06))  
[2026-07-28 19:34:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:07] local.INFO: Model: Journal  
[2026-07-28 19:34:07] local.INFO: Data received: {"id":"749907db-dfd9-4e72-bb34-e3d9c657edec","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:34:07] local.INFO: ID present? YES  
[2026-07-28 19:34:07] local.INFO: ID value: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:07] local.INFO: ID empty? NO  
[2026-07-28 19:34:07] local.INFO: Attempting to find record with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:07] local.INFO: Record not found, creating new with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (749907db-dfd9-4e72-bb34-e3d9c657edec, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:07, 2026-07-28 19:34:07))  
[2026-07-28 19:34:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:13] local.INFO: Model: Journal  
[2026-07-28 19:34:13] local.INFO: Data received: {"id":"749907db-dfd9-4e72-bb34-e3d9c657edec","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:34:13] local.INFO: ID present? YES  
[2026-07-28 19:34:13] local.INFO: ID value: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:13] local.INFO: ID empty? NO  
[2026-07-28 19:34:13] local.INFO: Attempting to find record with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:13] local.INFO: Record not found, creating new with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (749907db-dfd9-4e72-bb34-e3d9c657edec, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:13, 2026-07-28 19:34:13))  
[2026-07-28 19:34:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:20] local.INFO: Model: Journal  
[2026-07-28 19:34:20] local.INFO: Data received: {"id":"749907db-dfd9-4e72-bb34-e3d9c657edec","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:34:20] local.INFO: ID present? YES  
[2026-07-28 19:34:20] local.INFO: ID value: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:20] local.INFO: ID empty? NO  
[2026-07-28 19:34:20] local.INFO: Attempting to find record with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:20] local.INFO: Record not found, creating new with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (749907db-dfd9-4e72-bb34-e3d9c657edec, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:20, 2026-07-28 19:34:20))  
[2026-07-28 19:34:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:26] local.INFO: Model: Journal  
[2026-07-28 19:34:26] local.INFO: Data received: {"id":"749907db-dfd9-4e72-bb34-e3d9c657edec","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:34:26] local.INFO: ID present? YES  
[2026-07-28 19:34:26] local.INFO: ID value: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:26] local.INFO: ID empty? NO  
[2026-07-28 19:34:26] local.INFO: Attempting to find record with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:26] local.INFO: Record not found, creating new with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 19:34:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (749907db-dfd9-4e72-bb34-e3d9c657edec, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:26, 2026-07-28 19:34:26))  
[2026-07-28 19:34:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:27] local.INFO: Model: Journal  
[2026-07-28 19:34:27] local.INFO: Data received: {"id":"7692045d-b900-4a78-a5fa-04b2d130325d","type":"Credit","amount":"15300.00","rate":"127.500000","lcy_amount":"15300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:34:27] local.INFO: ID present? YES  
[2026-07-28 19:34:27] local.INFO: ID value: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:27] local.INFO: ID empty? NO  
[2026-07-28 19:34:27] local.INFO: Attempting to find record with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:27] local.INFO: Record not found, creating new with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7692045d-b900-4a78-a5fa-04b2d130325d, Credit, 15300.00, 127.500000, 15300.000000, Buying TX: Funds out of cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:27, 2026-07-28 19:34:27))  
[2026-07-28 19:34:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:34] local.INFO: Model: Journal  
[2026-07-28 19:34:34] local.INFO: Data received: {"id":"7692045d-b900-4a78-a5fa-04b2d130325d","type":"Credit","amount":"15300.00","rate":"127.500000","lcy_amount":"15300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:34:34] local.INFO: ID present? YES  
[2026-07-28 19:34:34] local.INFO: ID value: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:34] local.INFO: ID empty? NO  
[2026-07-28 19:34:34] local.INFO: Attempting to find record with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:34] local.INFO: Record not found, creating new with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7692045d-b900-4a78-a5fa-04b2d130325d, Credit, 15300.00, 127.500000, 15300.000000, Buying TX: Funds out of cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:34, 2026-07-28 19:34:34))  
[2026-07-28 19:34:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:40] local.INFO: Model: Journal  
[2026-07-28 19:34:40] local.INFO: Data received: {"id":"7692045d-b900-4a78-a5fa-04b2d130325d","type":"Credit","amount":"15300.00","rate":"127.500000","lcy_amount":"15300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:34:40] local.INFO: ID present? YES  
[2026-07-28 19:34:40] local.INFO: ID value: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:40] local.INFO: ID empty? NO  
[2026-07-28 19:34:40] local.INFO: Attempting to find record with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:40] local.INFO: Record not found, creating new with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7692045d-b900-4a78-a5fa-04b2d130325d, Credit, 15300.00, 127.500000, 15300.000000, Buying TX: Funds out of cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:40, 2026-07-28 19:34:40))  
[2026-07-28 19:34:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:46] local.INFO: Model: Journal  
[2026-07-28 19:34:46] local.INFO: Data received: {"id":"7692045d-b900-4a78-a5fa-04b2d130325d","type":"Credit","amount":"15300.00","rate":"127.500000","lcy_amount":"15300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:34:46] local.INFO: ID present? YES  
[2026-07-28 19:34:46] local.INFO: ID value: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:46] local.INFO: ID empty? NO  
[2026-07-28 19:34:46] local.INFO: Attempting to find record with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:46] local.INFO: Record not found, creating new with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 19:34:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7692045d-b900-4a78-a5fa-04b2d130325d, Credit, 15300.00, 127.500000, 15300.000000, Buying TX: Funds out of cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:34:46, 2026-07-28 19:34:46))  
[2026-07-28 19:34:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:48] local.INFO: Model: Journal  
[2026-07-28 19:34:48] local.INFO: Data received: {"id":"776ea010-d890-4ea4-8812-f1fe454fa425","type":"Debit","amount":"90.00","rate":"127.500000","lcy_amount":"11610.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:34:48] local.INFO: ID present? YES  
[2026-07-28 19:34:48] local.INFO: ID value: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:34:48] local.INFO: ID empty? NO  
[2026-07-28 19:34:48] local.INFO: Attempting to find record with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:34:48] local.INFO: Record not found, creating new with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:34:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (776ea010-d890-4ea4-8812-f1fe454fa425, Debit, 90.00, 127.500000, 11610.000000, Buying TX: Funds into cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:34:48, 2026-07-28 19:34:48))  
[2026-07-28 19:34:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:34:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:34:54] local.INFO: Model: Journal  
[2026-07-28 19:34:54] local.INFO: Data received: {"id":"776ea010-d890-4ea4-8812-f1fe454fa425","type":"Debit","amount":"90.00","rate":"127.500000","lcy_amount":"11610.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:34:54] local.INFO: ID present? YES  
[2026-07-28 19:34:54] local.INFO: ID value: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:34:54] local.INFO: ID empty? NO  
[2026-07-28 19:34:54] local.INFO: Attempting to find record with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:34:54] local.INFO: Record not found, creating new with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:34:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (776ea010-d890-4ea4-8812-f1fe454fa425, Debit, 90.00, 127.500000, 11610.000000, Buying TX: Funds into cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:34:54, 2026-07-28 19:34:54))  
[2026-07-28 19:34:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:00] local.INFO: Model: Journal  
[2026-07-28 19:35:00] local.INFO: Data received: {"id":"776ea010-d890-4ea4-8812-f1fe454fa425","type":"Debit","amount":"90.00","rate":"127.500000","lcy_amount":"11610.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:35:00] local.INFO: ID present? YES  
[2026-07-28 19:35:00] local.INFO: ID value: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:35:00] local.INFO: ID empty? NO  
[2026-07-28 19:35:00] local.INFO: Attempting to find record with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:35:00] local.INFO: Record not found, creating new with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:35:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (776ea010-d890-4ea4-8812-f1fe454fa425, Debit, 90.00, 127.500000, 11610.000000, Buying TX: Funds into cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:35:00, 2026-07-28 19:35:00))  
[2026-07-28 19:35:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:06] local.INFO: Model: Journal  
[2026-07-28 19:35:06] local.INFO: Data received: {"id":"776ea010-d890-4ea4-8812-f1fe454fa425","type":"Debit","amount":"90.00","rate":"127.500000","lcy_amount":"11610.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:35:06] local.INFO: ID present? YES  
[2026-07-28 19:35:06] local.INFO: ID value: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:35:06] local.INFO: ID empty? NO  
[2026-07-28 19:35:06] local.INFO: Attempting to find record with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:35:06] local.INFO: Record not found, creating new with ID: 776ea010-d890-4ea4-8812-f1fe454fa425  
[2026-07-28 19:35:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (776ea010-d890-4ea4-8812-f1fe454fa425, Debit, 90.00, 127.500000, 11610.000000, Buying TX: Funds into cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:35:06, 2026-07-28 19:35:06))  
[2026-07-28 19:35:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:08] local.INFO: Model: Journal  
[2026-07-28 19:35:08] local.INFO: Data received: {"id":"7819714e-39d6-4000-b7e8-601874eb0d07","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3550-2026","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:35:08] local.INFO: ID present? YES  
[2026-07-28 19:35:08] local.INFO: ID value: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:08] local.INFO: ID empty? NO  
[2026-07-28 19:35:08] local.INFO: Attempting to find record with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:08] local.INFO: Record not found, creating new with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7819714e-39d6-4000-b7e8-601874eb0d07, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3550-2026, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:08, 2026-07-28 19:35:08))  
[2026-07-28 19:35:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:14] local.INFO: Model: Journal  
[2026-07-28 19:35:14] local.INFO: Data received: {"id":"7819714e-39d6-4000-b7e8-601874eb0d07","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3550-2026","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:35:14] local.INFO: ID present? YES  
[2026-07-28 19:35:14] local.INFO: ID value: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:14] local.INFO: ID empty? NO  
[2026-07-28 19:35:14] local.INFO: Attempting to find record with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:14] local.INFO: Record not found, creating new with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7819714e-39d6-4000-b7e8-601874eb0d07, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3550-2026, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:14, 2026-07-28 19:35:14))  
[2026-07-28 19:35:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:20] local.INFO: Model: Journal  
[2026-07-28 19:35:20] local.INFO: Data received: {"id":"7819714e-39d6-4000-b7e8-601874eb0d07","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3550-2026","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:35:20] local.INFO: ID present? YES  
[2026-07-28 19:35:20] local.INFO: ID value: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:20] local.INFO: ID empty? NO  
[2026-07-28 19:35:20] local.INFO: Attempting to find record with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:20] local.INFO: Record not found, creating new with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7819714e-39d6-4000-b7e8-601874eb0d07, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3550-2026, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:20, 2026-07-28 19:35:20))  
[2026-07-28 19:35:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:26] local.INFO: Model: Journal  
[2026-07-28 19:35:26] local.INFO: Data received: {"id":"7819714e-39d6-4000-b7e8-601874eb0d07","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3550-2026","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 19:35:26] local.INFO: ID present? YES  
[2026-07-28 19:35:26] local.INFO: ID value: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:26] local.INFO: ID empty? NO  
[2026-07-28 19:35:26] local.INFO: Attempting to find record with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:26] local.INFO: Record not found, creating new with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 19:35:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7819714e-39d6-4000-b7e8-601874eb0d07, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3550-2026, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ef52c646-0b38-4749-9bb4-08e4d4ee58de, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:26, 2026-07-28 19:35:26))  
[2026-07-28 19:35:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:28] local.INFO: Model: Journal  
[2026-07-28 19:35:28] local.INFO: Data received: {"id":"7832ed2c-488d-41b5-b1a3-9ca4388b99ae","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:35:28] local.INFO: ID present? YES  
[2026-07-28 19:35:28] local.INFO: ID value: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:28] local.INFO: ID empty? NO  
[2026-07-28 19:35:28] local.INFO: Attempting to find record with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:28] local.INFO: Record not found, creating new with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7832ed2c-488d-41b5-b1a3-9ca4388b99ae, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:28, 2026-07-28 19:35:28))  
[2026-07-28 19:35:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:34] local.INFO: Model: Journal  
[2026-07-28 19:35:34] local.INFO: Data received: {"id":"7832ed2c-488d-41b5-b1a3-9ca4388b99ae","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:35:34] local.INFO: ID present? YES  
[2026-07-28 19:35:34] local.INFO: ID value: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:34] local.INFO: ID empty? NO  
[2026-07-28 19:35:34] local.INFO: Attempting to find record with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:34] local.INFO: Record not found, creating new with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7832ed2c-488d-41b5-b1a3-9ca4388b99ae, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:34, 2026-07-28 19:35:34))  
[2026-07-28 19:35:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:40] local.INFO: Model: Journal  
[2026-07-28 19:35:40] local.INFO: Data received: {"id":"7832ed2c-488d-41b5-b1a3-9ca4388b99ae","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:35:40] local.INFO: ID present? YES  
[2026-07-28 19:35:40] local.INFO: ID value: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:40] local.INFO: ID empty? NO  
[2026-07-28 19:35:40] local.INFO: Attempting to find record with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:40] local.INFO: Record not found, creating new with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7832ed2c-488d-41b5-b1a3-9ca4388b99ae, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:40, 2026-07-28 19:35:40))  
[2026-07-28 19:35:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:47] local.INFO: Model: Journal  
[2026-07-28 19:35:47] local.INFO: Data received: {"id":"7832ed2c-488d-41b5-b1a3-9ca4388b99ae","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:35:47] local.INFO: ID present? YES  
[2026-07-28 19:35:47] local.INFO: ID value: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:47] local.INFO: ID empty? NO  
[2026-07-28 19:35:47] local.INFO: Attempting to find record with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:47] local.INFO: Record not found, creating new with ID: 7832ed2c-488d-41b5-b1a3-9ca4388b99ae  
[2026-07-28 19:35:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7832ed2c-488d-41b5-b1a3-9ca4388b99ae, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:47, 2026-07-28 19:35:47))  
[2026-07-28 19:35:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:48] local.INFO: Model: Journal  
[2026-07-28 19:35:48] local.INFO: Data received: {"id":"7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72","type":"Debit","amount":"120000.00","rate":null,"lcy_amount":"7200.000000","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f","transaction_id":null,"customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 17:27:45","updated_at":"2026-07-28 17:27:47"} 
[2026-07-28 19:35:48] local.INFO: ID present? YES  
[2026-07-28 19:35:48] local.INFO: ID value: 7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72  
[2026-07-28 19:35:48] local.INFO: ID empty? NO  
[2026-07-28 19:35:48] local.INFO: Attempting to find record with ID: 7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72  
[2026-07-28 19:35:48] local.INFO: Record not found, creating new with ID: 7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72  
[2026-07-28 19:35:48] local.INFO: Created record: {"id":"7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72","type":"Debit","amount":"120000.00","rate":null,"lcy_amount":"7200.000000","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f","transaction_id":null,"customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","updated_at":"2026-07-28T16:35:48.000000Z","created_at":"2026-07-28T16:35:48.000000Z","account":{"id":"fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f","name":"TZS-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-TZS-000001","is_fx_account":"1","balance":131000.0,"debit_total":131000.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"7a9f62d2-7f4d-45fe-9858-1cc080648691","teller_id":null,"customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-23T22:56:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:35:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:49] local.INFO: Model: Journal  
[2026-07-28 19:35:49] local.INFO: Data received: {"id":"7c5f6b97-eadd-4b35-a625-b14202e23e6a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:35:49] local.INFO: ID present? YES  
[2026-07-28 19:35:49] local.INFO: ID value: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:35:49] local.INFO: ID empty? NO  
[2026-07-28 19:35:49] local.INFO: Attempting to find record with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:35:49] local.INFO: Record not found, creating new with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:35:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7c5f6b97-eadd-4b35-a625-b14202e23e6a, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:49, 2026-07-28 19:35:49))  
[2026-07-28 19:35:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:35:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:35:56] local.INFO: Model: Journal  
[2026-07-28 19:35:56] local.INFO: Data received: {"id":"7c5f6b97-eadd-4b35-a625-b14202e23e6a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:35:56] local.INFO: ID present? YES  
[2026-07-28 19:35:56] local.INFO: ID value: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:35:56] local.INFO: ID empty? NO  
[2026-07-28 19:35:56] local.INFO: Attempting to find record with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:35:56] local.INFO: Record not found, creating new with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:35:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7c5f6b97-eadd-4b35-a625-b14202e23e6a, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:35:56, 2026-07-28 19:35:56))  
[2026-07-28 19:35:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:02] local.INFO: Model: Journal  
[2026-07-28 19:36:02] local.INFO: Data received: {"id":"7c5f6b97-eadd-4b35-a625-b14202e23e6a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:36:02] local.INFO: ID present? YES  
[2026-07-28 19:36:02] local.INFO: ID value: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:36:02] local.INFO: ID empty? NO  
[2026-07-28 19:36:02] local.INFO: Attempting to find record with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:36:02] local.INFO: Record not found, creating new with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:36:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7c5f6b97-eadd-4b35-a625-b14202e23e6a, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:02, 2026-07-28 19:36:02))  
[2026-07-28 19:36:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:08] local.INFO: Model: Journal  
[2026-07-28 19:36:08] local.INFO: Data received: {"id":"7c5f6b97-eadd-4b35-a625-b14202e23e6a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 19:36:08] local.INFO: ID present? YES  
[2026-07-28 19:36:08] local.INFO: ID value: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:36:08] local.INFO: ID empty? NO  
[2026-07-28 19:36:08] local.INFO: Attempting to find record with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:36:08] local.INFO: Record not found, creating new with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 19:36:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7c5f6b97-eadd-4b35-a625-b14202e23e6a, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 9ea1d2f4-d33c-4fb2-b56e-c2323582f359, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:08, 2026-07-28 19:36:08))  
[2026-07-28 19:36:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:09] local.INFO: Model: Journal  
[2026-07-28 19:36:09] local.INFO: Data received: {"id":"7cd7f9a1-a08b-4000-8ce0-357414e2574c","type":"Credit","amount":"210.00","rate":"127.500000","lcy_amount":"210.000000","narrative":"Gain on TR-3575-2026","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:59","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:36:09] local.INFO: ID present? YES  
[2026-07-28 19:36:09] local.INFO: ID value: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:09] local.INFO: ID empty? NO  
[2026-07-28 19:36:09] local.INFO: Attempting to find record with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:09] local.INFO: Record not found, creating new with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7cd7f9a1-a08b-4000-8ce0-357414e2574c, Credit, 210.00, 127.500000, 210.000000, Gain on TR-3575-2026, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:09, 2026-07-28 19:36:09))  
[2026-07-28 19:36:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:16] local.INFO: Model: Journal  
[2026-07-28 19:36:16] local.INFO: Data received: {"id":"7cd7f9a1-a08b-4000-8ce0-357414e2574c","type":"Credit","amount":"210.00","rate":"127.500000","lcy_amount":"210.000000","narrative":"Gain on TR-3575-2026","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:59","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:36:16] local.INFO: ID present? YES  
[2026-07-28 19:36:16] local.INFO: ID value: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:16] local.INFO: ID empty? NO  
[2026-07-28 19:36:16] local.INFO: Attempting to find record with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:16] local.INFO: Record not found, creating new with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7cd7f9a1-a08b-4000-8ce0-357414e2574c, Credit, 210.00, 127.500000, 210.000000, Gain on TR-3575-2026, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:16, 2026-07-28 19:36:16))  
[2026-07-28 19:36:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:22] local.INFO: Model: Journal  
[2026-07-28 19:36:22] local.INFO: Data received: {"id":"7cd7f9a1-a08b-4000-8ce0-357414e2574c","type":"Credit","amount":"210.00","rate":"127.500000","lcy_amount":"210.000000","narrative":"Gain on TR-3575-2026","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:59","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:36:22] local.INFO: ID present? YES  
[2026-07-28 19:36:22] local.INFO: ID value: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:22] local.INFO: ID empty? NO  
[2026-07-28 19:36:22] local.INFO: Attempting to find record with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:22] local.INFO: Record not found, creating new with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7cd7f9a1-a08b-4000-8ce0-357414e2574c, Credit, 210.00, 127.500000, 210.000000, Gain on TR-3575-2026, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:22, 2026-07-28 19:36:22))  
[2026-07-28 19:36:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:28] local.INFO: Model: Journal  
[2026-07-28 19:36:28] local.INFO: Data received: {"id":"7cd7f9a1-a08b-4000-8ce0-357414e2574c","type":"Credit","amount":"210.00","rate":"127.500000","lcy_amount":"210.000000","narrative":"Gain on TR-3575-2026","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:59","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 19:36:28] local.INFO: ID present? YES  
[2026-07-28 19:36:28] local.INFO: ID value: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:28] local.INFO: ID empty? NO  
[2026-07-28 19:36:28] local.INFO: Attempting to find record with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:28] local.INFO: Record not found, creating new with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 19:36:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7cd7f9a1-a08b-4000-8ce0-357414e2574c, Credit, 210.00, 127.500000, 210.000000, Gain on TR-3575-2026, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:28, 2026-07-28 19:36:28))  
[2026-07-28 19:36:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:29] local.INFO: Model: Journal  
[2026-07-28 19:36:29] local.INFO: Data received: {"id":"7ed62258-e86b-4f86-8c8d-726b3f6299a5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:36:29] local.INFO: ID present? YES  
[2026-07-28 19:36:29] local.INFO: ID value: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:29] local.INFO: ID empty? NO  
[2026-07-28 19:36:29] local.INFO: Attempting to find record with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:29] local.INFO: Record not found, creating new with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7ed62258-e86b-4f86-8c8d-726b3f6299a5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:29, 2026-07-28 19:36:29))  
[2026-07-28 19:36:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:36] local.INFO: Model: Journal  
[2026-07-28 19:36:36] local.INFO: Data received: {"id":"7ed62258-e86b-4f86-8c8d-726b3f6299a5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:36:36] local.INFO: ID present? YES  
[2026-07-28 19:36:36] local.INFO: ID value: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:36] local.INFO: ID empty? NO  
[2026-07-28 19:36:36] local.INFO: Attempting to find record with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:36] local.INFO: Record not found, creating new with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7ed62258-e86b-4f86-8c8d-726b3f6299a5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:36, 2026-07-28 19:36:36))  
[2026-07-28 19:36:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:42] local.INFO: Model: Journal  
[2026-07-28 19:36:42] local.INFO: Data received: {"id":"7ed62258-e86b-4f86-8c8d-726b3f6299a5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:36:42] local.INFO: ID present? YES  
[2026-07-28 19:36:42] local.INFO: ID value: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:42] local.INFO: ID empty? NO  
[2026-07-28 19:36:42] local.INFO: Attempting to find record with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:42] local.INFO: Record not found, creating new with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7ed62258-e86b-4f86-8c8d-726b3f6299a5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:42, 2026-07-28 19:36:42))  
[2026-07-28 19:36:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:48] local.INFO: Model: Journal  
[2026-07-28 19:36:48] local.INFO: Data received: {"id":"7ed62258-e86b-4f86-8c8d-726b3f6299a5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:36:48] local.INFO: ID present? YES  
[2026-07-28 19:36:48] local.INFO: ID value: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:48] local.INFO: ID empty? NO  
[2026-07-28 19:36:48] local.INFO: Attempting to find record with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:48] local.INFO: Record not found, creating new with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 19:36:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (7ed62258-e86b-4f86-8c8d-726b3f6299a5, Credit, 12750.00, 127.500000, 12750.000000, Buying TX: Funds out of cashbox, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:36:48, 2026-07-28 19:36:48))  
[2026-07-28 19:36:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:50] local.INFO: Model: Journal  
[2026-07-28 19:36:50] local.INFO: Data received: {"id":"80c81563-b39e-496a-8a72-2d428d22404c","type":"Credit","amount":"2750.00","rate":null,"lcy_amount":"354750.000000","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 18:36:03","updated_at":"2026-07-28 18:36:04"} 
[2026-07-28 19:36:50] local.INFO: ID present? YES  
[2026-07-28 19:36:50] local.INFO: ID value: 80c81563-b39e-496a-8a72-2d428d22404c  
[2026-07-28 19:36:50] local.INFO: ID empty? NO  
[2026-07-28 19:36:50] local.INFO: Attempting to find record with ID: 80c81563-b39e-496a-8a72-2d428d22404c  
[2026-07-28 19:36:50] local.INFO: Record not found, creating new with ID: 80c81563-b39e-496a-8a72-2d428d22404c  
[2026-07-28 19:36:50] local.INFO: Created record: {"id":"80c81563-b39e-496a-8a72-2d428d22404c","type":"Credit","amount":"2750.00","rate":null,"lcy_amount":"354750.000000","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T16:36:50.000000Z","created_at":"2026-07-28T16:36:50.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-3411.88999999999987267074175179004669189453125,"debit_total":"56052.11","credit_total":59464.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:14:41.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:36:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:51] local.INFO: Model: Journal  
[2026-07-28 19:36:51] local.INFO: Data received: {"id":"80f0d72d-5f60-4ada-8095-fcf569baeeb6","type":"Credit","amount":"5000.00","rate":"129.400000","lcy_amount":"645000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:36:51] local.INFO: ID present? YES  
[2026-07-28 19:36:51] local.INFO: ID value: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:36:51] local.INFO: ID empty? NO  
[2026-07-28 19:36:51] local.INFO: Attempting to find record with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:36:51] local.INFO: Record not found, creating new with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:36:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (80f0d72d-5f60-4ada-8095-fcf569baeeb6, Credit, 5000.00, 129.400000, 645000.000000, Selling TX: Funds out of cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:36:51, 2026-07-28 19:36:51))  
[2026-07-28 19:36:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:36:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:36:57] local.INFO: Model: Journal  
[2026-07-28 19:36:57] local.INFO: Data received: {"id":"80f0d72d-5f60-4ada-8095-fcf569baeeb6","type":"Credit","amount":"5000.00","rate":"129.400000","lcy_amount":"645000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:36:57] local.INFO: ID present? YES  
[2026-07-28 19:36:57] local.INFO: ID value: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:36:57] local.INFO: ID empty? NO  
[2026-07-28 19:36:57] local.INFO: Attempting to find record with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:36:57] local.INFO: Record not found, creating new with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:36:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (80f0d72d-5f60-4ada-8095-fcf569baeeb6, Credit, 5000.00, 129.400000, 645000.000000, Selling TX: Funds out of cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:36:57, 2026-07-28 19:36:57))  
[2026-07-28 19:36:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:03] local.INFO: Model: Journal  
[2026-07-28 19:37:03] local.INFO: Data received: {"id":"80f0d72d-5f60-4ada-8095-fcf569baeeb6","type":"Credit","amount":"5000.00","rate":"129.400000","lcy_amount":"645000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:37:03] local.INFO: ID present? YES  
[2026-07-28 19:37:03] local.INFO: ID value: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:37:03] local.INFO: ID empty? NO  
[2026-07-28 19:37:03] local.INFO: Attempting to find record with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:37:03] local.INFO: Record not found, creating new with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:37:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (80f0d72d-5f60-4ada-8095-fcf569baeeb6, Credit, 5000.00, 129.400000, 645000.000000, Selling TX: Funds out of cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:37:03, 2026-07-28 19:37:03))  
[2026-07-28 19:37:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:10] local.INFO: Model: Journal  
[2026-07-28 19:37:10] local.INFO: Data received: {"id":"80f0d72d-5f60-4ada-8095-fcf569baeeb6","type":"Credit","amount":"5000.00","rate":"129.400000","lcy_amount":"645000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:37:10] local.INFO: ID present? YES  
[2026-07-28 19:37:10] local.INFO: ID value: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:37:10] local.INFO: ID empty? NO  
[2026-07-28 19:37:10] local.INFO: Attempting to find record with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:37:10] local.INFO: Record not found, creating new with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 19:37:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (80f0d72d-5f60-4ada-8095-fcf569baeeb6, Credit, 5000.00, 129.400000, 645000.000000, Selling TX: Funds out of cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:37:10, 2026-07-28 19:37:10))  
[2026-07-28 19:37:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:11] local.INFO: Model: Journal  
[2026-07-28 19:37:11] local.INFO: Data received: {"id":"82999d37-f651-4915-8aaf-e61e7a91cc5f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3540-2026","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:37:11] local.INFO: ID present? YES  
[2026-07-28 19:37:11] local.INFO: ID value: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:11] local.INFO: ID empty? NO  
[2026-07-28 19:37:11] local.INFO: Attempting to find record with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:11] local.INFO: Record not found, creating new with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82999d37-f651-4915-8aaf-e61e7a91cc5f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3540-2026, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:11, 2026-07-28 19:37:11))  
[2026-07-28 19:37:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:17] local.INFO: Model: Journal  
[2026-07-28 19:37:17] local.INFO: Data received: {"id":"82999d37-f651-4915-8aaf-e61e7a91cc5f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3540-2026","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:37:17] local.INFO: ID present? YES  
[2026-07-28 19:37:17] local.INFO: ID value: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:17] local.INFO: ID empty? NO  
[2026-07-28 19:37:17] local.INFO: Attempting to find record with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:17] local.INFO: Record not found, creating new with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82999d37-f651-4915-8aaf-e61e7a91cc5f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3540-2026, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:17, 2026-07-28 19:37:17))  
[2026-07-28 19:37:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:23] local.INFO: Model: Journal  
[2026-07-28 19:37:23] local.INFO: Data received: {"id":"82999d37-f651-4915-8aaf-e61e7a91cc5f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3540-2026","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:37:23] local.INFO: ID present? YES  
[2026-07-28 19:37:23] local.INFO: ID value: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:23] local.INFO: ID empty? NO  
[2026-07-28 19:37:23] local.INFO: Attempting to find record with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:23] local.INFO: Record not found, creating new with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82999d37-f651-4915-8aaf-e61e7a91cc5f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3540-2026, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:23, 2026-07-28 19:37:23))  
[2026-07-28 19:37:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:30] local.INFO: Model: Journal  
[2026-07-28 19:37:30] local.INFO: Data received: {"id":"82999d37-f651-4915-8aaf-e61e7a91cc5f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3540-2026","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:37:30] local.INFO: ID present? YES  
[2026-07-28 19:37:30] local.INFO: ID value: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:30] local.INFO: ID empty? NO  
[2026-07-28 19:37:30] local.INFO: Attempting to find record with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:30] local.INFO: Record not found, creating new with ID: 82999d37-f651-4915-8aaf-e61e7a91cc5f  
[2026-07-28 19:37:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82999d37-f651-4915-8aaf-e61e7a91cc5f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3540-2026, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:30, 2026-07-28 19:37:30))  
[2026-07-28 19:37:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:31] local.INFO: Model: Journal  
[2026-07-28 19:37:31] local.INFO: Data received: {"id":"82ca8661-21fe-4a82-a136-f43ae4f97d5a","type":"Credit","amount":"80.00","rate":"125.000000","lcy_amount":"80.000000","narrative":"Gain on TR-3544-2026","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:37:31] local.INFO: ID present? YES  
[2026-07-28 19:37:31] local.INFO: ID value: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:31] local.INFO: ID empty? NO  
[2026-07-28 19:37:31] local.INFO: Attempting to find record with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:31] local.INFO: Record not found, creating new with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82ca8661-21fe-4a82-a136-f43ae4f97d5a, Credit, 80.00, 125.000000, 80.000000, Gain on TR-3544-2026, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:31, 2026-07-28 19:37:31))  
[2026-07-28 19:37:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:37] local.INFO: Model: Journal  
[2026-07-28 19:37:37] local.INFO: Data received: {"id":"82ca8661-21fe-4a82-a136-f43ae4f97d5a","type":"Credit","amount":"80.00","rate":"125.000000","lcy_amount":"80.000000","narrative":"Gain on TR-3544-2026","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:37:37] local.INFO: ID present? YES  
[2026-07-28 19:37:37] local.INFO: ID value: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:37] local.INFO: ID empty? NO  
[2026-07-28 19:37:37] local.INFO: Attempting to find record with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:37] local.INFO: Record not found, creating new with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82ca8661-21fe-4a82-a136-f43ae4f97d5a, Credit, 80.00, 125.000000, 80.000000, Gain on TR-3544-2026, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:37, 2026-07-28 19:37:37))  
[2026-07-28 19:37:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:43] local.INFO: Model: Journal  
[2026-07-28 19:37:43] local.INFO: Data received: {"id":"82ca8661-21fe-4a82-a136-f43ae4f97d5a","type":"Credit","amount":"80.00","rate":"125.000000","lcy_amount":"80.000000","narrative":"Gain on TR-3544-2026","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:37:43] local.INFO: ID present? YES  
[2026-07-28 19:37:43] local.INFO: ID value: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:43] local.INFO: ID empty? NO  
[2026-07-28 19:37:43] local.INFO: Attempting to find record with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:43] local.INFO: Record not found, creating new with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82ca8661-21fe-4a82-a136-f43ae4f97d5a, Credit, 80.00, 125.000000, 80.000000, Gain on TR-3544-2026, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:43, 2026-07-28 19:37:43))  
[2026-07-28 19:37:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:50] local.INFO: Model: Journal  
[2026-07-28 19:37:50] local.INFO: Data received: {"id":"82ca8661-21fe-4a82-a136-f43ae4f97d5a","type":"Credit","amount":"80.00","rate":"125.000000","lcy_amount":"80.000000","narrative":"Gain on TR-3544-2026","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:37:50] local.INFO: ID present? YES  
[2026-07-28 19:37:50] local.INFO: ID value: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:50] local.INFO: ID empty? NO  
[2026-07-28 19:37:50] local.INFO: Attempting to find record with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:50] local.INFO: Record not found, creating new with ID: 82ca8661-21fe-4a82-a136-f43ae4f97d5a  
[2026-07-28 19:37:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (82ca8661-21fe-4a82-a136-f43ae4f97d5a, Credit, 80.00, 125.000000, 80.000000, Gain on TR-3544-2026, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:37:50, 2026-07-28 19:37:50))  
[2026-07-28 19:37:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:52] local.INFO: Model: Journal  
[2026-07-28 19:37:52] local.INFO: Data received: {"id":"84ca5c79-939f-4fad-af03-e0c7e5aa48e4","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:37:52] local.INFO: ID present? YES  
[2026-07-28 19:37:52] local.INFO: ID value: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:37:52] local.INFO: ID empty? NO  
[2026-07-28 19:37:52] local.INFO: Attempting to find record with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:37:52] local.INFO: Record not found, creating new with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:37:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (84ca5c79-939f-4fad-af03-e0c7e5aa48e4, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:37:52, 2026-07-28 19:37:52))  
[2026-07-28 19:37:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:37:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:37:59] local.INFO: Model: Journal  
[2026-07-28 19:37:59] local.INFO: Data received: {"id":"84ca5c79-939f-4fad-af03-e0c7e5aa48e4","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:37:59] local.INFO: ID present? YES  
[2026-07-28 19:37:59] local.INFO: ID value: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:37:59] local.INFO: ID empty? NO  
[2026-07-28 19:37:59] local.INFO: Attempting to find record with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:37:59] local.INFO: Record not found, creating new with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:37:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (84ca5c79-939f-4fad-af03-e0c7e5aa48e4, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:37:59, 2026-07-28 19:37:59))  
[2026-07-28 19:37:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:05] local.INFO: Model: Journal  
[2026-07-28 19:38:05] local.INFO: Data received: {"id":"84ca5c79-939f-4fad-af03-e0c7e5aa48e4","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:38:05] local.INFO: ID present? YES  
[2026-07-28 19:38:05] local.INFO: ID value: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:38:05] local.INFO: ID empty? NO  
[2026-07-28 19:38:05] local.INFO: Attempting to find record with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:38:05] local.INFO: Record not found, creating new with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:38:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (84ca5c79-939f-4fad-af03-e0c7e5aa48e4, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:38:05, 2026-07-28 19:38:05))  
[2026-07-28 19:38:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:11] local.INFO: Model: Journal  
[2026-07-28 19:38:11] local.INFO: Data received: {"id":"84ca5c79-939f-4fad-af03-e0c7e5aa48e4","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:38:11] local.INFO: ID present? YES  
[2026-07-28 19:38:11] local.INFO: ID value: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:38:11] local.INFO: ID empty? NO  
[2026-07-28 19:38:11] local.INFO: Attempting to find record with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:38:11] local.INFO: Record not found, creating new with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 19:38:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (84ca5c79-939f-4fad-af03-e0c7e5aa48e4, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:38:11, 2026-07-28 19:38:11))  
[2026-07-28 19:38:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:13] local.INFO: Model: Journal  
[2026-07-28 19:38:13] local.INFO: Data received: {"id":"858740ec-2cb2-4aab-b7a9-0029dad75440","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3585-2026","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:38:13] local.INFO: ID present? YES  
[2026-07-28 19:38:13] local.INFO: ID value: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:13] local.INFO: ID empty? NO  
[2026-07-28 19:38:13] local.INFO: Attempting to find record with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:13] local.INFO: Record not found, creating new with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (858740ec-2cb2-4aab-b7a9-0029dad75440, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3585-2026, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:13, 2026-07-28 19:38:13))  
[2026-07-28 19:38:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:19] local.INFO: Model: Journal  
[2026-07-28 19:38:19] local.INFO: Data received: {"id":"858740ec-2cb2-4aab-b7a9-0029dad75440","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3585-2026","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:38:19] local.INFO: ID present? YES  
[2026-07-28 19:38:19] local.INFO: ID value: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:19] local.INFO: ID empty? NO  
[2026-07-28 19:38:19] local.INFO: Attempting to find record with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:19] local.INFO: Record not found, creating new with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (858740ec-2cb2-4aab-b7a9-0029dad75440, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3585-2026, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:19, 2026-07-28 19:38:19))  
[2026-07-28 19:38:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:25] local.INFO: Model: Journal  
[2026-07-28 19:38:25] local.INFO: Data received: {"id":"858740ec-2cb2-4aab-b7a9-0029dad75440","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3585-2026","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:38:25] local.INFO: ID present? YES  
[2026-07-28 19:38:25] local.INFO: ID value: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:25] local.INFO: ID empty? NO  
[2026-07-28 19:38:25] local.INFO: Attempting to find record with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:25] local.INFO: Record not found, creating new with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (858740ec-2cb2-4aab-b7a9-0029dad75440, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3585-2026, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:25, 2026-07-28 19:38:25))  
[2026-07-28 19:38:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:31] local.INFO: Model: Journal  
[2026-07-28 19:38:31] local.INFO: Data received: {"id":"858740ec-2cb2-4aab-b7a9-0029dad75440","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3585-2026","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 19:38:31] local.INFO: ID present? YES  
[2026-07-28 19:38:31] local.INFO: ID value: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:31] local.INFO: ID empty? NO  
[2026-07-28 19:38:31] local.INFO: Attempting to find record with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:31] local.INFO: Record not found, creating new with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 19:38:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (858740ec-2cb2-4aab-b7a9-0029dad75440, Credit, 150.00, 127.500000, 150.000000, Gain on TR-3585-2026, 37c8e497-806e-48db-81fb-af483f7431cd, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 37c8e497-806e-48db-81fb-af483f7431cd, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:31, 2026-07-28 19:38:31))  
[2026-07-28 19:38:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:33] local.INFO: Model: Journal  
[2026-07-28 19:38:33] local.INFO: Data received: {"id":"87162659-78aa-48f1-9ef1-e3744015325d","type":"Credit","amount":"120000.00","rate":null,"lcy_amount":"7200.000000","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":null,"customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 17:27:45","updated_at":"2026-07-28 17:27:47"} 
[2026-07-28 19:38:33] local.INFO: ID present? YES  
[2026-07-28 19:38:33] local.INFO: ID value: 87162659-78aa-48f1-9ef1-e3744015325d  
[2026-07-28 19:38:33] local.INFO: ID empty? NO  
[2026-07-28 19:38:33] local.INFO: Attempting to find record with ID: 87162659-78aa-48f1-9ef1-e3744015325d  
[2026-07-28 19:38:33] local.INFO: Record not found, creating new with ID: 87162659-78aa-48f1-9ef1-e3744015325d  
[2026-07-28 19:38:33] local.INFO: Created record: {"id":"87162659-78aa-48f1-9ef1-e3744015325d","type":"Credit","amount":"120000.00","rate":null,"lcy_amount":"7200.000000","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":null,"customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","updated_at":"2026-07-28T16:38:33.000000Z","created_at":"2026-07-28T16:38:33.000000Z","account":{"id":"8df29516-125f-421a-9545-6cf63ea60c7c","name":"TZS-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-TZS-000002","is_fx_account":"1","balance":-120000.0,"debit_total":"11000.00","credit_total":131000.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"7a9f62d2-7f4d-45fe-9858-1cc080648691","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-06-29T15:38:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:38:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:34] local.INFO: Model: Journal  
[2026-07-28 19:38:34] local.INFO: Data received: {"id":"87ed216d-77f1-4e96-b69a-c20ebbde20b5","type":"Credit","amount":"160.00","rate":null,"lcy_amount":"24192.000000","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:27:23","updated_at":"2026-07-28 17:27:25"} 
[2026-07-28 19:38:34] local.INFO: ID present? YES  
[2026-07-28 19:38:34] local.INFO: ID value: 87ed216d-77f1-4e96-b69a-c20ebbde20b5  
[2026-07-28 19:38:34] local.INFO: ID empty? NO  
[2026-07-28 19:38:34] local.INFO: Attempting to find record with ID: 87ed216d-77f1-4e96-b69a-c20ebbde20b5  
[2026-07-28 19:38:34] local.INFO: Record not found, creating new with ID: 87ed216d-77f1-4e96-b69a-c20ebbde20b5  
[2026-07-28 19:38:34] local.INFO: Created record: {"id":"87ed216d-77f1-4e96-b69a-c20ebbde20b5","type":"Credit","amount":"160.00","rate":null,"lcy_amount":"24192.000000","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T16:38:34.000000Z","created_at":"2026-07-28T16:38:34.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":6695.0,"debit_total":"13035.00","credit_total":6340.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T08:02:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:38:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:35] local.INFO: Model: Journal  
[2026-07-28 19:38:35] local.INFO: Data received: {"id":"89042e5c-68b7-4890-b1f8-4f6c3ecf93c4","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3569-2026","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:38:35] local.INFO: ID present? YES  
[2026-07-28 19:38:35] local.INFO: ID value: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:35] local.INFO: ID empty? NO  
[2026-07-28 19:38:35] local.INFO: Attempting to find record with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:35] local.INFO: Record not found, creating new with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89042e5c-68b7-4890-b1f8-4f6c3ecf93c4, Credit, 155.00, 145.000000, 155.000000, Gain on TR-3569-2026, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:35, 2026-07-28 19:38:35))  
[2026-07-28 19:38:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:41] local.INFO: Model: Journal  
[2026-07-28 19:38:41] local.INFO: Data received: {"id":"89042e5c-68b7-4890-b1f8-4f6c3ecf93c4","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3569-2026","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:38:41] local.INFO: ID present? YES  
[2026-07-28 19:38:41] local.INFO: ID value: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:41] local.INFO: ID empty? NO  
[2026-07-28 19:38:41] local.INFO: Attempting to find record with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:41] local.INFO: Record not found, creating new with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89042e5c-68b7-4890-b1f8-4f6c3ecf93c4, Credit, 155.00, 145.000000, 155.000000, Gain on TR-3569-2026, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:41, 2026-07-28 19:38:41))  
[2026-07-28 19:38:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:48] local.INFO: Model: Journal  
[2026-07-28 19:38:48] local.INFO: Data received: {"id":"89042e5c-68b7-4890-b1f8-4f6c3ecf93c4","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3569-2026","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:38:48] local.INFO: ID present? YES  
[2026-07-28 19:38:48] local.INFO: ID value: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:48] local.INFO: ID empty? NO  
[2026-07-28 19:38:48] local.INFO: Attempting to find record with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:48] local.INFO: Record not found, creating new with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89042e5c-68b7-4890-b1f8-4f6c3ecf93c4, Credit, 155.00, 145.000000, 155.000000, Gain on TR-3569-2026, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:48, 2026-07-28 19:38:48))  
[2026-07-28 19:38:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:54] local.INFO: Model: Journal  
[2026-07-28 19:38:54] local.INFO: Data received: {"id":"89042e5c-68b7-4890-b1f8-4f6c3ecf93c4","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3569-2026","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 19:38:54] local.INFO: ID present? YES  
[2026-07-28 19:38:54] local.INFO: ID value: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:54] local.INFO: ID empty? NO  
[2026-07-28 19:38:54] local.INFO: Attempting to find record with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:54] local.INFO: Record not found, creating new with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 19:38:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89042e5c-68b7-4890-b1f8-4f6c3ecf93c4, Credit, 155.00, 145.000000, 155.000000, Gain on TR-3569-2026, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0ff78218-5a23-4a19-8495-6bdeac5993f8, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:54, 2026-07-28 19:38:54))  
[2026-07-28 19:38:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:38:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:38:55] local.INFO: Model: Journal  
[2026-07-28 19:38:55] local.INFO: Data received: {"id":"89a14055-2235-443b-bd8b-5ef4c9ec30b7","type":"Credit","amount":"3100.00","rate":"145.000000","lcy_amount":"3100.000000","narrative":"Gain on TR-3545-2026","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:38:55] local.INFO: ID present? YES  
[2026-07-28 19:38:55] local.INFO: ID value: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:38:55] local.INFO: ID empty? NO  
[2026-07-28 19:38:55] local.INFO: Attempting to find record with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:38:55] local.INFO: Record not found, creating new with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:38:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89a14055-2235-443b-bd8b-5ef4c9ec30b7, Credit, 3100.00, 145.000000, 3100.000000, Gain on TR-3545-2026, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:38:55, 2026-07-28 19:38:55))  
[2026-07-28 19:38:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:01] local.INFO: Model: Journal  
[2026-07-28 19:39:01] local.INFO: Data received: {"id":"89a14055-2235-443b-bd8b-5ef4c9ec30b7","type":"Credit","amount":"3100.00","rate":"145.000000","lcy_amount":"3100.000000","narrative":"Gain on TR-3545-2026","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:39:01] local.INFO: ID present? YES  
[2026-07-28 19:39:01] local.INFO: ID value: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:01] local.INFO: ID empty? NO  
[2026-07-28 19:39:01] local.INFO: Attempting to find record with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:01] local.INFO: Record not found, creating new with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89a14055-2235-443b-bd8b-5ef4c9ec30b7, Credit, 3100.00, 145.000000, 3100.000000, Gain on TR-3545-2026, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:01, 2026-07-28 19:39:01))  
[2026-07-28 19:39:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:08] local.INFO: Model: Journal  
[2026-07-28 19:39:08] local.INFO: Data received: {"id":"89a14055-2235-443b-bd8b-5ef4c9ec30b7","type":"Credit","amount":"3100.00","rate":"145.000000","lcy_amount":"3100.000000","narrative":"Gain on TR-3545-2026","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:39:08] local.INFO: ID present? YES  
[2026-07-28 19:39:08] local.INFO: ID value: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:08] local.INFO: ID empty? NO  
[2026-07-28 19:39:08] local.INFO: Attempting to find record with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:08] local.INFO: Record not found, creating new with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89a14055-2235-443b-bd8b-5ef4c9ec30b7, Credit, 3100.00, 145.000000, 3100.000000, Gain on TR-3545-2026, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:08, 2026-07-28 19:39:08))  
[2026-07-28 19:39:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:14] local.INFO: Model: Journal  
[2026-07-28 19:39:14] local.INFO: Data received: {"id":"89a14055-2235-443b-bd8b-5ef4c9ec30b7","type":"Credit","amount":"3100.00","rate":"145.000000","lcy_amount":"3100.000000","narrative":"Gain on TR-3545-2026","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:39:14] local.INFO: ID present? YES  
[2026-07-28 19:39:14] local.INFO: ID value: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:14] local.INFO: ID empty? NO  
[2026-07-28 19:39:14] local.INFO: Attempting to find record with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:14] local.INFO: Record not found, creating new with ID: 89a14055-2235-443b-bd8b-5ef4c9ec30b7  
[2026-07-28 19:39:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89a14055-2235-443b-bd8b-5ef4c9ec30b7, Credit, 3100.00, 145.000000, 3100.000000, Gain on TR-3545-2026, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:14, 2026-07-28 19:39:14))  
[2026-07-28 19:39:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:15] local.INFO: Model: Journal  
[2026-07-28 19:39:15] local.INFO: Data received: {"id":"89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:39:15] local.INFO: ID present? YES  
[2026-07-28 19:39:15] local.INFO: ID value: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:15] local.INFO: ID empty? NO  
[2026-07-28 19:39:15] local.INFO: Attempting to find record with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:15] local.INFO: Record not found, creating new with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:15, 2026-07-28 19:39:15))  
[2026-07-28 19:39:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:22] local.INFO: Model: Journal  
[2026-07-28 19:39:22] local.INFO: Data received: {"id":"89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:39:22] local.INFO: ID present? YES  
[2026-07-28 19:39:22] local.INFO: ID value: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:22] local.INFO: ID empty? NO  
[2026-07-28 19:39:22] local.INFO: Attempting to find record with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:22] local.INFO: Record not found, creating new with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:22, 2026-07-28 19:39:22))  
[2026-07-28 19:39:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:28] local.INFO: Model: Journal  
[2026-07-28 19:39:28] local.INFO: Data received: {"id":"89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:39:28] local.INFO: ID present? YES  
[2026-07-28 19:39:28] local.INFO: ID value: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:28] local.INFO: ID empty? NO  
[2026-07-28 19:39:28] local.INFO: Attempting to find record with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:28] local.INFO: Record not found, creating new with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:28, 2026-07-28 19:39:28))  
[2026-07-28 19:39:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:34] local.INFO: Model: Journal  
[2026-07-28 19:39:34] local.INFO: Data received: {"id":"89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:39:34] local.INFO: ID present? YES  
[2026-07-28 19:39:34] local.INFO: ID value: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:34] local.INFO: ID empty? NO  
[2026-07-28 19:39:34] local.INFO: Attempting to find record with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:34] local.INFO: Record not found, creating new with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 19:39:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:34, 2026-07-28 19:39:34))  
[2026-07-28 19:39:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:35] local.INFO: Model: Journal  
[2026-07-28 19:39:35] local.INFO: Data received: {"id":"8a1160e3-d36b-4fa2-82b8-fc632393a8c5","type":"Credit","amount":"225.00","rate":"150.700000","lcy_amount":"34020.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:39:35] local.INFO: ID present? YES  
[2026-07-28 19:39:35] local.INFO: ID value: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:35] local.INFO: ID empty? NO  
[2026-07-28 19:39:35] local.INFO: Attempting to find record with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:36] local.INFO: Record not found, creating new with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a1160e3-d36b-4fa2-82b8-fc632393a8c5, Credit, 225.00, 150.700000, 34020.000000, Selling TX: Funds out of cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:39:36, 2026-07-28 19:39:36))  
[2026-07-28 19:39:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:42] local.INFO: Model: Journal  
[2026-07-28 19:39:42] local.INFO: Data received: {"id":"8a1160e3-d36b-4fa2-82b8-fc632393a8c5","type":"Credit","amount":"225.00","rate":"150.700000","lcy_amount":"34020.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:39:42] local.INFO: ID present? YES  
[2026-07-28 19:39:42] local.INFO: ID value: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:42] local.INFO: ID empty? NO  
[2026-07-28 19:39:42] local.INFO: Attempting to find record with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:42] local.INFO: Record not found, creating new with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a1160e3-d36b-4fa2-82b8-fc632393a8c5, Credit, 225.00, 150.700000, 34020.000000, Selling TX: Funds out of cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:39:42, 2026-07-28 19:39:42))  
[2026-07-28 19:39:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:48] local.INFO: Model: Journal  
[2026-07-28 19:39:48] local.INFO: Data received: {"id":"8a1160e3-d36b-4fa2-82b8-fc632393a8c5","type":"Credit","amount":"225.00","rate":"150.700000","lcy_amount":"34020.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:39:48] local.INFO: ID present? YES  
[2026-07-28 19:39:48] local.INFO: ID value: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:48] local.INFO: ID empty? NO  
[2026-07-28 19:39:48] local.INFO: Attempting to find record with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:48] local.INFO: Record not found, creating new with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a1160e3-d36b-4fa2-82b8-fc632393a8c5, Credit, 225.00, 150.700000, 34020.000000, Selling TX: Funds out of cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:39:48, 2026-07-28 19:39:48))  
[2026-07-28 19:39:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:54] local.INFO: Model: Journal  
[2026-07-28 19:39:54] local.INFO: Data received: {"id":"8a1160e3-d36b-4fa2-82b8-fc632393a8c5","type":"Credit","amount":"225.00","rate":"150.700000","lcy_amount":"34020.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 19:39:54] local.INFO: ID present? YES  
[2026-07-28 19:39:54] local.INFO: ID value: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:54] local.INFO: ID empty? NO  
[2026-07-28 19:39:54] local.INFO: Attempting to find record with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:54] local.INFO: Record not found, creating new with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 19:39:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a1160e3-d36b-4fa2-82b8-fc632393a8c5, Credit, 225.00, 150.700000, 34020.000000, Selling TX: Funds out of cashbox, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:39:54, 2026-07-28 19:39:54))  
[2026-07-28 19:39:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:39:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:39:56] local.INFO: Model: Journal  
[2026-07-28 19:39:56] local.INFO: Data received: {"id":"8a431d0f-4c58-494e-8161-bf7aae9141ab","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3571-2026","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:39:56] local.INFO: ID present? YES  
[2026-07-28 19:39:56] local.INFO: ID value: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:39:56] local.INFO: ID empty? NO  
[2026-07-28 19:39:56] local.INFO: Attempting to find record with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:39:56] local.INFO: Record not found, creating new with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:39:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a431d0f-4c58-494e-8161-bf7aae9141ab, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3571-2026, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:39:56, 2026-07-28 19:39:56))  
[2026-07-28 19:39:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:02] local.INFO: Model: Journal  
[2026-07-28 19:40:02] local.INFO: Data received: {"id":"8a431d0f-4c58-494e-8161-bf7aae9141ab","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3571-2026","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:40:02] local.INFO: ID present? YES  
[2026-07-28 19:40:02] local.INFO: ID value: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:02] local.INFO: ID empty? NO  
[2026-07-28 19:40:02] local.INFO: Attempting to find record with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:02] local.INFO: Record not found, creating new with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a431d0f-4c58-494e-8161-bf7aae9141ab, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3571-2026, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:02, 2026-07-28 19:40:02))  
[2026-07-28 19:40:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:08] local.INFO: Model: Journal  
[2026-07-28 19:40:08] local.INFO: Data received: {"id":"8a431d0f-4c58-494e-8161-bf7aae9141ab","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3571-2026","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:40:08] local.INFO: ID present? YES  
[2026-07-28 19:40:08] local.INFO: ID value: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:08] local.INFO: ID empty? NO  
[2026-07-28 19:40:08] local.INFO: Attempting to find record with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:08] local.INFO: Record not found, creating new with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a431d0f-4c58-494e-8161-bf7aae9141ab, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3571-2026, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:08, 2026-07-28 19:40:08))  
[2026-07-28 19:40:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:15] local.INFO: Model: Journal  
[2026-07-28 19:40:15] local.INFO: Data received: {"id":"8a431d0f-4c58-494e-8161-bf7aae9141ab","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3571-2026","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:40:15] local.INFO: ID present? YES  
[2026-07-28 19:40:15] local.INFO: ID value: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:15] local.INFO: ID empty? NO  
[2026-07-28 19:40:15] local.INFO: Attempting to find record with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:15] local.INFO: Record not found, creating new with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 19:40:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8a431d0f-4c58-494e-8161-bf7aae9141ab, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3571-2026, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:15, 2026-07-28 19:40:15))  
[2026-07-28 19:40:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:16] local.INFO: Model: Journal  
[2026-07-28 19:40:16] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:40:16] local.INFO: ID present? YES  
[2026-07-28 19:40:16] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:16] local.INFO: ID empty? NO  
[2026-07-28 19:40:16] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:16] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 19:40:16, 2026-07-28 19:40:16))  
[2026-07-28 19:40:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:22] local.INFO: Model: Journal  
[2026-07-28 19:40:22] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:40:22] local.INFO: ID present? YES  
[2026-07-28 19:40:22] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:22] local.INFO: ID empty? NO  
[2026-07-28 19:40:22] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:22] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 19:40:22, 2026-07-28 19:40:22))  
[2026-07-28 19:40:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:28] local.INFO: Model: Journal  
[2026-07-28 19:40:28] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:40:28] local.INFO: ID present? YES  
[2026-07-28 19:40:28] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:28] local.INFO: ID empty? NO  
[2026-07-28 19:40:28] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:28] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 19:40:28, 2026-07-28 19:40:28))  
[2026-07-28 19:40:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:35] local.INFO: Model: Journal  
[2026-07-28 19:40:35] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:40:35] local.INFO: ID present? YES  
[2026-07-28 19:40:35] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:35] local.INFO: ID empty? NO  
[2026-07-28 19:40:35] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:35] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 19:40:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 19:40:35, 2026-07-28 19:40:35))  
[2026-07-28 19:40:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:36] local.INFO: Model: Journal  
[2026-07-28 19:40:36] local.INFO: Data received: {"id":"8bac45bc-b6a0-4484-8aef-7c258afab8a8","type":"Credit","amount":"395.00","rate":"169.500000","lcy_amount":"395.000000","narrative":"Gain on TR-3593-2026","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:40:36] local.INFO: ID present? YES  
[2026-07-28 19:40:36] local.INFO: ID value: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:36] local.INFO: ID empty? NO  
[2026-07-28 19:40:36] local.INFO: Attempting to find record with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:36] local.INFO: Record not found, creating new with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8bac45bc-b6a0-4484-8aef-7c258afab8a8, Credit, 395.00, 169.500000, 395.000000, Gain on TR-3593-2026, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:36, 2026-07-28 19:40:36))  
[2026-07-28 19:40:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:42] local.INFO: Model: Journal  
[2026-07-28 19:40:42] local.INFO: Data received: {"id":"8bac45bc-b6a0-4484-8aef-7c258afab8a8","type":"Credit","amount":"395.00","rate":"169.500000","lcy_amount":"395.000000","narrative":"Gain on TR-3593-2026","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:40:42] local.INFO: ID present? YES  
[2026-07-28 19:40:42] local.INFO: ID value: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:42] local.INFO: ID empty? NO  
[2026-07-28 19:40:42] local.INFO: Attempting to find record with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:42] local.INFO: Record not found, creating new with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8bac45bc-b6a0-4484-8aef-7c258afab8a8, Credit, 395.00, 169.500000, 395.000000, Gain on TR-3593-2026, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:42, 2026-07-28 19:40:42))  
[2026-07-28 19:40:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:48] local.INFO: Model: Journal  
[2026-07-28 19:40:48] local.INFO: Data received: {"id":"8bac45bc-b6a0-4484-8aef-7c258afab8a8","type":"Credit","amount":"395.00","rate":"169.500000","lcy_amount":"395.000000","narrative":"Gain on TR-3593-2026","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:40:48] local.INFO: ID present? YES  
[2026-07-28 19:40:48] local.INFO: ID value: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:48] local.INFO: ID empty? NO  
[2026-07-28 19:40:48] local.INFO: Attempting to find record with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:48] local.INFO: Record not found, creating new with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8bac45bc-b6a0-4484-8aef-7c258afab8a8, Credit, 395.00, 169.500000, 395.000000, Gain on TR-3593-2026, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:48, 2026-07-28 19:40:48))  
[2026-07-28 19:40:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:55] local.INFO: Model: Journal  
[2026-07-28 19:40:55] local.INFO: Data received: {"id":"8bac45bc-b6a0-4484-8aef-7c258afab8a8","type":"Credit","amount":"395.00","rate":"169.500000","lcy_amount":"395.000000","narrative":"Gain on TR-3593-2026","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 19:40:55] local.INFO: ID present? YES  
[2026-07-28 19:40:55] local.INFO: ID value: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:55] local.INFO: ID empty? NO  
[2026-07-28 19:40:55] local.INFO: Attempting to find record with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:55] local.INFO: Record not found, creating new with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 19:40:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8bac45bc-b6a0-4484-8aef-7c258afab8a8, Credit, 395.00, 169.500000, 395.000000, Gain on TR-3593-2026, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, d6ee4ced-a8e2-4540-9074-8f05108c5bd2, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:55, 2026-07-28 19:40:55))  
[2026-07-28 19:40:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:40:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:40:56] local.INFO: Model: Journal  
[2026-07-28 19:40:56] local.INFO: Data received: {"id":"8cbdf5d4-5698-4198-af14-79282ea321a3","type":"Credit","amount":"9425.00","rate":"145.000000","lcy_amount":"9425.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:40:56] local.INFO: ID present? YES  
[2026-07-28 19:40:56] local.INFO: ID value: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:40:56] local.INFO: ID empty? NO  
[2026-07-28 19:40:56] local.INFO: Attempting to find record with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:40:56] local.INFO: Record not found, creating new with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:40:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8cbdf5d4-5698-4198-af14-79282ea321a3, Credit, 9425.00, 145.000000, 9425.000000, Buying TX: Funds out of cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:40:56, 2026-07-28 19:40:56))  
[2026-07-28 19:40:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:02] local.INFO: Model: Journal  
[2026-07-28 19:41:02] local.INFO: Data received: {"id":"8cbdf5d4-5698-4198-af14-79282ea321a3","type":"Credit","amount":"9425.00","rate":"145.000000","lcy_amount":"9425.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:41:02] local.INFO: ID present? YES  
[2026-07-28 19:41:02] local.INFO: ID value: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:02] local.INFO: ID empty? NO  
[2026-07-28 19:41:02] local.INFO: Attempting to find record with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:02] local.INFO: Record not found, creating new with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8cbdf5d4-5698-4198-af14-79282ea321a3, Credit, 9425.00, 145.000000, 9425.000000, Buying TX: Funds out of cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:02, 2026-07-28 19:41:02))  
[2026-07-28 19:41:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:08] local.INFO: Model: Journal  
[2026-07-28 19:41:08] local.INFO: Data received: {"id":"8cbdf5d4-5698-4198-af14-79282ea321a3","type":"Credit","amount":"9425.00","rate":"145.000000","lcy_amount":"9425.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:41:08] local.INFO: ID present? YES  
[2026-07-28 19:41:08] local.INFO: ID value: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:08] local.INFO: ID empty? NO  
[2026-07-28 19:41:08] local.INFO: Attempting to find record with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:08] local.INFO: Record not found, creating new with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8cbdf5d4-5698-4198-af14-79282ea321a3, Credit, 9425.00, 145.000000, 9425.000000, Buying TX: Funds out of cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:08, 2026-07-28 19:41:08))  
[2026-07-28 19:41:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:15] local.INFO: Model: Journal  
[2026-07-28 19:41:15] local.INFO: Data received: {"id":"8cbdf5d4-5698-4198-af14-79282ea321a3","type":"Credit","amount":"9425.00","rate":"145.000000","lcy_amount":"9425.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:41:15] local.INFO: ID present? YES  
[2026-07-28 19:41:15] local.INFO: ID value: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:15] local.INFO: ID empty? NO  
[2026-07-28 19:41:15] local.INFO: Attempting to find record with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:15] local.INFO: Record not found, creating new with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 19:41:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8cbdf5d4-5698-4198-af14-79282ea321a3, Credit, 9425.00, 145.000000, 9425.000000, Buying TX: Funds out of cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:15, 2026-07-28 19:41:15))  
[2026-07-28 19:41:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:16] local.INFO: Model: Journal  
[2026-07-28 19:41:16] local.INFO: Data received: {"id":"8d20e56b-777d-4759-abb7-f2f3d9d5deb2","type":"Credit","amount":"520.00","rate":"146.000000","lcy_amount":"520.000000","narrative":"Gain on TR-3543-2026","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:41:16] local.INFO: ID present? YES  
[2026-07-28 19:41:16] local.INFO: ID value: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:16] local.INFO: ID empty? NO  
[2026-07-28 19:41:16] local.INFO: Attempting to find record with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:16] local.INFO: Record not found, creating new with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d20e56b-777d-4759-abb7-f2f3d9d5deb2, Credit, 520.00, 146.000000, 520.000000, Gain on TR-3543-2026, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:16, 2026-07-28 19:41:16))  
[2026-07-28 19:41:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:22] local.INFO: Model: Journal  
[2026-07-28 19:41:22] local.INFO: Data received: {"id":"8d20e56b-777d-4759-abb7-f2f3d9d5deb2","type":"Credit","amount":"520.00","rate":"146.000000","lcy_amount":"520.000000","narrative":"Gain on TR-3543-2026","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:41:22] local.INFO: ID present? YES  
[2026-07-28 19:41:22] local.INFO: ID value: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:22] local.INFO: ID empty? NO  
[2026-07-28 19:41:22] local.INFO: Attempting to find record with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:22] local.INFO: Record not found, creating new with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d20e56b-777d-4759-abb7-f2f3d9d5deb2, Credit, 520.00, 146.000000, 520.000000, Gain on TR-3543-2026, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:22, 2026-07-28 19:41:22))  
[2026-07-28 19:41:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:29] local.INFO: Model: Journal  
[2026-07-28 19:41:29] local.INFO: Data received: {"id":"8d20e56b-777d-4759-abb7-f2f3d9d5deb2","type":"Credit","amount":"520.00","rate":"146.000000","lcy_amount":"520.000000","narrative":"Gain on TR-3543-2026","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:41:29] local.INFO: ID present? YES  
[2026-07-28 19:41:29] local.INFO: ID value: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:29] local.INFO: ID empty? NO  
[2026-07-28 19:41:29] local.INFO: Attempting to find record with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:29] local.INFO: Record not found, creating new with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d20e56b-777d-4759-abb7-f2f3d9d5deb2, Credit, 520.00, 146.000000, 520.000000, Gain on TR-3543-2026, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:29, 2026-07-28 19:41:29))  
[2026-07-28 19:41:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:35] local.INFO: Model: Journal  
[2026-07-28 19:41:35] local.INFO: Data received: {"id":"8d20e56b-777d-4759-abb7-f2f3d9d5deb2","type":"Credit","amount":"520.00","rate":"146.000000","lcy_amount":"520.000000","narrative":"Gain on TR-3543-2026","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 19:41:35] local.INFO: ID present? YES  
[2026-07-28 19:41:35] local.INFO: ID value: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:35] local.INFO: ID empty? NO  
[2026-07-28 19:41:35] local.INFO: Attempting to find record with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:35] local.INFO: Record not found, creating new with ID: 8d20e56b-777d-4759-abb7-f2f3d9d5deb2  
[2026-07-28 19:41:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8d20e56b-777d-4759-abb7-f2f3d9d5deb2, Credit, 520.00, 146.000000, 520.000000, Gain on TR-3543-2026, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:35, 2026-07-28 19:41:35))  
[2026-07-28 19:41:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:36] local.INFO: Model: Journal  
[2026-07-28 19:41:36] local.INFO: Data received: {"id":"8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8","type":"Credit","amount":"434.00","rate":"145.000000","lcy_amount":"434.000000","narrative":"Gain on TR-3581-2026","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:41:36] local.INFO: ID present? YES  
[2026-07-28 19:41:36] local.INFO: ID value: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:36] local.INFO: ID empty? NO  
[2026-07-28 19:41:36] local.INFO: Attempting to find record with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:36] local.INFO: Record not found, creating new with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8, Credit, 434.00, 145.000000, 434.000000, Gain on TR-3581-2026, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:36, 2026-07-28 19:41:36))  
[2026-07-28 19:41:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:42] local.INFO: Model: Journal  
[2026-07-28 19:41:42] local.INFO: Data received: {"id":"8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8","type":"Credit","amount":"434.00","rate":"145.000000","lcy_amount":"434.000000","narrative":"Gain on TR-3581-2026","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:41:42] local.INFO: ID present? YES  
[2026-07-28 19:41:42] local.INFO: ID value: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:42] local.INFO: ID empty? NO  
[2026-07-28 19:41:42] local.INFO: Attempting to find record with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:42] local.INFO: Record not found, creating new with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8, Credit, 434.00, 145.000000, 434.000000, Gain on TR-3581-2026, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:42, 2026-07-28 19:41:42))  
[2026-07-28 19:41:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:49] local.INFO: Model: Journal  
[2026-07-28 19:41:49] local.INFO: Data received: {"id":"8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8","type":"Credit","amount":"434.00","rate":"145.000000","lcy_amount":"434.000000","narrative":"Gain on TR-3581-2026","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:41:49] local.INFO: ID present? YES  
[2026-07-28 19:41:49] local.INFO: ID value: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:49] local.INFO: ID empty? NO  
[2026-07-28 19:41:49] local.INFO: Attempting to find record with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:49] local.INFO: Record not found, creating new with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8, Credit, 434.00, 145.000000, 434.000000, Gain on TR-3581-2026, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:49, 2026-07-28 19:41:49))  
[2026-07-28 19:41:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:55] local.INFO: Model: Journal  
[2026-07-28 19:41:55] local.INFO: Data received: {"id":"8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8","type":"Credit","amount":"434.00","rate":"145.000000","lcy_amount":"434.000000","narrative":"Gain on TR-3581-2026","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 19:41:55] local.INFO: ID present? YES  
[2026-07-28 19:41:55] local.INFO: ID value: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:55] local.INFO: ID empty? NO  
[2026-07-28 19:41:55] local.INFO: Attempting to find record with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:55] local.INFO: Record not found, creating new with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 19:41:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8, Credit, 434.00, 145.000000, 434.000000, Gain on TR-3581-2026, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1d7c15a8-2833-4e16-ab99-c3be836ec400, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:55, 2026-07-28 19:41:55))  
[2026-07-28 19:41:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:41:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:41:56] local.INFO: Model: Journal  
[2026-07-28 19:41:56] local.INFO: Data received: {"id":"8ec1fc2c-16b8-42f9-8948-d93114d851f2","type":"Credit","amount":"8670.00","rate":"144.500000","lcy_amount":"8670.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:41:56] local.INFO: ID present? YES  
[2026-07-28 19:41:56] local.INFO: ID value: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:41:56] local.INFO: ID empty? NO  
[2026-07-28 19:41:56] local.INFO: Attempting to find record with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:41:56] local.INFO: Record not found, creating new with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:41:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ec1fc2c-16b8-42f9-8948-d93114d851f2, Credit, 8670.00, 144.500000, 8670.000000, Buying TX: Funds out of cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:41:56, 2026-07-28 19:41:56))  
[2026-07-28 19:41:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:03] local.INFO: Model: Journal  
[2026-07-28 19:42:03] local.INFO: Data received: {"id":"8ec1fc2c-16b8-42f9-8948-d93114d851f2","type":"Credit","amount":"8670.00","rate":"144.500000","lcy_amount":"8670.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:42:03] local.INFO: ID present? YES  
[2026-07-28 19:42:03] local.INFO: ID value: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:03] local.INFO: ID empty? NO  
[2026-07-28 19:42:03] local.INFO: Attempting to find record with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:03] local.INFO: Record not found, creating new with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ec1fc2c-16b8-42f9-8948-d93114d851f2, Credit, 8670.00, 144.500000, 8670.000000, Buying TX: Funds out of cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:42:03, 2026-07-28 19:42:03))  
[2026-07-28 19:42:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:09] local.INFO: Model: Journal  
[2026-07-28 19:42:09] local.INFO: Data received: {"id":"8ec1fc2c-16b8-42f9-8948-d93114d851f2","type":"Credit","amount":"8670.00","rate":"144.500000","lcy_amount":"8670.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:42:09] local.INFO: ID present? YES  
[2026-07-28 19:42:09] local.INFO: ID value: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:09] local.INFO: ID empty? NO  
[2026-07-28 19:42:09] local.INFO: Attempting to find record with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:09] local.INFO: Record not found, creating new with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ec1fc2c-16b8-42f9-8948-d93114d851f2, Credit, 8670.00, 144.500000, 8670.000000, Buying TX: Funds out of cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:42:09, 2026-07-28 19:42:09))  
[2026-07-28 19:42:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:15] local.INFO: Model: Journal  
[2026-07-28 19:42:15] local.INFO: Data received: {"id":"8ec1fc2c-16b8-42f9-8948-d93114d851f2","type":"Credit","amount":"8670.00","rate":"144.500000","lcy_amount":"8670.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 19:42:15] local.INFO: ID present? YES  
[2026-07-28 19:42:15] local.INFO: ID value: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:15] local.INFO: ID empty? NO  
[2026-07-28 19:42:15] local.INFO: Attempting to find record with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:15] local.INFO: Record not found, creating new with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 19:42:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ec1fc2c-16b8-42f9-8948-d93114d851f2, Credit, 8670.00, 144.500000, 8670.000000, Buying TX: Funds out of cashbox, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:42:15, 2026-07-28 19:42:15))  
[2026-07-28 19:42:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:16] local.INFO: Model: Journal  
[2026-07-28 19:42:16] local.INFO: Data received: {"id":"8fc699ef-38bd-4cfc-a93e-2af1a1fd2417","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:42:16] local.INFO: ID present? YES  
[2026-07-28 19:42:16] local.INFO: ID value: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:16] local.INFO: ID empty? NO  
[2026-07-28 19:42:16] local.INFO: Attempting to find record with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:16] local.INFO: Record not found, creating new with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8fc699ef-38bd-4cfc-a93e-2af1a1fd2417, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:42:16, 2026-07-28 19:42:16))  
[2026-07-28 19:42:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:23] local.INFO: Model: Journal  
[2026-07-28 19:42:23] local.INFO: Data received: {"id":"8fc699ef-38bd-4cfc-a93e-2af1a1fd2417","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:42:23] local.INFO: ID present? YES  
[2026-07-28 19:42:23] local.INFO: ID value: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:23] local.INFO: ID empty? NO  
[2026-07-28 19:42:23] local.INFO: Attempting to find record with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:23] local.INFO: Record not found, creating new with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8fc699ef-38bd-4cfc-a93e-2af1a1fd2417, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:42:23, 2026-07-28 19:42:23))  
[2026-07-28 19:42:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:29] local.INFO: Model: Journal  
[2026-07-28 19:42:29] local.INFO: Data received: {"id":"8fc699ef-38bd-4cfc-a93e-2af1a1fd2417","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:42:29] local.INFO: ID present? YES  
[2026-07-28 19:42:29] local.INFO: ID value: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:29] local.INFO: ID empty? NO  
[2026-07-28 19:42:29] local.INFO: Attempting to find record with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:29] local.INFO: Record not found, creating new with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8fc699ef-38bd-4cfc-a93e-2af1a1fd2417, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:42:29, 2026-07-28 19:42:29))  
[2026-07-28 19:42:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:35] local.INFO: Model: Journal  
[2026-07-28 19:42:35] local.INFO: Data received: {"id":"8fc699ef-38bd-4cfc-a93e-2af1a1fd2417","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:42:35] local.INFO: ID present? YES  
[2026-07-28 19:42:35] local.INFO: ID value: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:35] local.INFO: ID empty? NO  
[2026-07-28 19:42:35] local.INFO: Attempting to find record with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:35] local.INFO: Record not found, creating new with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 19:42:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8fc699ef-38bd-4cfc-a93e-2af1a1fd2417, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:42:35, 2026-07-28 19:42:35))  
[2026-07-28 19:42:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:36] local.INFO: Model: Journal  
[2026-07-28 19:42:36] local.INFO: Data received: {"id":"91a36f3a-203d-4fb3-b954-9dcbddc3d67c","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:42:36] local.INFO: ID present? YES  
[2026-07-28 19:42:36] local.INFO: ID value: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:36] local.INFO: ID empty? NO  
[2026-07-28 19:42:36] local.INFO: Attempting to find record with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:36] local.INFO: Record not found, creating new with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (91a36f3a-203d-4fb3-b954-9dcbddc3d67c, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:42:36, 2026-07-28 19:42:36))  
[2026-07-28 19:42:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:43] local.INFO: Model: Journal  
[2026-07-28 19:42:43] local.INFO: Data received: {"id":"91a36f3a-203d-4fb3-b954-9dcbddc3d67c","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:42:43] local.INFO: ID present? YES  
[2026-07-28 19:42:43] local.INFO: ID value: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:43] local.INFO: ID empty? NO  
[2026-07-28 19:42:43] local.INFO: Attempting to find record with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:43] local.INFO: Record not found, creating new with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (91a36f3a-203d-4fb3-b954-9dcbddc3d67c, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:42:43, 2026-07-28 19:42:43))  
[2026-07-28 19:42:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:49] local.INFO: Model: Journal  
[2026-07-28 19:42:49] local.INFO: Data received: {"id":"91a36f3a-203d-4fb3-b954-9dcbddc3d67c","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:42:49] local.INFO: ID present? YES  
[2026-07-28 19:42:49] local.INFO: ID value: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:49] local.INFO: ID empty? NO  
[2026-07-28 19:42:49] local.INFO: Attempting to find record with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:49] local.INFO: Record not found, creating new with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (91a36f3a-203d-4fb3-b954-9dcbddc3d67c, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:42:49, 2026-07-28 19:42:49))  
[2026-07-28 19:42:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:55] local.INFO: Model: Journal  
[2026-07-28 19:42:55] local.INFO: Data received: {"id":"91a36f3a-203d-4fb3-b954-9dcbddc3d67c","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 19:42:55] local.INFO: ID present? YES  
[2026-07-28 19:42:55] local.INFO: ID value: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:55] local.INFO: ID empty? NO  
[2026-07-28 19:42:55] local.INFO: Attempting to find record with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:55] local.INFO: Record not found, creating new with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 19:42:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (91a36f3a-203d-4fb3-b954-9dcbddc3d67c, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 2026-07-27, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec, 681aac17-1e34-49d6-acdb-3e73571eb855, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:42:55, 2026-07-28 19:42:55))  
[2026-07-28 19:42:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:42:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:42:56] local.INFO: Model: Journal  
[2026-07-28 19:42:56] local.INFO: Data received: {"id":"9254117d-f3a8-41b7-81cd-04a7d04d3057","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:42:56] local.INFO: ID present? YES  
[2026-07-28 19:42:56] local.INFO: ID value: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:42:56] local.INFO: ID empty? NO  
[2026-07-28 19:42:56] local.INFO: Attempting to find record with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:42:56] local.INFO: Record not found, creating new with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:42:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9254117d-f3a8-41b7-81cd-04a7d04d3057, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:42:56, 2026-07-28 19:42:56))  
[2026-07-28 19:42:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:03] local.INFO: Model: Journal  
[2026-07-28 19:43:03] local.INFO: Data received: {"id":"9254117d-f3a8-41b7-81cd-04a7d04d3057","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:43:03] local.INFO: ID present? YES  
[2026-07-28 19:43:03] local.INFO: ID value: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:03] local.INFO: ID empty? NO  
[2026-07-28 19:43:03] local.INFO: Attempting to find record with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:03] local.INFO: Record not found, creating new with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9254117d-f3a8-41b7-81cd-04a7d04d3057, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:43:03, 2026-07-28 19:43:03))  
[2026-07-28 19:43:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:09] local.INFO: Model: Journal  
[2026-07-28 19:43:09] local.INFO: Data received: {"id":"9254117d-f3a8-41b7-81cd-04a7d04d3057","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:43:09] local.INFO: ID present? YES  
[2026-07-28 19:43:09] local.INFO: ID value: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:09] local.INFO: ID empty? NO  
[2026-07-28 19:43:09] local.INFO: Attempting to find record with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:09] local.INFO: Record not found, creating new with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9254117d-f3a8-41b7-81cd-04a7d04d3057, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:43:09, 2026-07-28 19:43:09))  
[2026-07-28 19:43:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:15] local.INFO: Model: Journal  
[2026-07-28 19:43:15] local.INFO: Data received: {"id":"9254117d-f3a8-41b7-81cd-04a7d04d3057","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 19:43:15] local.INFO: ID present? YES  
[2026-07-28 19:43:15] local.INFO: ID value: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:15] local.INFO: ID empty? NO  
[2026-07-28 19:43:15] local.INFO: Attempting to find record with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:15] local.INFO: Record not found, creating new with ID: 9254117d-f3a8-41b7-81cd-04a7d04d3057  
[2026-07-28 19:43:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9254117d-f3a8-41b7-81cd-04a7d04d3057, Debit, 300.00, 127.500000, 38700.000000, Buying TX: Funds into cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:43:15, 2026-07-28 19:43:15))  
[2026-07-28 19:43:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:16] local.INFO: Model: Journal  
[2026-07-28 19:43:16] local.INFO: Data received: {"id":"932e99ba-f18a-4482-b44d-3b107e929960","type":"Debit","amount":"75.00","rate":"145.000000","lcy_amount":"11340.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:43:16] local.INFO: ID present? YES  
[2026-07-28 19:43:16] local.INFO: ID value: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:16] local.INFO: ID empty? NO  
[2026-07-28 19:43:16] local.INFO: Attempting to find record with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:16] local.INFO: Record not found, creating new with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (932e99ba-f18a-4482-b44d-3b107e929960, Debit, 75.00, 145.000000, 11340.000000, Buying TX: Funds into cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:43:16, 2026-07-28 19:43:16))  
[2026-07-28 19:43:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:23] local.INFO: Model: Journal  
[2026-07-28 19:43:23] local.INFO: Data received: {"id":"932e99ba-f18a-4482-b44d-3b107e929960","type":"Debit","amount":"75.00","rate":"145.000000","lcy_amount":"11340.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:43:23] local.INFO: ID present? YES  
[2026-07-28 19:43:23] local.INFO: ID value: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:23] local.INFO: ID empty? NO  
[2026-07-28 19:43:23] local.INFO: Attempting to find record with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:23] local.INFO: Record not found, creating new with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (932e99ba-f18a-4482-b44d-3b107e929960, Debit, 75.00, 145.000000, 11340.000000, Buying TX: Funds into cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:43:23, 2026-07-28 19:43:23))  
[2026-07-28 19:43:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:29] local.INFO: Model: Journal  
[2026-07-28 19:43:29] local.INFO: Data received: {"id":"932e99ba-f18a-4482-b44d-3b107e929960","type":"Debit","amount":"75.00","rate":"145.000000","lcy_amount":"11340.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:43:29] local.INFO: ID present? YES  
[2026-07-28 19:43:29] local.INFO: ID value: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:29] local.INFO: ID empty? NO  
[2026-07-28 19:43:29] local.INFO: Attempting to find record with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:29] local.INFO: Record not found, creating new with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (932e99ba-f18a-4482-b44d-3b107e929960, Debit, 75.00, 145.000000, 11340.000000, Buying TX: Funds into cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:43:29, 2026-07-28 19:43:29))  
[2026-07-28 19:43:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:35] local.INFO: Model: Journal  
[2026-07-28 19:43:35] local.INFO: Data received: {"id":"932e99ba-f18a-4482-b44d-3b107e929960","type":"Debit","amount":"75.00","rate":"145.000000","lcy_amount":"11340.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 19:43:35] local.INFO: ID present? YES  
[2026-07-28 19:43:35] local.INFO: ID value: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:35] local.INFO: ID empty? NO  
[2026-07-28 19:43:35] local.INFO: Attempting to find record with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:35] local.INFO: Record not found, creating new with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 19:43:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (932e99ba-f18a-4482-b44d-3b107e929960, Debit, 75.00, 145.000000, 11340.000000, Buying TX: Funds into cashbox, 65f085f9-5a79-403e-b323-84582d8bb2f2, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 65f085f9-5a79-403e-b323-84582d8bb2f2, eebd93cd-e521-4801-8bcf-4ee59786c637, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:43:35, 2026-07-28 19:43:35))  
[2026-07-28 19:43:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:37] local.INFO: Model: Journal  
[2026-07-28 19:43:37] local.INFO: Data received: {"id":"938ab8ce-1a59-45d1-803b-1db811853251","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"1290.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:43:37] local.INFO: ID present? YES  
[2026-07-28 19:43:37] local.INFO: ID value: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:37] local.INFO: ID empty? NO  
[2026-07-28 19:43:37] local.INFO: Attempting to find record with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:37] local.INFO: Record not found, creating new with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (938ab8ce-1a59-45d1-803b-1db811853251, Credit, 10.00, 130.000000, 1290.000000, Selling TX: Funds out of cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:43:37, 2026-07-28 19:43:37))  
[2026-07-28 19:43:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:43] local.INFO: Model: Journal  
[2026-07-28 19:43:43] local.INFO: Data received: {"id":"938ab8ce-1a59-45d1-803b-1db811853251","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"1290.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:43:43] local.INFO: ID present? YES  
[2026-07-28 19:43:43] local.INFO: ID value: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:43] local.INFO: ID empty? NO  
[2026-07-28 19:43:43] local.INFO: Attempting to find record with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:43] local.INFO: Record not found, creating new with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (938ab8ce-1a59-45d1-803b-1db811853251, Credit, 10.00, 130.000000, 1290.000000, Selling TX: Funds out of cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:43:43, 2026-07-28 19:43:43))  
[2026-07-28 19:43:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:49] local.INFO: Model: Journal  
[2026-07-28 19:43:49] local.INFO: Data received: {"id":"938ab8ce-1a59-45d1-803b-1db811853251","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"1290.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:43:49] local.INFO: ID present? YES  
[2026-07-28 19:43:49] local.INFO: ID value: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:49] local.INFO: ID empty? NO  
[2026-07-28 19:43:49] local.INFO: Attempting to find record with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:49] local.INFO: Record not found, creating new with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (938ab8ce-1a59-45d1-803b-1db811853251, Credit, 10.00, 130.000000, 1290.000000, Selling TX: Funds out of cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:43:49, 2026-07-28 19:43:49))  
[2026-07-28 19:43:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:55] local.INFO: Model: Journal  
[2026-07-28 19:43:55] local.INFO: Data received: {"id":"938ab8ce-1a59-45d1-803b-1db811853251","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"1290.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 19:43:55] local.INFO: ID present? YES  
[2026-07-28 19:43:55] local.INFO: ID value: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:55] local.INFO: ID empty? NO  
[2026-07-28 19:43:55] local.INFO: Attempting to find record with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:55] local.INFO: Record not found, creating new with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 19:43:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (938ab8ce-1a59-45d1-803b-1db811853251, Credit, 10.00, 130.000000, 1290.000000, Selling TX: Funds out of cashbox, f8097909-8c7f-4ae5-b366-6cd9030e648f, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, f8097909-8c7f-4ae5-b366-6cd9030e648f, 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:43:55, 2026-07-28 19:43:55))  
[2026-07-28 19:43:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:43:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:43:57] local.INFO: Model: Journal  
[2026-07-28 19:43:57] local.INFO: Data received: {"id":"9648c0ae-f066-4e26-90fb-784f971f4216","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:43:57] local.INFO: ID present? YES  
[2026-07-28 19:43:57] local.INFO: ID value: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:43:57] local.INFO: ID empty? NO  
[2026-07-28 19:43:57] local.INFO: Attempting to find record with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:43:57] local.INFO: Record not found, creating new with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:43:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9648c0ae-f066-4e26-90fb-784f971f4216, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:43:57, 2026-07-28 19:43:57))  
[2026-07-28 19:43:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:03] local.INFO: Model: Journal  
[2026-07-28 19:44:03] local.INFO: Data received: {"id":"9648c0ae-f066-4e26-90fb-784f971f4216","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:44:03] local.INFO: ID present? YES  
[2026-07-28 19:44:03] local.INFO: ID value: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:03] local.INFO: ID empty? NO  
[2026-07-28 19:44:03] local.INFO: Attempting to find record with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:03] local.INFO: Record not found, creating new with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9648c0ae-f066-4e26-90fb-784f971f4216, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:44:03, 2026-07-28 19:44:03))  
[2026-07-28 19:44:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:09] local.INFO: Model: Journal  
[2026-07-28 19:44:09] local.INFO: Data received: {"id":"9648c0ae-f066-4e26-90fb-784f971f4216","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:44:09] local.INFO: ID present? YES  
[2026-07-28 19:44:09] local.INFO: ID value: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:09] local.INFO: ID empty? NO  
[2026-07-28 19:44:09] local.INFO: Attempting to find record with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:09] local.INFO: Record not found, creating new with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9648c0ae-f066-4e26-90fb-784f971f4216, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:44:09, 2026-07-28 19:44:09))  
[2026-07-28 19:44:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:15] local.INFO: Model: Journal  
[2026-07-28 19:44:15] local.INFO: Data received: {"id":"9648c0ae-f066-4e26-90fb-784f971f4216","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:44:15] local.INFO: ID present? YES  
[2026-07-28 19:44:15] local.INFO: ID value: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:15] local.INFO: ID empty? NO  
[2026-07-28 19:44:15] local.INFO: Attempting to find record with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:15] local.INFO: Record not found, creating new with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 19:44:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9648c0ae-f066-4e26-90fb-784f971f4216, Debit, 100.00, 145.000000, 15120.000000, Buying TX: Funds into cashbox, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:44:15, 2026-07-28 19:44:15))  
[2026-07-28 19:44:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:17] local.INFO: Model: Journal  
[2026-07-28 19:44:17] local.INFO: Data received: {"id":"97d41fcf-1846-487b-a914-3d16cacdd716","type":"Credit","amount":"24862.50","rate":"127.500000","lcy_amount":"24862.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:44:17] local.INFO: ID present? YES  
[2026-07-28 19:44:17] local.INFO: ID value: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:17] local.INFO: ID empty? NO  
[2026-07-28 19:44:17] local.INFO: Attempting to find record with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:17] local.INFO: Record not found, creating new with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (97d41fcf-1846-487b-a914-3d16cacdd716, Credit, 24862.50, 127.500000, 24862.500000, Buying TX: Funds out of cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:44:17, 2026-07-28 19:44:17))  
[2026-07-28 19:44:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:23] local.INFO: Model: Journal  
[2026-07-28 19:44:23] local.INFO: Data received: {"id":"97d41fcf-1846-487b-a914-3d16cacdd716","type":"Credit","amount":"24862.50","rate":"127.500000","lcy_amount":"24862.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:44:23] local.INFO: ID present? YES  
[2026-07-28 19:44:23] local.INFO: ID value: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:23] local.INFO: ID empty? NO  
[2026-07-28 19:44:23] local.INFO: Attempting to find record with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:23] local.INFO: Record not found, creating new with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (97d41fcf-1846-487b-a914-3d16cacdd716, Credit, 24862.50, 127.500000, 24862.500000, Buying TX: Funds out of cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:44:23, 2026-07-28 19:44:23))  
[2026-07-28 19:44:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:29] local.INFO: Model: Journal  
[2026-07-28 19:44:29] local.INFO: Data received: {"id":"97d41fcf-1846-487b-a914-3d16cacdd716","type":"Credit","amount":"24862.50","rate":"127.500000","lcy_amount":"24862.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:44:29] local.INFO: ID present? YES  
[2026-07-28 19:44:29] local.INFO: ID value: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:29] local.INFO: ID empty? NO  
[2026-07-28 19:44:29] local.INFO: Attempting to find record with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:29] local.INFO: Record not found, creating new with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (97d41fcf-1846-487b-a914-3d16cacdd716, Credit, 24862.50, 127.500000, 24862.500000, Buying TX: Funds out of cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:44:29, 2026-07-28 19:44:29))  
[2026-07-28 19:44:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:35] local.INFO: Model: Journal  
[2026-07-28 19:44:35] local.INFO: Data received: {"id":"97d41fcf-1846-487b-a914-3d16cacdd716","type":"Credit","amount":"24862.50","rate":"127.500000","lcy_amount":"24862.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 19:44:35] local.INFO: ID present? YES  
[2026-07-28 19:44:35] local.INFO: ID value: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:35] local.INFO: ID empty? NO  
[2026-07-28 19:44:35] local.INFO: Attempting to find record with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:35] local.INFO: Record not found, creating new with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 19:44:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (97d41fcf-1846-487b-a914-3d16cacdd716, Credit, 24862.50, 127.500000, 24862.500000, Buying TX: Funds out of cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:44:35, 2026-07-28 19:44:35))  
[2026-07-28 19:44:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:37] local.INFO: Model: Journal  
[2026-07-28 19:44:37] local.INFO: Data received: {"id":"98ded782-9336-4482-919d-8c9796decd0d","type":"Debit","amount":"250.00","rate":"128.000000","lcy_amount":"32250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:44:37] local.INFO: ID present? YES  
[2026-07-28 19:44:37] local.INFO: ID value: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:37] local.INFO: ID empty? NO  
[2026-07-28 19:44:37] local.INFO: Attempting to find record with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:37] local.INFO: Record not found, creating new with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (98ded782-9336-4482-919d-8c9796decd0d, Debit, 250.00, 128.000000, 32250.000000, Buying TX: Funds into cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:44:37, 2026-07-28 19:44:37))  
[2026-07-28 19:44:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:43] local.INFO: Model: Journal  
[2026-07-28 19:44:43] local.INFO: Data received: {"id":"98ded782-9336-4482-919d-8c9796decd0d","type":"Debit","amount":"250.00","rate":"128.000000","lcy_amount":"32250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:44:43] local.INFO: ID present? YES  
[2026-07-28 19:44:43] local.INFO: ID value: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:43] local.INFO: ID empty? NO  
[2026-07-28 19:44:43] local.INFO: Attempting to find record with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:43] local.INFO: Record not found, creating new with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (98ded782-9336-4482-919d-8c9796decd0d, Debit, 250.00, 128.000000, 32250.000000, Buying TX: Funds into cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:44:43, 2026-07-28 19:44:43))  
[2026-07-28 19:44:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:49] local.INFO: Model: Journal  
[2026-07-28 19:44:49] local.INFO: Data received: {"id":"98ded782-9336-4482-919d-8c9796decd0d","type":"Debit","amount":"250.00","rate":"128.000000","lcy_amount":"32250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:44:49] local.INFO: ID present? YES  
[2026-07-28 19:44:49] local.INFO: ID value: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:49] local.INFO: ID empty? NO  
[2026-07-28 19:44:49] local.INFO: Attempting to find record with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:49] local.INFO: Record not found, creating new with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (98ded782-9336-4482-919d-8c9796decd0d, Debit, 250.00, 128.000000, 32250.000000, Buying TX: Funds into cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:44:49, 2026-07-28 19:44:49))  
[2026-07-28 19:44:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:55] local.INFO: Model: Journal  
[2026-07-28 19:44:55] local.INFO: Data received: {"id":"98ded782-9336-4482-919d-8c9796decd0d","type":"Debit","amount":"250.00","rate":"128.000000","lcy_amount":"32250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 19:44:55] local.INFO: ID present? YES  
[2026-07-28 19:44:55] local.INFO: ID value: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:55] local.INFO: ID empty? NO  
[2026-07-28 19:44:55] local.INFO: Attempting to find record with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:55] local.INFO: Record not found, creating new with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 19:44:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (98ded782-9336-4482-919d-8c9796decd0d, Debit, 250.00, 128.000000, 32250.000000, Buying TX: Funds into cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:44:55, 2026-07-28 19:44:55))  
[2026-07-28 19:44:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:44:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:44:57] local.INFO: Model: Journal  
[2026-07-28 19:44:57] local.INFO: Data received: {"id":"9d3fd2d2-2394-40f9-b3a4-47248b411d11","type":"Credit","amount":"87.00","rate":"100.000000","lcy_amount":"87.000000","narrative":"Gain on TR-3547-2026","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:44:57] local.INFO: ID present? YES  
[2026-07-28 19:44:57] local.INFO: ID value: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:44:57] local.INFO: ID empty? NO  
[2026-07-28 19:44:57] local.INFO: Attempting to find record with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:44:57] local.INFO: Record not found, creating new with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:44:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9d3fd2d2-2394-40f9-b3a4-47248b411d11, Credit, 87.00, 100.000000, 87.000000, Gain on TR-3547-2026, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:44:57, 2026-07-28 19:44:57))  
[2026-07-28 19:44:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:03] local.INFO: Model: Journal  
[2026-07-28 19:45:03] local.INFO: Data received: {"id":"9d3fd2d2-2394-40f9-b3a4-47248b411d11","type":"Credit","amount":"87.00","rate":"100.000000","lcy_amount":"87.000000","narrative":"Gain on TR-3547-2026","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:45:03] local.INFO: ID present? YES  
[2026-07-28 19:45:03] local.INFO: ID value: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:03] local.INFO: ID empty? NO  
[2026-07-28 19:45:03] local.INFO: Attempting to find record with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:03] local.INFO: Record not found, creating new with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9d3fd2d2-2394-40f9-b3a4-47248b411d11, Credit, 87.00, 100.000000, 87.000000, Gain on TR-3547-2026, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:45:03, 2026-07-28 19:45:03))  
[2026-07-28 19:45:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:09] local.INFO: Model: Journal  
[2026-07-28 19:45:09] local.INFO: Data received: {"id":"9d3fd2d2-2394-40f9-b3a4-47248b411d11","type":"Credit","amount":"87.00","rate":"100.000000","lcy_amount":"87.000000","narrative":"Gain on TR-3547-2026","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:45:09] local.INFO: ID present? YES  
[2026-07-28 19:45:09] local.INFO: ID value: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:09] local.INFO: ID empty? NO  
[2026-07-28 19:45:09] local.INFO: Attempting to find record with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:09] local.INFO: Record not found, creating new with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9d3fd2d2-2394-40f9-b3a4-47248b411d11, Credit, 87.00, 100.000000, 87.000000, Gain on TR-3547-2026, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:45:09, 2026-07-28 19:45:09))  
[2026-07-28 19:45:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:16] local.INFO: Model: Journal  
[2026-07-28 19:45:16] local.INFO: Data received: {"id":"9d3fd2d2-2394-40f9-b3a4-47248b411d11","type":"Credit","amount":"87.00","rate":"100.000000","lcy_amount":"87.000000","narrative":"Gain on TR-3547-2026","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:45:16] local.INFO: ID present? YES  
[2026-07-28 19:45:16] local.INFO: ID value: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:16] local.INFO: ID empty? NO  
[2026-07-28 19:45:16] local.INFO: Attempting to find record with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:16] local.INFO: Record not found, creating new with ID: 9d3fd2d2-2394-40f9-b3a4-47248b411d11  
[2026-07-28 19:45:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9d3fd2d2-2394-40f9-b3a4-47248b411d11, Credit, 87.00, 100.000000, 87.000000, Gain on TR-3547-2026, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:45:16, 2026-07-28 19:45:16))  
[2026-07-28 19:45:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:17] local.INFO: Model: Journal  
[2026-07-28 19:45:17] local.INFO: Data received: {"id":"9e49d069-756f-4a48-9933-5469b0ce4919","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:45:17] local.INFO: ID present? YES  
[2026-07-28 19:45:17] local.INFO: ID value: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:17] local.INFO: ID empty? NO  
[2026-07-28 19:45:17] local.INFO: Attempting to find record with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:17] local.INFO: Record not found, creating new with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e49d069-756f-4a48-9933-5469b0ce4919, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:17, 2026-07-28 19:45:17))  
[2026-07-28 19:45:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:23] local.INFO: Model: Journal  
[2026-07-28 19:45:23] local.INFO: Data received: {"id":"9e49d069-756f-4a48-9933-5469b0ce4919","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:45:23] local.INFO: ID present? YES  
[2026-07-28 19:45:23] local.INFO: ID value: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:23] local.INFO: ID empty? NO  
[2026-07-28 19:45:23] local.INFO: Attempting to find record with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:23] local.INFO: Record not found, creating new with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e49d069-756f-4a48-9933-5469b0ce4919, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:23, 2026-07-28 19:45:23))  
[2026-07-28 19:45:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:29] local.INFO: Model: Journal  
[2026-07-28 19:45:29] local.INFO: Data received: {"id":"9e49d069-756f-4a48-9933-5469b0ce4919","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:45:29] local.INFO: ID present? YES  
[2026-07-28 19:45:29] local.INFO: ID value: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:29] local.INFO: ID empty? NO  
[2026-07-28 19:45:29] local.INFO: Attempting to find record with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:29] local.INFO: Record not found, creating new with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e49d069-756f-4a48-9933-5469b0ce4919, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:29, 2026-07-28 19:45:29))  
[2026-07-28 19:45:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:36] local.INFO: Model: Journal  
[2026-07-28 19:45:36] local.INFO: Data received: {"id":"9e49d069-756f-4a48-9933-5469b0ce4919","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 19:45:36] local.INFO: ID present? YES  
[2026-07-28 19:45:36] local.INFO: ID value: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:36] local.INFO: ID empty? NO  
[2026-07-28 19:45:36] local.INFO: Attempting to find record with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:36] local.INFO: Record not found, creating new with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 19:45:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9e49d069-756f-4a48-9933-5469b0ce4919, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:36, 2026-07-28 19:45:36))  
[2026-07-28 19:45:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:37] local.INFO: Model: Journal  
[2026-07-28 19:45:37] local.INFO: Data received: {"id":"a1c94153-aa2c-4982-ba30-f1d6542c7091","type":"Credit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:28:37","updated_at":"2026-07-28 17:28:38"} 
[2026-07-28 19:45:37] local.INFO: ID present? YES  
[2026-07-28 19:45:37] local.INFO: ID value: a1c94153-aa2c-4982-ba30-f1d6542c7091  
[2026-07-28 19:45:37] local.INFO: ID empty? NO  
[2026-07-28 19:45:37] local.INFO: Attempting to find record with ID: a1c94153-aa2c-4982-ba30-f1d6542c7091  
[2026-07-28 19:45:37] local.INFO: Record not found, creating new with ID: a1c94153-aa2c-4982-ba30-f1d6542c7091  
[2026-07-28 19:45:37] local.INFO: Created record: {"id":"a1c94153-aa2c-4982-ba30-f1d6542c7091","type":"Credit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:45:37.000000Z","created_at":"2026-07-28T16:45:37.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":490362.0,"debit_total":"72164377.00","credit_total":71674015.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-28T09:51:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-28 19:45:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:38] local.INFO: Model: Journal  
[2026-07-28 19:45:38] local.INFO: Data received: {"id":"a39534db-9f34-48e8-ad95-21ef6214627b","type":"Debit","amount":"65.00","rate":"145.000000","lcy_amount":"9828.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:45:38] local.INFO: ID present? YES  
[2026-07-28 19:45:38] local.INFO: ID value: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:38] local.INFO: ID empty? NO  
[2026-07-28 19:45:38] local.INFO: Attempting to find record with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:38] local.INFO: Record not found, creating new with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a39534db-9f34-48e8-ad95-21ef6214627b, Debit, 65.00, 145.000000, 9828.000000, Buying TX: Funds into cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:38, 2026-07-28 19:45:38))  
[2026-07-28 19:45:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:44] local.INFO: Model: Journal  
[2026-07-28 19:45:44] local.INFO: Data received: {"id":"a39534db-9f34-48e8-ad95-21ef6214627b","type":"Debit","amount":"65.00","rate":"145.000000","lcy_amount":"9828.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:45:44] local.INFO: ID present? YES  
[2026-07-28 19:45:44] local.INFO: ID value: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:44] local.INFO: ID empty? NO  
[2026-07-28 19:45:44] local.INFO: Attempting to find record with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:44] local.INFO: Record not found, creating new with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a39534db-9f34-48e8-ad95-21ef6214627b, Debit, 65.00, 145.000000, 9828.000000, Buying TX: Funds into cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:44, 2026-07-28 19:45:44))  
[2026-07-28 19:45:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:51] local.INFO: Model: Journal  
[2026-07-28 19:45:51] local.INFO: Data received: {"id":"a39534db-9f34-48e8-ad95-21ef6214627b","type":"Debit","amount":"65.00","rate":"145.000000","lcy_amount":"9828.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:45:51] local.INFO: ID present? YES  
[2026-07-28 19:45:51] local.INFO: ID value: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:51] local.INFO: ID empty? NO  
[2026-07-28 19:45:51] local.INFO: Attempting to find record with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:51] local.INFO: Record not found, creating new with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a39534db-9f34-48e8-ad95-21ef6214627b, Debit, 65.00, 145.000000, 9828.000000, Buying TX: Funds into cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:51, 2026-07-28 19:45:51))  
[2026-07-28 19:45:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:57] local.INFO: Model: Journal  
[2026-07-28 19:45:57] local.INFO: Data received: {"id":"a39534db-9f34-48e8-ad95-21ef6214627b","type":"Debit","amount":"65.00","rate":"145.000000","lcy_amount":"9828.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:45:57] local.INFO: ID present? YES  
[2026-07-28 19:45:57] local.INFO: ID value: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:57] local.INFO: ID empty? NO  
[2026-07-28 19:45:57] local.INFO: Attempting to find record with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:57] local.INFO: Record not found, creating new with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 19:45:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a39534db-9f34-48e8-ad95-21ef6214627b, Debit, 65.00, 145.000000, 9828.000000, Buying TX: Funds into cashbox, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:45:57, 2026-07-28 19:45:57))  
[2026-07-28 19:45:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:45:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:45:58] local.INFO: Model: Journal  
[2026-07-28 19:45:58] local.INFO: Data received: {"id":"a3d89dc4-0c27-4470-ad9b-627f7009aaab","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:45:58] local.INFO: ID present? YES  
[2026-07-28 19:45:58] local.INFO: ID value: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:45:58] local.INFO: ID empty? NO  
[2026-07-28 19:45:58] local.INFO: Attempting to find record with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:45:58] local.INFO: Record not found, creating new with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:45:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a3d89dc4-0c27-4470-ad9b-627f7009aaab, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:45:58, 2026-07-28 19:45:58))  
[2026-07-28 19:45:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:04] local.INFO: Model: Journal  
[2026-07-28 19:46:04] local.INFO: Data received: {"id":"a3d89dc4-0c27-4470-ad9b-627f7009aaab","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:46:04] local.INFO: ID present? YES  
[2026-07-28 19:46:04] local.INFO: ID value: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:04] local.INFO: ID empty? NO  
[2026-07-28 19:46:04] local.INFO: Attempting to find record with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:04] local.INFO: Record not found, creating new with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a3d89dc4-0c27-4470-ad9b-627f7009aaab, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:46:04, 2026-07-28 19:46:04))  
[2026-07-28 19:46:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:11] local.INFO: Model: Journal  
[2026-07-28 19:46:11] local.INFO: Data received: {"id":"a3d89dc4-0c27-4470-ad9b-627f7009aaab","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:46:11] local.INFO: ID present? YES  
[2026-07-28 19:46:11] local.INFO: ID value: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:11] local.INFO: ID empty? NO  
[2026-07-28 19:46:11] local.INFO: Attempting to find record with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:11] local.INFO: Record not found, creating new with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a3d89dc4-0c27-4470-ad9b-627f7009aaab, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:46:11, 2026-07-28 19:46:11))  
[2026-07-28 19:46:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:17] local.INFO: Model: Journal  
[2026-07-28 19:46:17] local.INFO: Data received: {"id":"a3d89dc4-0c27-4470-ad9b-627f7009aaab","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 19:46:17] local.INFO: ID present? YES  
[2026-07-28 19:46:17] local.INFO: ID value: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:17] local.INFO: ID empty? NO  
[2026-07-28 19:46:17] local.INFO: Attempting to find record with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:17] local.INFO: Record not found, creating new with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 19:46:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a3d89dc4-0c27-4470-ad9b-627f7009aaab, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:46:17, 2026-07-28 19:46:17))  
[2026-07-28 19:46:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:18] local.INFO: Model: Journal  
[2026-07-28 19:46:18] local.INFO: Data received: {"id":"a7652906-98b8-4e7f-b069-119f08021ca6","type":"Credit","amount":"372.00","rate":"145.000000","lcy_amount":"372.000000","narrative":"Gain on TR-3567-2026","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:46:18] local.INFO: ID present? YES  
[2026-07-28 19:46:18] local.INFO: ID value: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:18] local.INFO: ID empty? NO  
[2026-07-28 19:46:18] local.INFO: Attempting to find record with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:18] local.INFO: Record not found, creating new with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a7652906-98b8-4e7f-b069-119f08021ca6, Credit, 372.00, 145.000000, 372.000000, Gain on TR-3567-2026, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:18, 2026-07-28 19:46:18))  
[2026-07-28 19:46:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:24] local.INFO: Model: Journal  
[2026-07-28 19:46:24] local.INFO: Data received: {"id":"a7652906-98b8-4e7f-b069-119f08021ca6","type":"Credit","amount":"372.00","rate":"145.000000","lcy_amount":"372.000000","narrative":"Gain on TR-3567-2026","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:46:24] local.INFO: ID present? YES  
[2026-07-28 19:46:24] local.INFO: ID value: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:24] local.INFO: ID empty? NO  
[2026-07-28 19:46:24] local.INFO: Attempting to find record with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:24] local.INFO: Record not found, creating new with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a7652906-98b8-4e7f-b069-119f08021ca6, Credit, 372.00, 145.000000, 372.000000, Gain on TR-3567-2026, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:24, 2026-07-28 19:46:24))  
[2026-07-28 19:46:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:31] local.INFO: Model: Journal  
[2026-07-28 19:46:31] local.INFO: Data received: {"id":"a7652906-98b8-4e7f-b069-119f08021ca6","type":"Credit","amount":"372.00","rate":"145.000000","lcy_amount":"372.000000","narrative":"Gain on TR-3567-2026","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:46:31] local.INFO: ID present? YES  
[2026-07-28 19:46:31] local.INFO: ID value: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:31] local.INFO: ID empty? NO  
[2026-07-28 19:46:31] local.INFO: Attempting to find record with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:31] local.INFO: Record not found, creating new with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a7652906-98b8-4e7f-b069-119f08021ca6, Credit, 372.00, 145.000000, 372.000000, Gain on TR-3567-2026, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:31, 2026-07-28 19:46:31))  
[2026-07-28 19:46:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:37] local.INFO: Model: Journal  
[2026-07-28 19:46:37] local.INFO: Data received: {"id":"a7652906-98b8-4e7f-b069-119f08021ca6","type":"Credit","amount":"372.00","rate":"145.000000","lcy_amount":"372.000000","narrative":"Gain on TR-3567-2026","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 19:46:37] local.INFO: ID present? YES  
[2026-07-28 19:46:37] local.INFO: ID value: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:37] local.INFO: ID empty? NO  
[2026-07-28 19:46:37] local.INFO: Attempting to find record with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:37] local.INFO: Record not found, creating new with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 19:46:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a7652906-98b8-4e7f-b069-119f08021ca6, Credit, 372.00, 145.000000, 372.000000, Gain on TR-3567-2026, cf9267ab-03fa-4e20-8664-7d613bd08bba, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, cf9267ab-03fa-4e20-8664-7d613bd08bba, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:37, 2026-07-28 19:46:37))  
[2026-07-28 19:46:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:38] local.INFO: Model: Journal  
[2026-07-28 19:46:38] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:46:38] local.INFO: ID present? YES  
[2026-07-28 19:46:38] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:38] local.INFO: ID empty? NO  
[2026-07-28 19:46:38] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:38] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:38, 2026-07-28 19:46:38))  
[2026-07-28 19:46:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:45] local.INFO: Model: Journal  
[2026-07-28 19:46:45] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:46:45] local.INFO: ID present? YES  
[2026-07-28 19:46:45] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:45] local.INFO: ID empty? NO  
[2026-07-28 19:46:45] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:45] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:45, 2026-07-28 19:46:45))  
[2026-07-28 19:46:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:51] local.INFO: Model: Journal  
[2026-07-28 19:46:51] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:46:51] local.INFO: ID present? YES  
[2026-07-28 19:46:51] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:51] local.INFO: ID empty? NO  
[2026-07-28 19:46:51] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:51] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:51, 2026-07-28 19:46:51))  
[2026-07-28 19:46:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:57] local.INFO: Model: Journal  
[2026-07-28 19:46:57] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 19:46:57] local.INFO: ID present? YES  
[2026-07-28 19:46:57] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:57] local.INFO: ID empty? NO  
[2026-07-28 19:46:57] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:57] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 19:46:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:46:57, 2026-07-28 19:46:57))  
[2026-07-28 19:46:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:46:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:46:58] local.INFO: Model: Journal  
[2026-07-28 19:46:58] local.INFO: Data received: {"id":"a8afdae8-c5aa-413f-953c-121ed5c9f955","type":"Debit","amount":"140.00","rate":"127.500000","lcy_amount":"18060.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:46:58] local.INFO: ID present? YES  
[2026-07-28 19:46:58] local.INFO: ID value: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:46:58] local.INFO: ID empty? NO  
[2026-07-28 19:46:58] local.INFO: Attempting to find record with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:46:58] local.INFO: Record not found, creating new with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:46:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8afdae8-c5aa-413f-953c-121ed5c9f955, Debit, 140.00, 127.500000, 18060.000000, Buying TX: Funds into cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:46:58, 2026-07-28 19:46:58))  
[2026-07-28 19:46:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:05] local.INFO: Model: Journal  
[2026-07-28 19:47:05] local.INFO: Data received: {"id":"a8afdae8-c5aa-413f-953c-121ed5c9f955","type":"Debit","amount":"140.00","rate":"127.500000","lcy_amount":"18060.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:47:05] local.INFO: ID present? YES  
[2026-07-28 19:47:05] local.INFO: ID value: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:05] local.INFO: ID empty? NO  
[2026-07-28 19:47:05] local.INFO: Attempting to find record with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:05] local.INFO: Record not found, creating new with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8afdae8-c5aa-413f-953c-121ed5c9f955, Debit, 140.00, 127.500000, 18060.000000, Buying TX: Funds into cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:47:05, 2026-07-28 19:47:05))  
[2026-07-28 19:47:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:11] local.INFO: Model: Journal  
[2026-07-28 19:47:11] local.INFO: Data received: {"id":"a8afdae8-c5aa-413f-953c-121ed5c9f955","type":"Debit","amount":"140.00","rate":"127.500000","lcy_amount":"18060.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:47:11] local.INFO: ID present? YES  
[2026-07-28 19:47:11] local.INFO: ID value: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:11] local.INFO: ID empty? NO  
[2026-07-28 19:47:11] local.INFO: Attempting to find record with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:11] local.INFO: Record not found, creating new with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8afdae8-c5aa-413f-953c-121ed5c9f955, Debit, 140.00, 127.500000, 18060.000000, Buying TX: Funds into cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:47:11, 2026-07-28 19:47:11))  
[2026-07-28 19:47:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:17] local.INFO: Model: Journal  
[2026-07-28 19:47:17] local.INFO: Data received: {"id":"a8afdae8-c5aa-413f-953c-121ed5c9f955","type":"Debit","amount":"140.00","rate":"127.500000","lcy_amount":"18060.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 19:47:17] local.INFO: ID present? YES  
[2026-07-28 19:47:17] local.INFO: ID value: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:17] local.INFO: ID empty? NO  
[2026-07-28 19:47:17] local.INFO: Attempting to find record with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:17] local.INFO: Record not found, creating new with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 19:47:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8afdae8-c5aa-413f-953c-121ed5c9f955, Debit, 140.00, 127.500000, 18060.000000, Buying TX: Funds into cashbox, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:47:17, 2026-07-28 19:47:17))  
[2026-07-28 19:47:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:18] local.INFO: Model: Journal  
[2026-07-28 19:47:18] local.INFO: Data received: {"id":"a8e2db11-8513-4edf-8797-d11bcb4b382e","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3582-2026","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:47:18] local.INFO: ID present? YES  
[2026-07-28 19:47:18] local.INFO: ID value: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:18] local.INFO: ID empty? NO  
[2026-07-28 19:47:18] local.INFO: Attempting to find record with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:18] local.INFO: Record not found, creating new with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8e2db11-8513-4edf-8797-d11bcb4b382e, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3582-2026, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:18, 2026-07-28 19:47:18))  
[2026-07-28 19:47:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:25] local.INFO: Model: Journal  
[2026-07-28 19:47:25] local.INFO: Data received: {"id":"a8e2db11-8513-4edf-8797-d11bcb4b382e","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3582-2026","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:47:25] local.INFO: ID present? YES  
[2026-07-28 19:47:25] local.INFO: ID value: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:25] local.INFO: ID empty? NO  
[2026-07-28 19:47:25] local.INFO: Attempting to find record with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:25] local.INFO: Record not found, creating new with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8e2db11-8513-4edf-8797-d11bcb4b382e, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3582-2026, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:25, 2026-07-28 19:47:25))  
[2026-07-28 19:47:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:31] local.INFO: Model: Journal  
[2026-07-28 19:47:31] local.INFO: Data received: {"id":"a8e2db11-8513-4edf-8797-d11bcb4b382e","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3582-2026","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:47:31] local.INFO: ID present? YES  
[2026-07-28 19:47:31] local.INFO: ID value: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:31] local.INFO: ID empty? NO  
[2026-07-28 19:47:31] local.INFO: Attempting to find record with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:31] local.INFO: Record not found, creating new with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8e2db11-8513-4edf-8797-d11bcb4b382e, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3582-2026, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:31, 2026-07-28 19:47:31))  
[2026-07-28 19:47:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:37] local.INFO: Model: Journal  
[2026-07-28 19:47:37] local.INFO: Data received: {"id":"a8e2db11-8513-4edf-8797-d11bcb4b382e","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3582-2026","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 19:47:37] local.INFO: ID present? YES  
[2026-07-28 19:47:37] local.INFO: ID value: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:37] local.INFO: ID empty? NO  
[2026-07-28 19:47:37] local.INFO: Attempting to find record with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:37] local.INFO: Record not found, creating new with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 19:47:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a8e2db11-8513-4edf-8797-d11bcb4b382e, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3582-2026, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375, 476fc9fb-6470-4c9e-a6f8-f8777a8e1284, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:37, 2026-07-28 19:47:37))  
[2026-07-28 19:47:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:38] local.INFO: Model: Journal  
[2026-07-28 19:47:38] local.INFO: Data received: {"id":"a91a413c-7105-4e3c-a57a-80e04c9f9a7f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3578-2026","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:47:38] local.INFO: ID present? YES  
[2026-07-28 19:47:38] local.INFO: ID value: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:38] local.INFO: ID empty? NO  
[2026-07-28 19:47:38] local.INFO: Attempting to find record with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:38] local.INFO: Record not found, creating new with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a91a413c-7105-4e3c-a57a-80e04c9f9a7f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3578-2026, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:38, 2026-07-28 19:47:38))  
[2026-07-28 19:47:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:45] local.INFO: Model: Journal  
[2026-07-28 19:47:45] local.INFO: Data received: {"id":"a91a413c-7105-4e3c-a57a-80e04c9f9a7f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3578-2026","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:47:45] local.INFO: ID present? YES  
[2026-07-28 19:47:45] local.INFO: ID value: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:45] local.INFO: ID empty? NO  
[2026-07-28 19:47:45] local.INFO: Attempting to find record with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:45] local.INFO: Record not found, creating new with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a91a413c-7105-4e3c-a57a-80e04c9f9a7f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3578-2026, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:45, 2026-07-28 19:47:45))  
[2026-07-28 19:47:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:51] local.INFO: Model: Journal  
[2026-07-28 19:47:51] local.INFO: Data received: {"id":"a91a413c-7105-4e3c-a57a-80e04c9f9a7f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3578-2026","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:47:51] local.INFO: ID present? YES  
[2026-07-28 19:47:51] local.INFO: ID value: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:51] local.INFO: ID empty? NO  
[2026-07-28 19:47:51] local.INFO: Attempting to find record with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:51] local.INFO: Record not found, creating new with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a91a413c-7105-4e3c-a57a-80e04c9f9a7f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3578-2026, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:51, 2026-07-28 19:47:51))  
[2026-07-28 19:47:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:57] local.INFO: Model: Journal  
[2026-07-28 19:47:57] local.INFO: Data received: {"id":"a91a413c-7105-4e3c-a57a-80e04c9f9a7f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3578-2026","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 19:47:57] local.INFO: ID present? YES  
[2026-07-28 19:47:57] local.INFO: ID value: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:57] local.INFO: ID empty? NO  
[2026-07-28 19:47:57] local.INFO: Attempting to find record with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:57] local.INFO: Record not found, creating new with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 19:47:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a91a413c-7105-4e3c-a57a-80e04c9f9a7f, Credit, 450.00, 127.500000, 450.000000, Gain on TR-3578-2026, 1fdf6d60-e80a-4caa-852a-125aa4251185, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1fdf6d60-e80a-4caa-852a-125aa4251185, 79725497-6565-43d9-98ba-48d26c2d6d5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:57, 2026-07-28 19:47:57))  
[2026-07-28 19:47:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:47:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:47:59] local.INFO: Model: Journal  
[2026-07-28 19:47:59] local.INFO: Data received: {"id":"aba284b5-f9e1-4d09-8667-140d0a2212dd","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3584-2026","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:47:59] local.INFO: ID present? YES  
[2026-07-28 19:47:59] local.INFO: ID value: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:47:59] local.INFO: ID empty? NO  
[2026-07-28 19:47:59] local.INFO: Attempting to find record with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:47:59] local.INFO: Record not found, creating new with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:47:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (aba284b5-f9e1-4d09-8667-140d0a2212dd, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3584-2026, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:47:59, 2026-07-28 19:47:59))  
[2026-07-28 19:47:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:05] local.INFO: Model: Journal  
[2026-07-28 19:48:05] local.INFO: Data received: {"id":"aba284b5-f9e1-4d09-8667-140d0a2212dd","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3584-2026","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:48:05] local.INFO: ID present? YES  
[2026-07-28 19:48:05] local.INFO: ID value: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:05] local.INFO: ID empty? NO  
[2026-07-28 19:48:05] local.INFO: Attempting to find record with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:05] local.INFO: Record not found, creating new with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (aba284b5-f9e1-4d09-8667-140d0a2212dd, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3584-2026, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:05, 2026-07-28 19:48:05))  
[2026-07-28 19:48:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:11] local.INFO: Model: Journal  
[2026-07-28 19:48:11] local.INFO: Data received: {"id":"aba284b5-f9e1-4d09-8667-140d0a2212dd","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3584-2026","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:48:11] local.INFO: ID present? YES  
[2026-07-28 19:48:11] local.INFO: ID value: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:11] local.INFO: ID empty? NO  
[2026-07-28 19:48:11] local.INFO: Attempting to find record with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:11] local.INFO: Record not found, creating new with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (aba284b5-f9e1-4d09-8667-140d0a2212dd, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3584-2026, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:11, 2026-07-28 19:48:11))  
[2026-07-28 19:48:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:17] local.INFO: Model: Journal  
[2026-07-28 19:48:17] local.INFO: Data received: {"id":"aba284b5-f9e1-4d09-8667-140d0a2212dd","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3584-2026","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 19:48:17] local.INFO: ID present? YES  
[2026-07-28 19:48:17] local.INFO: ID value: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:17] local.INFO: ID empty? NO  
[2026-07-28 19:48:17] local.INFO: Attempting to find record with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:17] local.INFO: Record not found, creating new with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 19:48:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (aba284b5-f9e1-4d09-8667-140d0a2212dd, Credit, 620.00, 145.000000, 620.000000, Gain on TR-3584-2026, 597a9446-61c6-4468-824b-d121e1493357, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 597a9446-61c6-4468-824b-d121e1493357, 15257062-2b21-4280-bead-3b3c0880da54, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:17, 2026-07-28 19:48:17))  
[2026-07-28 19:48:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:19] local.INFO: Model: Journal  
[2026-07-28 19:48:19] local.INFO: Data received: {"id":"b041504f-8734-4d56-89c3-cce4723c6e8e","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:48:19] local.INFO: ID present? YES  
[2026-07-28 19:48:19] local.INFO: ID value: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:19] local.INFO: ID empty? NO  
[2026-07-28 19:48:19] local.INFO: Attempting to find record with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:19] local.INFO: Record not found, creating new with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b041504f-8734-4d56-89c3-cce4723c6e8e, Credit, 5800.00, 145.000000, 5800.000000, Buying TX: Funds out of cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:19, 2026-07-28 19:48:19))  
[2026-07-28 19:48:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:25] local.INFO: Model: Journal  
[2026-07-28 19:48:25] local.INFO: Data received: {"id":"b041504f-8734-4d56-89c3-cce4723c6e8e","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:48:25] local.INFO: ID present? YES  
[2026-07-28 19:48:25] local.INFO: ID value: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:25] local.INFO: ID empty? NO  
[2026-07-28 19:48:25] local.INFO: Attempting to find record with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:25] local.INFO: Record not found, creating new with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b041504f-8734-4d56-89c3-cce4723c6e8e, Credit, 5800.00, 145.000000, 5800.000000, Buying TX: Funds out of cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:25, 2026-07-28 19:48:25))  
[2026-07-28 19:48:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:31] local.INFO: Model: Journal  
[2026-07-28 19:48:31] local.INFO: Data received: {"id":"b041504f-8734-4d56-89c3-cce4723c6e8e","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:48:31] local.INFO: ID present? YES  
[2026-07-28 19:48:31] local.INFO: ID value: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:31] local.INFO: ID empty? NO  
[2026-07-28 19:48:31] local.INFO: Attempting to find record with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:31] local.INFO: Record not found, creating new with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b041504f-8734-4d56-89c3-cce4723c6e8e, Credit, 5800.00, 145.000000, 5800.000000, Buying TX: Funds out of cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:31, 2026-07-28 19:48:31))  
[2026-07-28 19:48:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:37] local.INFO: Model: Journal  
[2026-07-28 19:48:37] local.INFO: Data received: {"id":"b041504f-8734-4d56-89c3-cce4723c6e8e","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:48:37] local.INFO: ID present? YES  
[2026-07-28 19:48:37] local.INFO: ID value: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:37] local.INFO: ID empty? NO  
[2026-07-28 19:48:37] local.INFO: Attempting to find record with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:37] local.INFO: Record not found, creating new with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 19:48:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b041504f-8734-4d56-89c3-cce4723c6e8e, Credit, 5800.00, 145.000000, 5800.000000, Buying TX: Funds out of cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:37, 2026-07-28 19:48:37))  
[2026-07-28 19:48:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:39] local.INFO: Model: Journal  
[2026-07-28 19:48:39] local.INFO: Data received: {"id":"b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1","type":"Debit","amount":"100.00","rate":null,"lcy_amount":"17345.000000","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"ce9d8957-2875-4287-803f-e465f58d8205","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 17:28:12","updated_at":"2026-07-28 17:28:13"} 
[2026-07-28 19:48:39] local.INFO: ID present? YES  
[2026-07-28 19:48:39] local.INFO: ID value: b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1  
[2026-07-28 19:48:39] local.INFO: ID empty? NO  
[2026-07-28 19:48:39] local.INFO: Attempting to find record with ID: b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1  
[2026-07-28 19:48:39] local.INFO: Record not found, creating new with ID: b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1  
[2026-07-28 19:48:39] local.INFO: Created record: {"id":"b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1","type":"Debit","amount":"100.00","rate":null,"lcy_amount":"17345.000000","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"ce9d8957-2875-4287-803f-e465f58d8205","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","updated_at":"2026-07-28T16:48:39.000000Z","created_at":"2026-07-28T16:48:39.000000Z","account":{"id":"ce9d8957-2875-4287-803f-e465f58d8205","name":"GBP-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-GBP-000001","is_fx_account":"1","balance":1170.0,"debit_total":1210.0,"credit_total":"40.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d7b87b04-d19c-4bed-9d3c-115c07257649","teller_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-24T08:48:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:48:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:40] local.INFO: Model: Journal  
[2026-07-28 19:48:40] local.INFO: Data received: {"id":"b39614cc-72c8-4f5c-929b-9863a1de7842","type":"Debit","amount":"421045.00","rate":null,"lcy_amount":"421045.000000","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 18:44:29","updated_at":"2026-07-28 18:44:32"} 
[2026-07-28 19:48:40] local.INFO: ID present? YES  
[2026-07-28 19:48:40] local.INFO: ID value: b39614cc-72c8-4f5c-929b-9863a1de7842  
[2026-07-28 19:48:40] local.INFO: ID empty? NO  
[2026-07-28 19:48:40] local.INFO: Attempting to find record with ID: b39614cc-72c8-4f5c-929b-9863a1de7842  
[2026-07-28 19:48:40] local.INFO: Record not found, creating new with ID: b39614cc-72c8-4f5c-929b-9863a1de7842  
[2026-07-28 19:48:40] local.INFO: Created record: {"id":"b39614cc-72c8-4f5c-929b-9863a1de7842","type":"Debit","amount":"421045.00","rate":null,"lcy_amount":"421045.000000","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T16:48:40.000000Z","created_at":"2026-07-28T16:48:40.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1335219.5,"debit_total":16884677.3000000007450580596923828125,"credit_total":"15549457.80","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:14:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:48:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:41] local.INFO: Model: Journal  
[2026-07-28 19:48:41] local.INFO: Data received: {"id":"b428a2a3-490d-4360-a55a-46ffe080ee10","type":"Credit","amount":"400.00","rate":"128.000000","lcy_amount":"400.000000","narrative":"Gain on TR-3565-2026","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:48:41] local.INFO: ID present? YES  
[2026-07-28 19:48:41] local.INFO: ID value: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:41] local.INFO: ID empty? NO  
[2026-07-28 19:48:41] local.INFO: Attempting to find record with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:41] local.INFO: Record not found, creating new with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b428a2a3-490d-4360-a55a-46ffe080ee10, Credit, 400.00, 128.000000, 400.000000, Gain on TR-3565-2026, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:41, 2026-07-28 19:48:41))  
[2026-07-28 19:48:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:47] local.INFO: Model: Journal  
[2026-07-28 19:48:47] local.INFO: Data received: {"id":"b428a2a3-490d-4360-a55a-46ffe080ee10","type":"Credit","amount":"400.00","rate":"128.000000","lcy_amount":"400.000000","narrative":"Gain on TR-3565-2026","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:48:47] local.INFO: ID present? YES  
[2026-07-28 19:48:47] local.INFO: ID value: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:47] local.INFO: ID empty? NO  
[2026-07-28 19:48:47] local.INFO: Attempting to find record with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:47] local.INFO: Record not found, creating new with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b428a2a3-490d-4360-a55a-46ffe080ee10, Credit, 400.00, 128.000000, 400.000000, Gain on TR-3565-2026, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:47, 2026-07-28 19:48:47))  
[2026-07-28 19:48:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:48:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:48:54] local.INFO: Model: Journal  
[2026-07-28 19:48:54] local.INFO: Data received: {"id":"b428a2a3-490d-4360-a55a-46ffe080ee10","type":"Credit","amount":"400.00","rate":"128.000000","lcy_amount":"400.000000","narrative":"Gain on TR-3565-2026","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:48:54] local.INFO: ID present? YES  
[2026-07-28 19:48:54] local.INFO: ID value: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:54] local.INFO: ID empty? NO  
[2026-07-28 19:48:54] local.INFO: Attempting to find record with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:54] local.INFO: Record not found, creating new with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:48:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b428a2a3-490d-4360-a55a-46ffe080ee10, Credit, 400.00, 128.000000, 400.000000, Gain on TR-3565-2026, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:48:54, 2026-07-28 19:48:54))  
[2026-07-28 19:48:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:00] local.INFO: Model: Journal  
[2026-07-28 19:49:00] local.INFO: Data received: {"id":"b428a2a3-490d-4360-a55a-46ffe080ee10","type":"Credit","amount":"400.00","rate":"128.000000","lcy_amount":"400.000000","narrative":"Gain on TR-3565-2026","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 19:49:00] local.INFO: ID present? YES  
[2026-07-28 19:49:00] local.INFO: ID value: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:49:00] local.INFO: ID empty? NO  
[2026-07-28 19:49:00] local.INFO: Attempting to find record with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:49:00] local.INFO: Record not found, creating new with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 19:49:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b428a2a3-490d-4360-a55a-46ffe080ee10, Credit, 400.00, 128.000000, 400.000000, Gain on TR-3565-2026, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, ba6a7e5a-6a88-4e17-add9-ca7ed30ae986, 0db3b090-e1de-40cd-bc79-b6bbcc870750, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:49:00, 2026-07-28 19:49:00))  
[2026-07-28 19:49:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:01] local.INFO: Model: Journal  
[2026-07-28 19:49:01] local.INFO: Data received: {"id":"b49348d6-a50e-4aa8-abaf-1ff4787a51ea","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:49:01] local.INFO: ID present? YES  
[2026-07-28 19:49:01] local.INFO: ID value: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:01] local.INFO: ID empty? NO  
[2026-07-28 19:49:01] local.INFO: Attempting to find record with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:01] local.INFO: Record not found, creating new with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b49348d6-a50e-4aa8-abaf-1ff4787a51ea, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:49:01, 2026-07-28 19:49:01))  
[2026-07-28 19:49:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:07] local.INFO: Model: Journal  
[2026-07-28 19:49:07] local.INFO: Data received: {"id":"b49348d6-a50e-4aa8-abaf-1ff4787a51ea","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:49:07] local.INFO: ID present? YES  
[2026-07-28 19:49:07] local.INFO: ID value: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:07] local.INFO: ID empty? NO  
[2026-07-28 19:49:07] local.INFO: Attempting to find record with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:07] local.INFO: Record not found, creating new with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b49348d6-a50e-4aa8-abaf-1ff4787a51ea, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:49:07, 2026-07-28 19:49:07))  
[2026-07-28 19:49:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:14] local.INFO: Model: Journal  
[2026-07-28 19:49:14] local.INFO: Data received: {"id":"b49348d6-a50e-4aa8-abaf-1ff4787a51ea","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:49:14] local.INFO: ID present? YES  
[2026-07-28 19:49:14] local.INFO: ID value: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:14] local.INFO: ID empty? NO  
[2026-07-28 19:49:14] local.INFO: Attempting to find record with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:14] local.INFO: Record not found, creating new with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b49348d6-a50e-4aa8-abaf-1ff4787a51ea, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:49:14, 2026-07-28 19:49:14))  
[2026-07-28 19:49:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:20] local.INFO: Model: Journal  
[2026-07-28 19:49:20] local.INFO: Data received: {"id":"b49348d6-a50e-4aa8-abaf-1ff4787a51ea","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"07fd9cf2-72e2-40df-b7e4-dae359bf3f7a","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:45:34","updated_at":"2026-07-18 16:45:34"} 
[2026-07-28 19:49:20] local.INFO: ID present? YES  
[2026-07-28 19:49:20] local.INFO: ID value: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:20] local.INFO: ID empty? NO  
[2026-07-28 19:49:20] local.INFO: Attempting to find record with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:20] local.INFO: Record not found, creating new with ID: b49348d6-a50e-4aa8-abaf-1ff4787a51ea  
[2026-07-28 19:49:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b49348d6-a50e-4aa8-abaf-1ff4787a51ea, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 07fd9cf2-72e2-40df-b7e4-dae359bf3f7a, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:49:20, 2026-07-28 19:49:20))  
[2026-07-28 19:49:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:21] local.INFO: Model: Journal  
[2026-07-28 19:49:21] local.INFO: Data received: {"id":"b6061f91-29e4-492a-bcaf-85ce8c596eb8","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:49:21] local.INFO: ID present? YES  
[2026-07-28 19:49:21] local.INFO: ID value: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:21] local.INFO: ID empty? NO  
[2026-07-28 19:49:21] local.INFO: Attempting to find record with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:21] local.INFO: Record not found, creating new with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b6061f91-29e4-492a-bcaf-85ce8c596eb8, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:49:21, 2026-07-28 19:49:21))  
[2026-07-28 19:49:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:27] local.INFO: Model: Journal  
[2026-07-28 19:49:27] local.INFO: Data received: {"id":"b6061f91-29e4-492a-bcaf-85ce8c596eb8","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:49:27] local.INFO: ID present? YES  
[2026-07-28 19:49:27] local.INFO: ID value: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:27] local.INFO: ID empty? NO  
[2026-07-28 19:49:27] local.INFO: Attempting to find record with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:27] local.INFO: Record not found, creating new with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b6061f91-29e4-492a-bcaf-85ce8c596eb8, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:49:27, 2026-07-28 19:49:27))  
[2026-07-28 19:49:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:34] local.INFO: Model: Journal  
[2026-07-28 19:49:34] local.INFO: Data received: {"id":"b6061f91-29e4-492a-bcaf-85ce8c596eb8","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:49:34] local.INFO: ID present? YES  
[2026-07-28 19:49:34] local.INFO: ID value: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:34] local.INFO: ID empty? NO  
[2026-07-28 19:49:34] local.INFO: Attempting to find record with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:34] local.INFO: Record not found, creating new with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b6061f91-29e4-492a-bcaf-85ce8c596eb8, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:49:34, 2026-07-28 19:49:34))  
[2026-07-28 19:49:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:40] local.INFO: Model: Journal  
[2026-07-28 19:49:40] local.INFO: Data received: {"id":"b6061f91-29e4-492a-bcaf-85ce8c596eb8","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 19:49:40] local.INFO: ID present? YES  
[2026-07-28 19:49:40] local.INFO: ID value: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:40] local.INFO: ID empty? NO  
[2026-07-28 19:49:40] local.INFO: Attempting to find record with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:40] local.INFO: Record not found, creating new with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 19:49:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b6061f91-29e4-492a-bcaf-85ce8c596eb8, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 57366bf1-63ba-439b-a913-5602c69040ba, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 57366bf1-63ba-439b-a913-5602c69040ba, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:49:40, 2026-07-28 19:49:40))  
[2026-07-28 19:49:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:41] local.INFO: Model: Journal  
[2026-07-28 19:49:41] local.INFO: Data received: {"id":"b616e78f-2a46-4756-972b-92184f2bb727","type":"Credit","amount":"2550.00","rate":"127.500000","lcy_amount":"2550.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:49:41] local.INFO: ID present? YES  
[2026-07-28 19:49:41] local.INFO: ID value: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:41] local.INFO: ID empty? NO  
[2026-07-28 19:49:41] local.INFO: Attempting to find record with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:41] local.INFO: Record not found, creating new with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b616e78f-2a46-4756-972b-92184f2bb727, Credit, 2550.00, 127.500000, 2550.000000, Buying TX: Funds out of cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:49:41, 2026-07-28 19:49:41))  
[2026-07-28 19:49:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:48] local.INFO: Model: Journal  
[2026-07-28 19:49:48] local.INFO: Data received: {"id":"b616e78f-2a46-4756-972b-92184f2bb727","type":"Credit","amount":"2550.00","rate":"127.500000","lcy_amount":"2550.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:49:48] local.INFO: ID present? YES  
[2026-07-28 19:49:48] local.INFO: ID value: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:48] local.INFO: ID empty? NO  
[2026-07-28 19:49:48] local.INFO: Attempting to find record with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:48] local.INFO: Record not found, creating new with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b616e78f-2a46-4756-972b-92184f2bb727, Credit, 2550.00, 127.500000, 2550.000000, Buying TX: Funds out of cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:49:48, 2026-07-28 19:49:48))  
[2026-07-28 19:49:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:49:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:49:54] local.INFO: Model: Journal  
[2026-07-28 19:49:54] local.INFO: Data received: {"id":"b616e78f-2a46-4756-972b-92184f2bb727","type":"Credit","amount":"2550.00","rate":"127.500000","lcy_amount":"2550.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:49:54] local.INFO: ID present? YES  
[2026-07-28 19:49:54] local.INFO: ID value: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:54] local.INFO: ID empty? NO  
[2026-07-28 19:49:54] local.INFO: Attempting to find record with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:54] local.INFO: Record not found, creating new with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:49:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b616e78f-2a46-4756-972b-92184f2bb727, Credit, 2550.00, 127.500000, 2550.000000, Buying TX: Funds out of cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:49:54, 2026-07-28 19:49:54))  
[2026-07-28 19:49:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:00] local.INFO: Model: Journal  
[2026-07-28 19:50:00] local.INFO: Data received: {"id":"b616e78f-2a46-4756-972b-92184f2bb727","type":"Credit","amount":"2550.00","rate":"127.500000","lcy_amount":"2550.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 19:50:00] local.INFO: ID present? YES  
[2026-07-28 19:50:00] local.INFO: ID value: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:50:00] local.INFO: ID empty? NO  
[2026-07-28 19:50:00] local.INFO: Attempting to find record with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:50:00] local.INFO: Record not found, creating new with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 19:50:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b616e78f-2a46-4756-972b-92184f2bb727, Credit, 2550.00, 127.500000, 2550.000000, Buying TX: Funds out of cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:50:00, 2026-07-28 19:50:00))  
[2026-07-28 19:50:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:01] local.INFO: Model: Journal  
[2026-07-28 19:50:01] local.INFO: Data received: {"id":"b775a653-d51d-49ad-81b6-2f154e2c7426","type":"Credit","amount":"403.00","rate":"145.000000","lcy_amount":"403.000000","narrative":"Gain on TR-3595-2026","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:50:01] local.INFO: ID present? YES  
[2026-07-28 19:50:01] local.INFO: ID value: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:01] local.INFO: ID empty? NO  
[2026-07-28 19:50:01] local.INFO: Attempting to find record with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:01] local.INFO: Record not found, creating new with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b775a653-d51d-49ad-81b6-2f154e2c7426, Credit, 403.00, 145.000000, 403.000000, Gain on TR-3595-2026, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:50:01, 2026-07-28 19:50:01))  
[2026-07-28 19:50:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:08] local.INFO: Model: Journal  
[2026-07-28 19:50:08] local.INFO: Data received: {"id":"b775a653-d51d-49ad-81b6-2f154e2c7426","type":"Credit","amount":"403.00","rate":"145.000000","lcy_amount":"403.000000","narrative":"Gain on TR-3595-2026","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:50:08] local.INFO: ID present? YES  
[2026-07-28 19:50:08] local.INFO: ID value: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:08] local.INFO: ID empty? NO  
[2026-07-28 19:50:08] local.INFO: Attempting to find record with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:08] local.INFO: Record not found, creating new with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b775a653-d51d-49ad-81b6-2f154e2c7426, Credit, 403.00, 145.000000, 403.000000, Gain on TR-3595-2026, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:50:08, 2026-07-28 19:50:08))  
[2026-07-28 19:50:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:14] local.INFO: Model: Journal  
[2026-07-28 19:50:14] local.INFO: Data received: {"id":"b775a653-d51d-49ad-81b6-2f154e2c7426","type":"Credit","amount":"403.00","rate":"145.000000","lcy_amount":"403.000000","narrative":"Gain on TR-3595-2026","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:50:14] local.INFO: ID present? YES  
[2026-07-28 19:50:14] local.INFO: ID value: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:14] local.INFO: ID empty? NO  
[2026-07-28 19:50:14] local.INFO: Attempting to find record with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:14] local.INFO: Record not found, creating new with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b775a653-d51d-49ad-81b6-2f154e2c7426, Credit, 403.00, 145.000000, 403.000000, Gain on TR-3595-2026, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:50:14, 2026-07-28 19:50:14))  
[2026-07-28 19:50:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:20] local.INFO: Model: Journal  
[2026-07-28 19:50:20] local.INFO: Data received: {"id":"b775a653-d51d-49ad-81b6-2f154e2c7426","type":"Credit","amount":"403.00","rate":"145.000000","lcy_amount":"403.000000","narrative":"Gain on TR-3595-2026","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 19:50:20] local.INFO: ID present? YES  
[2026-07-28 19:50:20] local.INFO: ID value: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:20] local.INFO: ID empty? NO  
[2026-07-28 19:50:20] local.INFO: Attempting to find record with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:20] local.INFO: Record not found, creating new with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 19:50:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b775a653-d51d-49ad-81b6-2f154e2c7426, Credit, 403.00, 145.000000, 403.000000, Gain on TR-3595-2026, 703c7183-ec05-47e1-b610-b0d4853b313b, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 703c7183-ec05-47e1-b610-b0d4853b313b, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:50:20, 2026-07-28 19:50:20))  
[2026-07-28 19:50:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:22] local.INFO: Model: Journal  
[2026-07-28 19:50:22] local.INFO: Data received: {"id":"b9ffd3a2-f7af-4543-a31d-1f85b66074fa","type":"Debit","amount":"120.00","rate":"127.500000","lcy_amount":"15480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:50:22] local.INFO: ID present? YES  
[2026-07-28 19:50:22] local.INFO: ID value: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:22] local.INFO: ID empty? NO  
[2026-07-28 19:50:22] local.INFO: Attempting to find record with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:22] local.INFO: Record not found, creating new with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b9ffd3a2-f7af-4543-a31d-1f85b66074fa, Debit, 120.00, 127.500000, 15480.000000, Buying TX: Funds into cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:50:22, 2026-07-28 19:50:22))  
[2026-07-28 19:50:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:28] local.INFO: Model: Journal  
[2026-07-28 19:50:28] local.INFO: Data received: {"id":"b9ffd3a2-f7af-4543-a31d-1f85b66074fa","type":"Debit","amount":"120.00","rate":"127.500000","lcy_amount":"15480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:50:28] local.INFO: ID present? YES  
[2026-07-28 19:50:28] local.INFO: ID value: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:28] local.INFO: ID empty? NO  
[2026-07-28 19:50:28] local.INFO: Attempting to find record with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:28] local.INFO: Record not found, creating new with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b9ffd3a2-f7af-4543-a31d-1f85b66074fa, Debit, 120.00, 127.500000, 15480.000000, Buying TX: Funds into cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:50:28, 2026-07-28 19:50:28))  
[2026-07-28 19:50:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:34] local.INFO: Model: Journal  
[2026-07-28 19:50:34] local.INFO: Data received: {"id":"b9ffd3a2-f7af-4543-a31d-1f85b66074fa","type":"Debit","amount":"120.00","rate":"127.500000","lcy_amount":"15480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:50:34] local.INFO: ID present? YES  
[2026-07-28 19:50:34] local.INFO: ID value: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:34] local.INFO: ID empty? NO  
[2026-07-28 19:50:34] local.INFO: Attempting to find record with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:34] local.INFO: Record not found, creating new with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b9ffd3a2-f7af-4543-a31d-1f85b66074fa, Debit, 120.00, 127.500000, 15480.000000, Buying TX: Funds into cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:50:34, 2026-07-28 19:50:34))  
[2026-07-28 19:50:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:40] local.INFO: Model: Journal  
[2026-07-28 19:50:40] local.INFO: Data received: {"id":"b9ffd3a2-f7af-4543-a31d-1f85b66074fa","type":"Debit","amount":"120.00","rate":"127.500000","lcy_amount":"15480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 19:50:40] local.INFO: ID present? YES  
[2026-07-28 19:50:40] local.INFO: ID value: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:40] local.INFO: ID empty? NO  
[2026-07-28 19:50:40] local.INFO: Attempting to find record with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:40] local.INFO: Record not found, creating new with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 19:50:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (b9ffd3a2-f7af-4543-a31d-1f85b66074fa, Debit, 120.00, 127.500000, 15480.000000, Buying TX: Funds into cashbox, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8b3ab212-046c-44d6-aea2-5bf0a587a08d, 79725497-6565-43d9-98ba-48d26c2d6d5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:50:40, 2026-07-28 19:50:40))  
[2026-07-28 19:50:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:42] local.INFO: Model: Journal  
[2026-07-28 19:50:42] local.INFO: Data received: {"id":"beb06778-f20a-4d26-b7b8-0f89bbff6b5b","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:50:42] local.INFO: ID present? YES  
[2026-07-28 19:50:42] local.INFO: ID value: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:42] local.INFO: ID empty? NO  
[2026-07-28 19:50:42] local.INFO: Attempting to find record with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:42] local.INFO: Record not found, creating new with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (beb06778-f20a-4d26-b7b8-0f89bbff6b5b, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:50:42, 2026-07-28 19:50:42))  
[2026-07-28 19:50:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:48] local.INFO: Model: Journal  
[2026-07-28 19:50:48] local.INFO: Data received: {"id":"beb06778-f20a-4d26-b7b8-0f89bbff6b5b","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:50:48] local.INFO: ID present? YES  
[2026-07-28 19:50:48] local.INFO: ID value: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:48] local.INFO: ID empty? NO  
[2026-07-28 19:50:48] local.INFO: Attempting to find record with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:48] local.INFO: Record not found, creating new with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (beb06778-f20a-4d26-b7b8-0f89bbff6b5b, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:50:48, 2026-07-28 19:50:48))  
[2026-07-28 19:50:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:50:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:50:54] local.INFO: Model: Journal  
[2026-07-28 19:50:54] local.INFO: Data received: {"id":"beb06778-f20a-4d26-b7b8-0f89bbff6b5b","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:50:54] local.INFO: ID present? YES  
[2026-07-28 19:50:54] local.INFO: ID value: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:54] local.INFO: ID empty? NO  
[2026-07-28 19:50:54] local.INFO: Attempting to find record with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:54] local.INFO: Record not found, creating new with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:50:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (beb06778-f20a-4d26-b7b8-0f89bbff6b5b, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:50:54, 2026-07-28 19:50:54))  
[2026-07-28 19:50:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:00] local.INFO: Model: Journal  
[2026-07-28 19:51:00] local.INFO: Data received: {"id":"beb06778-f20a-4d26-b7b8-0f89bbff6b5b","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 19:51:00] local.INFO: ID present? YES  
[2026-07-28 19:51:00] local.INFO: ID value: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:51:00] local.INFO: ID empty? NO  
[2026-07-28 19:51:00] local.INFO: Attempting to find record with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:51:00] local.INFO: Record not found, creating new with ID: beb06778-f20a-4d26-b7b8-0f89bbff6b5b  
[2026-07-28 19:51:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (beb06778-f20a-4d26-b7b8-0f89bbff6b5b, Debit, 300.00, 145.000000, 45360.000000, Buying TX: Funds into cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:51:00, 2026-07-28 19:51:00))  
[2026-07-28 19:51:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:02] local.INFO: Model: Journal  
[2026-07-28 19:51:02] local.INFO: Data received: {"id":"bf3676c6-9c11-4c14-a537-01377582c1fe","type":"Credit","amount":"600.00","rate":"128.500000","lcy_amount":"600.000000","narrative":"Gain on TR-3564-2026","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:51:02] local.INFO: ID present? YES  
[2026-07-28 19:51:02] local.INFO: ID value: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:02] local.INFO: ID empty? NO  
[2026-07-28 19:51:02] local.INFO: Attempting to find record with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:02] local.INFO: Record not found, creating new with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf3676c6-9c11-4c14-a537-01377582c1fe, Credit, 600.00, 128.500000, 600.000000, Gain on TR-3564-2026, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:02, 2026-07-28 19:51:02))  
[2026-07-28 19:51:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:08] local.INFO: Model: Journal  
[2026-07-28 19:51:08] local.INFO: Data received: {"id":"bf3676c6-9c11-4c14-a537-01377582c1fe","type":"Credit","amount":"600.00","rate":"128.500000","lcy_amount":"600.000000","narrative":"Gain on TR-3564-2026","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:51:08] local.INFO: ID present? YES  
[2026-07-28 19:51:08] local.INFO: ID value: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:08] local.INFO: ID empty? NO  
[2026-07-28 19:51:08] local.INFO: Attempting to find record with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:08] local.INFO: Record not found, creating new with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf3676c6-9c11-4c14-a537-01377582c1fe, Credit, 600.00, 128.500000, 600.000000, Gain on TR-3564-2026, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:08, 2026-07-28 19:51:08))  
[2026-07-28 19:51:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:14] local.INFO: Model: Journal  
[2026-07-28 19:51:14] local.INFO: Data received: {"id":"bf3676c6-9c11-4c14-a537-01377582c1fe","type":"Credit","amount":"600.00","rate":"128.500000","lcy_amount":"600.000000","narrative":"Gain on TR-3564-2026","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:51:14] local.INFO: ID present? YES  
[2026-07-28 19:51:14] local.INFO: ID value: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:14] local.INFO: ID empty? NO  
[2026-07-28 19:51:14] local.INFO: Attempting to find record with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:14] local.INFO: Record not found, creating new with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf3676c6-9c11-4c14-a537-01377582c1fe, Credit, 600.00, 128.500000, 600.000000, Gain on TR-3564-2026, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:14, 2026-07-28 19:51:14))  
[2026-07-28 19:51:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:21] local.INFO: Model: Journal  
[2026-07-28 19:51:21] local.INFO: Data received: {"id":"bf3676c6-9c11-4c14-a537-01377582c1fe","type":"Credit","amount":"600.00","rate":"128.500000","lcy_amount":"600.000000","narrative":"Gain on TR-3564-2026","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 19:51:21] local.INFO: ID present? YES  
[2026-07-28 19:51:21] local.INFO: ID value: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:21] local.INFO: ID empty? NO  
[2026-07-28 19:51:21] local.INFO: Attempting to find record with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:21] local.INFO: Record not found, creating new with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 19:51:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf3676c6-9c11-4c14-a537-01377582c1fe, Credit, 600.00, 128.500000, 600.000000, Gain on TR-3564-2026, 700b0e06-5c13-4fb8-8f04-966d45b354dc, 2026-07-25, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 700b0e06-5c13-4fb8-8f04-966d45b354dc, a484688d-c086-4d84-8cb0-1917197edb4e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:21, 2026-07-28 19:51:21))  
[2026-07-28 19:51:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:22] local.INFO: Model: Journal  
[2026-07-28 19:51:22] local.INFO: Data received: {"id":"bf98e53d-9b6a-48d5-b644-bc693cab5561","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3552-2026","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:51:22] local.INFO: ID present? YES  
[2026-07-28 19:51:22] local.INFO: ID value: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:22] local.INFO: ID empty? NO  
[2026-07-28 19:51:22] local.INFO: Attempting to find record with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:22] local.INFO: Record not found, creating new with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf98e53d-9b6a-48d5-b644-bc693cab5561, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3552-2026, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:22, 2026-07-28 19:51:22))  
[2026-07-28 19:51:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:28] local.INFO: Model: Journal  
[2026-07-28 19:51:28] local.INFO: Data received: {"id":"bf98e53d-9b6a-48d5-b644-bc693cab5561","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3552-2026","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:51:28] local.INFO: ID present? YES  
[2026-07-28 19:51:28] local.INFO: ID value: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:28] local.INFO: ID empty? NO  
[2026-07-28 19:51:28] local.INFO: Attempting to find record with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:28] local.INFO: Record not found, creating new with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf98e53d-9b6a-48d5-b644-bc693cab5561, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3552-2026, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:28, 2026-07-28 19:51:28))  
[2026-07-28 19:51:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:34] local.INFO: Model: Journal  
[2026-07-28 19:51:34] local.INFO: Data received: {"id":"bf98e53d-9b6a-48d5-b644-bc693cab5561","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3552-2026","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:51:34] local.INFO: ID present? YES  
[2026-07-28 19:51:34] local.INFO: ID value: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:34] local.INFO: ID empty? NO  
[2026-07-28 19:51:34] local.INFO: Attempting to find record with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:34] local.INFO: Record not found, creating new with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf98e53d-9b6a-48d5-b644-bc693cab5561, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3552-2026, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:34, 2026-07-28 19:51:34))  
[2026-07-28 19:51:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:41] local.INFO: Model: Journal  
[2026-07-28 19:51:41] local.INFO: Data received: {"id":"bf98e53d-9b6a-48d5-b644-bc693cab5561","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3552-2026","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 19:51:41] local.INFO: ID present? YES  
[2026-07-28 19:51:41] local.INFO: ID value: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:41] local.INFO: ID empty? NO  
[2026-07-28 19:51:41] local.INFO: Attempting to find record with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:41] local.INFO: Record not found, creating new with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 19:51:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (bf98e53d-9b6a-48d5-b644-bc693cab5561, Credit, 2480.00, 145.000000, 2480.000000, Gain on TR-3552-2026, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 2026-07-21, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 43630310-e4c3-4bbd-ba18-8ee3b48642bc, 01e97b5e-0b84-4371-a9a4-b453a56ab660, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:51:41, 2026-07-28 19:51:41))  
[2026-07-28 19:51:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:42] local.INFO: Model: Journal  
[2026-07-28 19:51:42] local.INFO: Data received: {"id":"c17d5ac9-4b61-4bc4-adb3-f276033776f4","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:51:42] local.INFO: ID present? YES  
[2026-07-28 19:51:42] local.INFO: ID value: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:42] local.INFO: ID empty? NO  
[2026-07-28 19:51:42] local.INFO: Attempting to find record with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:42] local.INFO: Record not found, creating new with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c17d5ac9-4b61-4bc4-adb3-f276033776f4, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:51:42, 2026-07-28 19:51:42))  
[2026-07-28 19:51:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:48] local.INFO: Model: Journal  
[2026-07-28 19:51:48] local.INFO: Data received: {"id":"c17d5ac9-4b61-4bc4-adb3-f276033776f4","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:51:48] local.INFO: ID present? YES  
[2026-07-28 19:51:48] local.INFO: ID value: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:48] local.INFO: ID empty? NO  
[2026-07-28 19:51:48] local.INFO: Attempting to find record with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:48] local.INFO: Record not found, creating new with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c17d5ac9-4b61-4bc4-adb3-f276033776f4, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:51:48, 2026-07-28 19:51:48))  
[2026-07-28 19:51:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:51:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:51:55] local.INFO: Model: Journal  
[2026-07-28 19:51:55] local.INFO: Data received: {"id":"c17d5ac9-4b61-4bc4-adb3-f276033776f4","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:51:55] local.INFO: ID present? YES  
[2026-07-28 19:51:55] local.INFO: ID value: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:55] local.INFO: ID empty? NO  
[2026-07-28 19:51:55] local.INFO: Attempting to find record with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:55] local.INFO: Record not found, creating new with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:51:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c17d5ac9-4b61-4bc4-adb3-f276033776f4, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:51:55, 2026-07-28 19:51:55))  
[2026-07-28 19:51:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:02] local.INFO: Model: Journal  
[2026-07-28 19:52:02] local.INFO: Data received: {"id":"c17d5ac9-4b61-4bc4-adb3-f276033776f4","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 19:52:02] local.INFO: ID present? YES  
[2026-07-28 19:52:02] local.INFO: ID value: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:52:02] local.INFO: ID empty? NO  
[2026-07-28 19:52:02] local.INFO: Attempting to find record with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:52:02] local.INFO: Record not found, creating new with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 19:52:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c17d5ac9-4b61-4bc4-adb3-f276033776f4, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 8ee74f47-6542-444f-80b3-d9366c8dcec6, 653473cc-1b4c-4586-81f3-8b175e96af25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:52:02, 2026-07-28 19:52:02))  
[2026-07-28 19:52:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:03] local.INFO: Model: Journal  
[2026-07-28 19:52:03] local.INFO: Data received: {"id":"c5c8edbc-39da-4912-bc3b-7c8fefb28e6f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:52:03] local.INFO: ID present? YES  
[2026-07-28 19:52:03] local.INFO: ID value: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:03] local.INFO: ID empty? NO  
[2026-07-28 19:52:03] local.INFO: Attempting to find record with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:03] local.INFO: Record not found, creating new with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c5c8edbc-39da-4912-bc3b-7c8fefb28e6f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:03, 2026-07-28 19:52:03))  
[2026-07-28 19:52:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:09] local.INFO: Model: Journal  
[2026-07-28 19:52:09] local.INFO: Data received: {"id":"c5c8edbc-39da-4912-bc3b-7c8fefb28e6f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:52:09] local.INFO: ID present? YES  
[2026-07-28 19:52:09] local.INFO: ID value: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:09] local.INFO: ID empty? NO  
[2026-07-28 19:52:09] local.INFO: Attempting to find record with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:09] local.INFO: Record not found, creating new with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c5c8edbc-39da-4912-bc3b-7c8fefb28e6f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:09, 2026-07-28 19:52:09))  
[2026-07-28 19:52:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:15] local.INFO: Model: Journal  
[2026-07-28 19:52:15] local.INFO: Data received: {"id":"c5c8edbc-39da-4912-bc3b-7c8fefb28e6f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:52:15] local.INFO: ID present? YES  
[2026-07-28 19:52:15] local.INFO: ID value: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:15] local.INFO: ID empty? NO  
[2026-07-28 19:52:15] local.INFO: Attempting to find record with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:15] local.INFO: Record not found, creating new with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c5c8edbc-39da-4912-bc3b-7c8fefb28e6f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:15, 2026-07-28 19:52:15))  
[2026-07-28 19:52:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:22] local.INFO: Model: Journal  
[2026-07-28 19:52:22] local.INFO: Data received: {"id":"c5c8edbc-39da-4912-bc3b-7c8fefb28e6f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:52:22] local.INFO: ID present? YES  
[2026-07-28 19:52:22] local.INFO: ID value: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:22] local.INFO: ID empty? NO  
[2026-07-28 19:52:22] local.INFO: Attempting to find record with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:22] local.INFO: Record not found, creating new with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 19:52:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c5c8edbc-39da-4912-bc3b-7c8fefb28e6f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:22, 2026-07-28 19:52:22))  
[2026-07-28 19:52:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:23] local.INFO: Model: Journal  
[2026-07-28 19:52:23] local.INFO: Data received: {"id":"c6cc9649-3368-4ece-aa27-7fc053727dfa","type":"Credit","amount":"1250.00","rate":"125.000000","lcy_amount":"1250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:52:23] local.INFO: ID present? YES  
[2026-07-28 19:52:23] local.INFO: ID value: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:23] local.INFO: ID empty? NO  
[2026-07-28 19:52:23] local.INFO: Attempting to find record with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:23] local.INFO: Record not found, creating new with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c6cc9649-3368-4ece-aa27-7fc053727dfa, Credit, 1250.00, 125.000000, 1250.000000, Buying TX: Funds out of cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:23, 2026-07-28 19:52:23))  
[2026-07-28 19:52:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:29] local.INFO: Model: Journal  
[2026-07-28 19:52:29] local.INFO: Data received: {"id":"c6cc9649-3368-4ece-aa27-7fc053727dfa","type":"Credit","amount":"1250.00","rate":"125.000000","lcy_amount":"1250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:52:29] local.INFO: ID present? YES  
[2026-07-28 19:52:29] local.INFO: ID value: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:29] local.INFO: ID empty? NO  
[2026-07-28 19:52:29] local.INFO: Attempting to find record with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:29] local.INFO: Record not found, creating new with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c6cc9649-3368-4ece-aa27-7fc053727dfa, Credit, 1250.00, 125.000000, 1250.000000, Buying TX: Funds out of cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:29, 2026-07-28 19:52:29))  
[2026-07-28 19:52:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:35] local.INFO: Model: Journal  
[2026-07-28 19:52:35] local.INFO: Data received: {"id":"c6cc9649-3368-4ece-aa27-7fc053727dfa","type":"Credit","amount":"1250.00","rate":"125.000000","lcy_amount":"1250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:52:35] local.INFO: ID present? YES  
[2026-07-28 19:52:35] local.INFO: ID value: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:35] local.INFO: ID empty? NO  
[2026-07-28 19:52:35] local.INFO: Attempting to find record with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:35] local.INFO: Record not found, creating new with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c6cc9649-3368-4ece-aa27-7fc053727dfa, Credit, 1250.00, 125.000000, 1250.000000, Buying TX: Funds out of cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:35, 2026-07-28 19:52:35))  
[2026-07-28 19:52:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:42] local.INFO: Model: Journal  
[2026-07-28 19:52:42] local.INFO: Data received: {"id":"c6cc9649-3368-4ece-aa27-7fc053727dfa","type":"Credit","amount":"1250.00","rate":"125.000000","lcy_amount":"1250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:52:42] local.INFO: ID present? YES  
[2026-07-28 19:52:42] local.INFO: ID value: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:42] local.INFO: ID empty? NO  
[2026-07-28 19:52:42] local.INFO: Attempting to find record with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:42] local.INFO: Record not found, creating new with ID: c6cc9649-3368-4ece-aa27-7fc053727dfa  
[2026-07-28 19:52:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c6cc9649-3368-4ece-aa27-7fc053727dfa, Credit, 1250.00, 125.000000, 1250.000000, Buying TX: Funds out of cashbox, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:42, 2026-07-28 19:52:42))  
[2026-07-28 19:52:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:43] local.INFO: Model: Journal  
[2026-07-28 19:52:43] local.INFO: Data received: {"id":"c7d7389c-901f-4f3f-bd65-864c8fdb87c6","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3558-2026","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:52:43] local.INFO: ID present? YES  
[2026-07-28 19:52:43] local.INFO: ID value: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:43] local.INFO: ID empty? NO  
[2026-07-28 19:52:43] local.INFO: Attempting to find record with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:43] local.INFO: Record not found, creating new with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c7d7389c-901f-4f3f-bd65-864c8fdb87c6, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3558-2026, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:43, 2026-07-28 19:52:43))  
[2026-07-28 19:52:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:49] local.INFO: Model: Journal  
[2026-07-28 19:52:49] local.INFO: Data received: {"id":"c7d7389c-901f-4f3f-bd65-864c8fdb87c6","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3558-2026","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:52:49] local.INFO: ID present? YES  
[2026-07-28 19:52:49] local.INFO: ID value: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:49] local.INFO: ID empty? NO  
[2026-07-28 19:52:49] local.INFO: Attempting to find record with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:49] local.INFO: Record not found, creating new with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c7d7389c-901f-4f3f-bd65-864c8fdb87c6, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3558-2026, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:49, 2026-07-28 19:52:49))  
[2026-07-28 19:52:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:52:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:52:55] local.INFO: Model: Journal  
[2026-07-28 19:52:55] local.INFO: Data received: {"id":"c7d7389c-901f-4f3f-bd65-864c8fdb87c6","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3558-2026","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:52:55] local.INFO: ID present? YES  
[2026-07-28 19:52:55] local.INFO: ID value: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:55] local.INFO: ID empty? NO  
[2026-07-28 19:52:55] local.INFO: Attempting to find record with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:55] local.INFO: Record not found, creating new with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:52:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c7d7389c-901f-4f3f-bd65-864c8fdb87c6, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3558-2026, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:52:55, 2026-07-28 19:52:55))  
[2026-07-28 19:52:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:02] local.INFO: Model: Journal  
[2026-07-28 19:53:02] local.INFO: Data received: {"id":"c7d7389c-901f-4f3f-bd65-864c8fdb87c6","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3558-2026","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 19:53:02] local.INFO: ID present? YES  
[2026-07-28 19:53:02] local.INFO: ID value: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:53:02] local.INFO: ID empty? NO  
[2026-07-28 19:53:02] local.INFO: Attempting to find record with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:53:02] local.INFO: Record not found, creating new with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 19:53:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c7d7389c-901f-4f3f-bd65-864c8fdb87c6, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3558-2026, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0, 0cb527ce-dc0f-4362-a4ac-df5850718eda, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:02, 2026-07-28 19:53:02))  
[2026-07-28 19:53:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:03] local.INFO: Model: Journal  
[2026-07-28 19:53:03] local.INFO: Data received: {"id":"c968405f-e9f7-4525-91fc-fda01ddb8a02","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3539-2026","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:03] local.INFO: ID present? YES  
[2026-07-28 19:53:03] local.INFO: ID value: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:03] local.INFO: ID empty? NO  
[2026-07-28 19:53:03] local.INFO: Attempting to find record with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:03] local.INFO: Record not found, creating new with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c968405f-e9f7-4525-91fc-fda01ddb8a02, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3539-2026, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:03, 2026-07-28 19:53:03))  
[2026-07-28 19:53:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:09] local.INFO: Model: Journal  
[2026-07-28 19:53:09] local.INFO: Data received: {"id":"c968405f-e9f7-4525-91fc-fda01ddb8a02","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3539-2026","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:09] local.INFO: ID present? YES  
[2026-07-28 19:53:09] local.INFO: ID value: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:09] local.INFO: ID empty? NO  
[2026-07-28 19:53:09] local.INFO: Attempting to find record with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:09] local.INFO: Record not found, creating new with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c968405f-e9f7-4525-91fc-fda01ddb8a02, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3539-2026, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:09, 2026-07-28 19:53:09))  
[2026-07-28 19:53:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:15] local.INFO: Model: Journal  
[2026-07-28 19:53:15] local.INFO: Data received: {"id":"c968405f-e9f7-4525-91fc-fda01ddb8a02","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3539-2026","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:15] local.INFO: ID present? YES  
[2026-07-28 19:53:15] local.INFO: ID value: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:15] local.INFO: ID empty? NO  
[2026-07-28 19:53:15] local.INFO: Attempting to find record with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:15] local.INFO: Record not found, creating new with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c968405f-e9f7-4525-91fc-fda01ddb8a02, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3539-2026, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:15, 2026-07-28 19:53:15))  
[2026-07-28 19:53:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:22] local.INFO: Model: Journal  
[2026-07-28 19:53:22] local.INFO: Data received: {"id":"c968405f-e9f7-4525-91fc-fda01ddb8a02","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3539-2026","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:22] local.INFO: ID present? YES  
[2026-07-28 19:53:22] local.INFO: ID value: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:22] local.INFO: ID empty? NO  
[2026-07-28 19:53:22] local.INFO: Attempting to find record with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:22] local.INFO: Record not found, creating new with ID: c968405f-e9f7-4525-91fc-fda01ddb8a02  
[2026-07-28 19:53:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (c968405f-e9f7-4525-91fc-fda01ddb8a02, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3539-2026, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:22, 2026-07-28 19:53:22))  
[2026-07-28 19:53:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:23] local.INFO: Model: Journal  
[2026-07-28 19:53:23] local.INFO: Data received: {"id":"ca23edab-ba83-4b41-84a7-1dc651e33929","type":"Credit","amount":"11475.00","rate":"127.500000","lcy_amount":"11475.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:23] local.INFO: ID present? YES  
[2026-07-28 19:53:23] local.INFO: ID value: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:23] local.INFO: ID empty? NO  
[2026-07-28 19:53:23] local.INFO: Attempting to find record with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:23] local.INFO: Record not found, creating new with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ca23edab-ba83-4b41-84a7-1dc651e33929, Credit, 11475.00, 127.500000, 11475.000000, Buying TX: Funds out of cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:23, 2026-07-28 19:53:23))  
[2026-07-28 19:53:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:29] local.INFO: Model: Journal  
[2026-07-28 19:53:29] local.INFO: Data received: {"id":"ca23edab-ba83-4b41-84a7-1dc651e33929","type":"Credit","amount":"11475.00","rate":"127.500000","lcy_amount":"11475.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:29] local.INFO: ID present? YES  
[2026-07-28 19:53:29] local.INFO: ID value: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:29] local.INFO: ID empty? NO  
[2026-07-28 19:53:29] local.INFO: Attempting to find record with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:29] local.INFO: Record not found, creating new with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ca23edab-ba83-4b41-84a7-1dc651e33929, Credit, 11475.00, 127.500000, 11475.000000, Buying TX: Funds out of cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:29, 2026-07-28 19:53:29))  
[2026-07-28 19:53:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:35] local.INFO: Model: Journal  
[2026-07-28 19:53:35] local.INFO: Data received: {"id":"ca23edab-ba83-4b41-84a7-1dc651e33929","type":"Credit","amount":"11475.00","rate":"127.500000","lcy_amount":"11475.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:35] local.INFO: ID present? YES  
[2026-07-28 19:53:35] local.INFO: ID value: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:35] local.INFO: ID empty? NO  
[2026-07-28 19:53:35] local.INFO: Attempting to find record with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:35] local.INFO: Record not found, creating new with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ca23edab-ba83-4b41-84a7-1dc651e33929, Credit, 11475.00, 127.500000, 11475.000000, Buying TX: Funds out of cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:35, 2026-07-28 19:53:35))  
[2026-07-28 19:53:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:42] local.INFO: Model: Journal  
[2026-07-28 19:53:42] local.INFO: Data received: {"id":"ca23edab-ba83-4b41-84a7-1dc651e33929","type":"Credit","amount":"11475.00","rate":"127.500000","lcy_amount":"11475.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:53:42] local.INFO: ID present? YES  
[2026-07-28 19:53:42] local.INFO: ID value: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:42] local.INFO: ID empty? NO  
[2026-07-28 19:53:42] local.INFO: Attempting to find record with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:42] local.INFO: Record not found, creating new with ID: ca23edab-ba83-4b41-84a7-1dc651e33929  
[2026-07-28 19:53:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ca23edab-ba83-4b41-84a7-1dc651e33929, Credit, 11475.00, 127.500000, 11475.000000, Buying TX: Funds out of cashbox, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:42, 2026-07-28 19:53:42))  
[2026-07-28 19:53:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:43] local.INFO: Model: Journal  
[2026-07-28 19:53:43] local.INFO: Data received: {"id":"cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3554-2026","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:53:43] local.INFO: ID present? YES  
[2026-07-28 19:53:43] local.INFO: ID value: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:43] local.INFO: ID empty? NO  
[2026-07-28 19:53:43] local.INFO: Attempting to find record with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:43] local.INFO: Record not found, creating new with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3554-2026, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:43, 2026-07-28 19:53:43))  
[2026-07-28 19:53:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:49] local.INFO: Model: Journal  
[2026-07-28 19:53:49] local.INFO: Data received: {"id":"cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3554-2026","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:53:49] local.INFO: ID present? YES  
[2026-07-28 19:53:49] local.INFO: ID value: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:49] local.INFO: ID empty? NO  
[2026-07-28 19:53:49] local.INFO: Attempting to find record with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:49] local.INFO: Record not found, creating new with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3554-2026, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:49, 2026-07-28 19:53:49))  
[2026-07-28 19:53:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:53:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:53:55] local.INFO: Model: Journal  
[2026-07-28 19:53:55] local.INFO: Data received: {"id":"cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3554-2026","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:53:55] local.INFO: ID present? YES  
[2026-07-28 19:53:55] local.INFO: ID value: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:55] local.INFO: ID empty? NO  
[2026-07-28 19:53:55] local.INFO: Attempting to find record with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:55] local.INFO: Record not found, creating new with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:53:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3554-2026, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:53:55, 2026-07-28 19:53:55))  
[2026-07-28 19:53:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:02] local.INFO: Model: Journal  
[2026-07-28 19:54:02] local.INFO: Data received: {"id":"cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3554-2026","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 19:54:02] local.INFO: ID present? YES  
[2026-07-28 19:54:02] local.INFO: ID value: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:54:02] local.INFO: ID empty? NO  
[2026-07-28 19:54:02] local.INFO: Attempting to find record with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:54:02] local.INFO: Record not found, creating new with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 19:54:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3554-2026, 97379de0-4eb1-4349-982f-a046c76cffc8, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 97379de0-4eb1-4349-982f-a046c76cffc8, 188bc3ee-7fab-49c3-b496-123714afd47e, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:02, 2026-07-28 19:54:02))  
[2026-07-28 19:54:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:03] local.INFO: Model: Journal  
[2026-07-28 19:54:03] local.INFO: Data received: {"id":"d0a4d4a8-2a00-4360-a9bc-ed605385aca8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3588-2026","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:54:03] local.INFO: ID present? YES  
[2026-07-28 19:54:03] local.INFO: ID value: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:03] local.INFO: ID empty? NO  
[2026-07-28 19:54:03] local.INFO: Attempting to find record with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:03] local.INFO: Record not found, creating new with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d0a4d4a8-2a00-4360-a9bc-ed605385aca8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3588-2026, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:03, 2026-07-28 19:54:03))  
[2026-07-28 19:54:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:09] local.INFO: Model: Journal  
[2026-07-28 19:54:09] local.INFO: Data received: {"id":"d0a4d4a8-2a00-4360-a9bc-ed605385aca8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3588-2026","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:54:09] local.INFO: ID present? YES  
[2026-07-28 19:54:09] local.INFO: ID value: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:09] local.INFO: ID empty? NO  
[2026-07-28 19:54:09] local.INFO: Attempting to find record with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:09] local.INFO: Record not found, creating new with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d0a4d4a8-2a00-4360-a9bc-ed605385aca8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3588-2026, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:09, 2026-07-28 19:54:09))  
[2026-07-28 19:54:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:15] local.INFO: Model: Journal  
[2026-07-28 19:54:15] local.INFO: Data received: {"id":"d0a4d4a8-2a00-4360-a9bc-ed605385aca8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3588-2026","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:54:15] local.INFO: ID present? YES  
[2026-07-28 19:54:15] local.INFO: ID value: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:15] local.INFO: ID empty? NO  
[2026-07-28 19:54:15] local.INFO: Attempting to find record with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:15] local.INFO: Record not found, creating new with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d0a4d4a8-2a00-4360-a9bc-ed605385aca8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3588-2026, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:15, 2026-07-28 19:54:15))  
[2026-07-28 19:54:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:22] local.INFO: Model: Journal  
[2026-07-28 19:54:22] local.INFO: Data received: {"id":"d0a4d4a8-2a00-4360-a9bc-ed605385aca8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3588-2026","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 19:54:22] local.INFO: ID present? YES  
[2026-07-28 19:54:22] local.INFO: ID value: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:22] local.INFO: ID empty? NO  
[2026-07-28 19:54:22] local.INFO: Attempting to find record with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:22] local.INFO: Record not found, creating new with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 19:54:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d0a4d4a8-2a00-4360-a9bc-ed605385aca8, Credit, 1240.00, 145.000000, 1240.000000, Gain on TR-3588-2026, 3b1320b2-a61f-4aef-9f24-88ea37544e16, 2026-07-27, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 3b1320b2-a61f-4aef-9f24-88ea37544e16, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:22, 2026-07-28 19:54:22))  
[2026-07-28 19:54:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:23] local.INFO: Model: Journal  
[2026-07-28 19:54:23] local.INFO: Data received: {"id":"d116fe08-1b79-41ef-873d-99d1076ae063","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"2580.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:54:23] local.INFO: ID present? YES  
[2026-07-28 19:54:23] local.INFO: ID value: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:23] local.INFO: ID empty? NO  
[2026-07-28 19:54:23] local.INFO: Attempting to find record with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:23] local.INFO: Record not found, creating new with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d116fe08-1b79-41ef-873d-99d1076ae063, Credit, 20.00, 130.000000, 2580.000000, Selling TX: Funds out of cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:54:23, 2026-07-28 19:54:23))  
[2026-07-28 19:54:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:29] local.INFO: Model: Journal  
[2026-07-28 19:54:29] local.INFO: Data received: {"id":"d116fe08-1b79-41ef-873d-99d1076ae063","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"2580.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:54:29] local.INFO: ID present? YES  
[2026-07-28 19:54:29] local.INFO: ID value: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:29] local.INFO: ID empty? NO  
[2026-07-28 19:54:29] local.INFO: Attempting to find record with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:29] local.INFO: Record not found, creating new with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d116fe08-1b79-41ef-873d-99d1076ae063, Credit, 20.00, 130.000000, 2580.000000, Selling TX: Funds out of cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:54:29, 2026-07-28 19:54:29))  
[2026-07-28 19:54:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:35] local.INFO: Model: Journal  
[2026-07-28 19:54:35] local.INFO: Data received: {"id":"d116fe08-1b79-41ef-873d-99d1076ae063","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"2580.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:54:35] local.INFO: ID present? YES  
[2026-07-28 19:54:35] local.INFO: ID value: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:35] local.INFO: ID empty? NO  
[2026-07-28 19:54:35] local.INFO: Attempting to find record with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:35] local.INFO: Record not found, creating new with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d116fe08-1b79-41ef-873d-99d1076ae063, Credit, 20.00, 130.000000, 2580.000000, Selling TX: Funds out of cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:54:35, 2026-07-28 19:54:35))  
[2026-07-28 19:54:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:42] local.INFO: Model: Journal  
[2026-07-28 19:54:42] local.INFO: Data received: {"id":"d116fe08-1b79-41ef-873d-99d1076ae063","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"2580.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 19:54:42] local.INFO: ID present? YES  
[2026-07-28 19:54:42] local.INFO: ID value: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:42] local.INFO: ID empty? NO  
[2026-07-28 19:54:42] local.INFO: Attempting to find record with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:42] local.INFO: Record not found, creating new with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 19:54:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d116fe08-1b79-41ef-873d-99d1076ae063, Credit, 20.00, 130.000000, 2580.000000, Selling TX: Funds out of cashbox, 3227253b-40c1-48bc-8827-ac322dce9183, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3227253b-40c1-48bc-8827-ac322dce9183, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:54:42, 2026-07-28 19:54:42))  
[2026-07-28 19:54:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:43] local.INFO: Model: Journal  
[2026-07-28 19:54:43] local.INFO: Data received: {"id":"d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0","type":"Credit","amount":"72500.00","rate":"145.000000","lcy_amount":"72500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:54:43] local.INFO: ID present? YES  
[2026-07-28 19:54:43] local.INFO: ID value: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:43] local.INFO: ID empty? NO  
[2026-07-28 19:54:43] local.INFO: Attempting to find record with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:43] local.INFO: Record not found, creating new with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0, Credit, 72500.00, 145.000000, 72500.000000, Buying TX: Funds out of cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:43, 2026-07-28 19:54:43))  
[2026-07-28 19:54:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:49] local.INFO: Model: Journal  
[2026-07-28 19:54:49] local.INFO: Data received: {"id":"d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0","type":"Credit","amount":"72500.00","rate":"145.000000","lcy_amount":"72500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:54:49] local.INFO: ID present? YES  
[2026-07-28 19:54:49] local.INFO: ID value: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:49] local.INFO: ID empty? NO  
[2026-07-28 19:54:49] local.INFO: Attempting to find record with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:49] local.INFO: Record not found, creating new with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0, Credit, 72500.00, 145.000000, 72500.000000, Buying TX: Funds out of cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:49, 2026-07-28 19:54:49))  
[2026-07-28 19:54:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:54:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:54:56] local.INFO: Model: Journal  
[2026-07-28 19:54:56] local.INFO: Data received: {"id":"d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0","type":"Credit","amount":"72500.00","rate":"145.000000","lcy_amount":"72500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:54:56] local.INFO: ID present? YES  
[2026-07-28 19:54:56] local.INFO: ID value: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:56] local.INFO: ID empty? NO  
[2026-07-28 19:54:56] local.INFO: Attempting to find record with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:56] local.INFO: Record not found, creating new with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:54:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0, Credit, 72500.00, 145.000000, 72500.000000, Buying TX: Funds out of cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:54:56, 2026-07-28 19:54:56))  
[2026-07-28 19:54:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:02] local.INFO: Model: Journal  
[2026-07-28 19:55:02] local.INFO: Data received: {"id":"d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0","type":"Credit","amount":"72500.00","rate":"145.000000","lcy_amount":"72500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 19:55:02] local.INFO: ID present? YES  
[2026-07-28 19:55:02] local.INFO: ID value: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:55:02] local.INFO: ID empty? NO  
[2026-07-28 19:55:02] local.INFO: Attempting to find record with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:55:02] local.INFO: Record not found, creating new with ID: d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0  
[2026-07-28 19:55:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d1e6e2d6-71ff-4b38-8f5f-b3d8281d64e0, Credit, 72500.00, 145.000000, 72500.000000, Buying TX: Funds out of cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:02, 2026-07-28 19:55:02))  
[2026-07-28 19:55:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:03] local.INFO: Model: Journal  
[2026-07-28 19:55:03] local.INFO: Data received: {"id":"d2379aef-d97a-4e21-8031-47c77fa72121","type":"Debit","amount":"40.00","rate":"169.000000","lcy_amount":"6938.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:55:03] local.INFO: ID present? YES  
[2026-07-28 19:55:03] local.INFO: ID value: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:03] local.INFO: ID empty? NO  
[2026-07-28 19:55:03] local.INFO: Attempting to find record with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:03] local.INFO: Record not found, creating new with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d2379aef-d97a-4e21-8031-47c77fa72121, Debit, 40.00, 169.000000, 6938.000000, Buying TX: Funds into cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:55:03, 2026-07-28 19:55:03))  
[2026-07-28 19:55:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:09] local.INFO: Model: Journal  
[2026-07-28 19:55:09] local.INFO: Data received: {"id":"d2379aef-d97a-4e21-8031-47c77fa72121","type":"Debit","amount":"40.00","rate":"169.000000","lcy_amount":"6938.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:55:09] local.INFO: ID present? YES  
[2026-07-28 19:55:09] local.INFO: ID value: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:09] local.INFO: ID empty? NO  
[2026-07-28 19:55:09] local.INFO: Attempting to find record with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:09] local.INFO: Record not found, creating new with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d2379aef-d97a-4e21-8031-47c77fa72121, Debit, 40.00, 169.000000, 6938.000000, Buying TX: Funds into cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:55:09, 2026-07-28 19:55:09))  
[2026-07-28 19:55:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:16] local.INFO: Model: Journal  
[2026-07-28 19:55:16] local.INFO: Data received: {"id":"d2379aef-d97a-4e21-8031-47c77fa72121","type":"Debit","amount":"40.00","rate":"169.000000","lcy_amount":"6938.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:55:16] local.INFO: ID present? YES  
[2026-07-28 19:55:16] local.INFO: ID value: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:16] local.INFO: ID empty? NO  
[2026-07-28 19:55:16] local.INFO: Attempting to find record with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:16] local.INFO: Record not found, creating new with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d2379aef-d97a-4e21-8031-47c77fa72121, Debit, 40.00, 169.000000, 6938.000000, Buying TX: Funds into cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:55:16, 2026-07-28 19:55:16))  
[2026-07-28 19:55:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:22] local.INFO: Model: Journal  
[2026-07-28 19:55:22] local.INFO: Data received: {"id":"d2379aef-d97a-4e21-8031-47c77fa72121","type":"Debit","amount":"40.00","rate":"169.000000","lcy_amount":"6938.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 19:55:22] local.INFO: ID present? YES  
[2026-07-28 19:55:22] local.INFO: ID value: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:22] local.INFO: ID empty? NO  
[2026-07-28 19:55:22] local.INFO: Attempting to find record with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:22] local.INFO: Record not found, creating new with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 19:55:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d2379aef-d97a-4e21-8031-47c77fa72121, Debit, 40.00, 169.000000, 6938.000000, Buying TX: Funds into cashbox, 0436c5db-8112-44c2-a2b0-8b242e7b8965, 2026-07-21, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, aa5aa264-365c-4e37-a379-ee40df9d86c3, 0436c5db-8112-44c2-a2b0-8b242e7b8965, c2b7cd22-2a19-4126-a913-c4db931349cb, e3ffcceb-c506-48ab-a312-8fb7681ded66, Posted, 2026-07-28 19:55:22, 2026-07-28 19:55:22))  
[2026-07-28 19:55:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:23] local.INFO: Model: Journal  
[2026-07-28 19:55:23] local.INFO: Data received: {"id":"d28f2bd4-00f3-4bd6-9786-5b2972678126","type":"Credit","amount":"5100.00","rate":"6.000000","lcy_amount":"5100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:55:23] local.INFO: ID present? YES  
[2026-07-28 19:55:23] local.INFO: ID value: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:23] local.INFO: ID empty? NO  
[2026-07-28 19:55:23] local.INFO: Attempting to find record with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:23] local.INFO: Record not found, creating new with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d28f2bd4-00f3-4bd6-9786-5b2972678126, Credit, 5100.00, 6.000000, 5100.000000, Buying TX: Funds out of cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:23, 2026-07-28 19:55:23))  
[2026-07-28 19:55:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:30] local.INFO: Model: Journal  
[2026-07-28 19:55:30] local.INFO: Data received: {"id":"d28f2bd4-00f3-4bd6-9786-5b2972678126","type":"Credit","amount":"5100.00","rate":"6.000000","lcy_amount":"5100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:55:30] local.INFO: ID present? YES  
[2026-07-28 19:55:30] local.INFO: ID value: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:30] local.INFO: ID empty? NO  
[2026-07-28 19:55:30] local.INFO: Attempting to find record with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:30] local.INFO: Record not found, creating new with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d28f2bd4-00f3-4bd6-9786-5b2972678126, Credit, 5100.00, 6.000000, 5100.000000, Buying TX: Funds out of cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:30, 2026-07-28 19:55:30))  
[2026-07-28 19:55:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:36] local.INFO: Model: Journal  
[2026-07-28 19:55:36] local.INFO: Data received: {"id":"d28f2bd4-00f3-4bd6-9786-5b2972678126","type":"Credit","amount":"5100.00","rate":"6.000000","lcy_amount":"5100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:55:36] local.INFO: ID present? YES  
[2026-07-28 19:55:36] local.INFO: ID value: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:36] local.INFO: ID empty? NO  
[2026-07-28 19:55:36] local.INFO: Attempting to find record with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:36] local.INFO: Record not found, creating new with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d28f2bd4-00f3-4bd6-9786-5b2972678126, Credit, 5100.00, 6.000000, 5100.000000, Buying TX: Funds out of cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:36, 2026-07-28 19:55:36))  
[2026-07-28 19:55:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:42] local.INFO: Model: Journal  
[2026-07-28 19:55:42] local.INFO: Data received: {"id":"d28f2bd4-00f3-4bd6-9786-5b2972678126","type":"Credit","amount":"5100.00","rate":"6.000000","lcy_amount":"5100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 19:55:42] local.INFO: ID present? YES  
[2026-07-28 19:55:42] local.INFO: ID value: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:42] local.INFO: ID empty? NO  
[2026-07-28 19:55:42] local.INFO: Attempting to find record with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:42] local.INFO: Record not found, creating new with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 19:55:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d28f2bd4-00f3-4bd6-9786-5b2972678126, Credit, 5100.00, 6.000000, 5100.000000, Buying TX: Funds out of cashbox, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:42, 2026-07-28 19:55:42))  
[2026-07-28 19:55:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:43] local.INFO: Model: Journal  
[2026-07-28 19:55:43] local.INFO: Data received: {"id":"d5307ecb-7d07-450f-86b5-b25df0ee5c1f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:55:43] local.INFO: ID present? YES  
[2026-07-28 19:55:43] local.INFO: ID value: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:43] local.INFO: ID empty? NO  
[2026-07-28 19:55:43] local.INFO: Attempting to find record with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:43] local.INFO: Record not found, creating new with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5307ecb-7d07-450f-86b5-b25df0ee5c1f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:43, 2026-07-28 19:55:43))  
[2026-07-28 19:55:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:50] local.INFO: Model: Journal  
[2026-07-28 19:55:50] local.INFO: Data received: {"id":"d5307ecb-7d07-450f-86b5-b25df0ee5c1f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:55:50] local.INFO: ID present? YES  
[2026-07-28 19:55:50] local.INFO: ID value: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:50] local.INFO: ID empty? NO  
[2026-07-28 19:55:50] local.INFO: Attempting to find record with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:50] local.INFO: Record not found, creating new with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5307ecb-7d07-450f-86b5-b25df0ee5c1f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:50, 2026-07-28 19:55:50))  
[2026-07-28 19:55:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:55:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:55:56] local.INFO: Model: Journal  
[2026-07-28 19:55:56] local.INFO: Data received: {"id":"d5307ecb-7d07-450f-86b5-b25df0ee5c1f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:55:56] local.INFO: ID present? YES  
[2026-07-28 19:55:56] local.INFO: ID value: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:56] local.INFO: ID empty? NO  
[2026-07-28 19:55:56] local.INFO: Attempting to find record with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:56] local.INFO: Record not found, creating new with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:55:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5307ecb-7d07-450f-86b5-b25df0ee5c1f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:55:56, 2026-07-28 19:55:56))  
[2026-07-28 19:55:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:02] local.INFO: Model: Journal  
[2026-07-28 19:56:02] local.INFO: Data received: {"id":"d5307ecb-7d07-450f-86b5-b25df0ee5c1f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 19:56:02] local.INFO: ID present? YES  
[2026-07-28 19:56:02] local.INFO: ID value: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:56:02] local.INFO: ID empty? NO  
[2026-07-28 19:56:02] local.INFO: Attempting to find record with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:56:02] local.INFO: Record not found, creating new with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 19:56:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5307ecb-7d07-450f-86b5-b25df0ee5c1f, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, b039f33c-ae0d-43de-b971-6fcac9defb12, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, b039f33c-ae0d-43de-b971-6fcac9defb12, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:56:02, 2026-07-28 19:56:02))  
[2026-07-28 19:56:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:03] local.INFO: Model: Journal  
[2026-07-28 19:56:03] local.INFO: Data received: {"id":"d586c533-510f-4e3e-8a0b-5aaad3897a17","type":"Debit","amount":"2500.00","rate":"128.500000","lcy_amount":"322500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:56:03] local.INFO: ID present? YES  
[2026-07-28 19:56:03] local.INFO: ID value: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:03] local.INFO: ID empty? NO  
[2026-07-28 19:56:03] local.INFO: Attempting to find record with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:03] local.INFO: Record not found, creating new with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d586c533-510f-4e3e-8a0b-5aaad3897a17, Debit, 2500.00, 128.500000, 322500.000000, Buying TX: Funds into cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:03, 2026-07-28 19:56:03))  
[2026-07-28 19:56:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:10] local.INFO: Model: Journal  
[2026-07-28 19:56:10] local.INFO: Data received: {"id":"d586c533-510f-4e3e-8a0b-5aaad3897a17","type":"Debit","amount":"2500.00","rate":"128.500000","lcy_amount":"322500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:56:10] local.INFO: ID present? YES  
[2026-07-28 19:56:10] local.INFO: ID value: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:10] local.INFO: ID empty? NO  
[2026-07-28 19:56:10] local.INFO: Attempting to find record with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:10] local.INFO: Record not found, creating new with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d586c533-510f-4e3e-8a0b-5aaad3897a17, Debit, 2500.00, 128.500000, 322500.000000, Buying TX: Funds into cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:10, 2026-07-28 19:56:10))  
[2026-07-28 19:56:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:16] local.INFO: Model: Journal  
[2026-07-28 19:56:16] local.INFO: Data received: {"id":"d586c533-510f-4e3e-8a0b-5aaad3897a17","type":"Debit","amount":"2500.00","rate":"128.500000","lcy_amount":"322500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:56:16] local.INFO: ID present? YES  
[2026-07-28 19:56:16] local.INFO: ID value: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:16] local.INFO: ID empty? NO  
[2026-07-28 19:56:16] local.INFO: Attempting to find record with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:16] local.INFO: Record not found, creating new with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d586c533-510f-4e3e-8a0b-5aaad3897a17, Debit, 2500.00, 128.500000, 322500.000000, Buying TX: Funds into cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:16, 2026-07-28 19:56:16))  
[2026-07-28 19:56:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:22] local.INFO: Model: Journal  
[2026-07-28 19:56:22] local.INFO: Data received: {"id":"d586c533-510f-4e3e-8a0b-5aaad3897a17","type":"Debit","amount":"2500.00","rate":"128.500000","lcy_amount":"322500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 19:56:22] local.INFO: ID present? YES  
[2026-07-28 19:56:22] local.INFO: ID value: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:22] local.INFO: ID empty? NO  
[2026-07-28 19:56:22] local.INFO: Attempting to find record with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:22] local.INFO: Record not found, creating new with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 19:56:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d586c533-510f-4e3e-8a0b-5aaad3897a17, Debit, 2500.00, 128.500000, 322500.000000, Buying TX: Funds into cashbox, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, dc6ad7c4-7b49-4850-af37-19760fa0d8d9, 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:22, 2026-07-28 19:56:22))  
[2026-07-28 19:56:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:24] local.INFO: Model: Journal  
[2026-07-28 19:56:24] local.INFO: Data received: {"id":"d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa","type":"Debit","amount":"3.00","rate":"100.000000","lcy_amount":"387.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:56:24] local.INFO: ID present? YES  
[2026-07-28 19:56:24] local.INFO: ID value: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:24] local.INFO: ID empty? NO  
[2026-07-28 19:56:24] local.INFO: Attempting to find record with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:24] local.INFO: Record not found, creating new with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa, Debit, 3.00, 100.000000, 387.000000, Buying TX: Funds into cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:24, 2026-07-28 19:56:24))  
[2026-07-28 19:56:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:30] local.INFO: Model: Journal  
[2026-07-28 19:56:30] local.INFO: Data received: {"id":"d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa","type":"Debit","amount":"3.00","rate":"100.000000","lcy_amount":"387.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:56:30] local.INFO: ID present? YES  
[2026-07-28 19:56:30] local.INFO: ID value: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:30] local.INFO: ID empty? NO  
[2026-07-28 19:56:30] local.INFO: Attempting to find record with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:30] local.INFO: Record not found, creating new with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa, Debit, 3.00, 100.000000, 387.000000, Buying TX: Funds into cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:30, 2026-07-28 19:56:30))  
[2026-07-28 19:56:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:36] local.INFO: Model: Journal  
[2026-07-28 19:56:36] local.INFO: Data received: {"id":"d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa","type":"Debit","amount":"3.00","rate":"100.000000","lcy_amount":"387.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:56:36] local.INFO: ID present? YES  
[2026-07-28 19:56:36] local.INFO: ID value: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:36] local.INFO: ID empty? NO  
[2026-07-28 19:56:36] local.INFO: Attempting to find record with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:36] local.INFO: Record not found, creating new with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa, Debit, 3.00, 100.000000, 387.000000, Buying TX: Funds into cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:36, 2026-07-28 19:56:36))  
[2026-07-28 19:56:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:42] local.INFO: Model: Journal  
[2026-07-28 19:56:42] local.INFO: Data received: {"id":"d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa","type":"Debit","amount":"3.00","rate":"100.000000","lcy_amount":"387.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 19:56:42] local.INFO: ID present? YES  
[2026-07-28 19:56:42] local.INFO: ID value: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:42] local.INFO: ID empty? NO  
[2026-07-28 19:56:42] local.INFO: Attempting to find record with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:42] local.INFO: Record not found, creating new with ID: d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa  
[2026-07-28 19:56:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5bbfd5e-66c4-40fc-a5ff-6c8e110f17aa, Debit, 3.00, 100.000000, 387.000000, Buying TX: Funds into cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 19:56:42, 2026-07-28 19:56:42))  
[2026-07-28 19:56:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:44] local.INFO: Model: Journal  
[2026-07-28 19:56:44] local.INFO: Data received: {"id":"d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3562-2026","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:56:44] local.INFO: ID present? YES  
[2026-07-28 19:56:44] local.INFO: ID value: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:44] local.INFO: ID empty? NO  
[2026-07-28 19:56:44] local.INFO: Attempting to find record with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:44] local.INFO: Record not found, creating new with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3562-2026, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:56:44, 2026-07-28 19:56:44))  
[2026-07-28 19:56:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:50] local.INFO: Model: Journal  
[2026-07-28 19:56:50] local.INFO: Data received: {"id":"d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3562-2026","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:56:50] local.INFO: ID present? YES  
[2026-07-28 19:56:50] local.INFO: ID value: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:50] local.INFO: ID empty? NO  
[2026-07-28 19:56:50] local.INFO: Attempting to find record with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:50] local.INFO: Record not found, creating new with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3562-2026, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:56:50, 2026-07-28 19:56:50))  
[2026-07-28 19:56:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:56:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:56:56] local.INFO: Model: Journal  
[2026-07-28 19:56:56] local.INFO: Data received: {"id":"d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3562-2026","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:56:56] local.INFO: ID present? YES  
[2026-07-28 19:56:56] local.INFO: ID value: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:56] local.INFO: ID empty? NO  
[2026-07-28 19:56:56] local.INFO: Attempting to find record with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:56] local.INFO: Record not found, creating new with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:56:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3562-2026, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:56:56, 2026-07-28 19:56:56))  
[2026-07-28 19:56:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:03] local.INFO: Model: Journal  
[2026-07-28 19:57:03] local.INFO: Data received: {"id":"d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3562-2026","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 19:57:03] local.INFO: ID present? YES  
[2026-07-28 19:57:03] local.INFO: ID value: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:57:03] local.INFO: ID empty? NO  
[2026-07-28 19:57:03] local.INFO: Attempting to find record with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:57:03] local.INFO: Record not found, creating new with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 19:57:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3, Credit, 310.00, 145.000000, 310.000000, Gain on TR-3562-2026, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:57:03, 2026-07-28 19:57:03))  
[2026-07-28 19:57:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:04] local.INFO: Model: Journal  
[2026-07-28 19:57:04] local.INFO: Data received: {"id":"d5dbd0c0-1140-40c5-9b67-86a23f357cf7","type":"Debit","amount":"2750.00","rate":null,"lcy_amount":"354750.000000","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 18:36:03","updated_at":"2026-07-28 18:36:04"} 
[2026-07-28 19:57:04] local.INFO: ID present? YES  
[2026-07-28 19:57:04] local.INFO: ID value: d5dbd0c0-1140-40c5-9b67-86a23f357cf7  
[2026-07-28 19:57:04] local.INFO: ID empty? NO  
[2026-07-28 19:57:04] local.INFO: Attempting to find record with ID: d5dbd0c0-1140-40c5-9b67-86a23f357cf7  
[2026-07-28 19:57:04] local.INFO: Record not found, creating new with ID: d5dbd0c0-1140-40c5-9b67-86a23f357cf7  
[2026-07-28 19:57:04] local.INFO: Created record: {"id":"d5dbd0c0-1140-40c5-9b67-86a23f357cf7","type":"Debit","amount":"2750.00","rate":null,"lcy_amount":"354750.000000","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T16:57:04.000000Z","created_at":"2026-07-28T16:57:04.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":4264.0,"debit_total":29254.0,"credit_total":"24990.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T08:48:14.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 19:57:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:05] local.INFO: Model: Journal  
[2026-07-28 19:57:05] local.INFO: Data received: {"id":"d5f75403-138e-448a-869e-7777c408de38","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:57:05] local.INFO: ID present? YES  
[2026-07-28 19:57:05] local.INFO: ID value: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:05] local.INFO: ID empty? NO  
[2026-07-28 19:57:05] local.INFO: Attempting to find record with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:05] local.INFO: Record not found, creating new with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5f75403-138e-448a-869e-7777c408de38, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:05, 2026-07-28 19:57:05))  
[2026-07-28 19:57:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:11] local.INFO: Model: Journal  
[2026-07-28 19:57:11] local.INFO: Data received: {"id":"d5f75403-138e-448a-869e-7777c408de38","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:57:11] local.INFO: ID present? YES  
[2026-07-28 19:57:11] local.INFO: ID value: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:11] local.INFO: ID empty? NO  
[2026-07-28 19:57:11] local.INFO: Attempting to find record with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:11] local.INFO: Record not found, creating new with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5f75403-138e-448a-869e-7777c408de38, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:11, 2026-07-28 19:57:11))  
[2026-07-28 19:57:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:18] local.INFO: Model: Journal  
[2026-07-28 19:57:18] local.INFO: Data received: {"id":"d5f75403-138e-448a-869e-7777c408de38","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:57:18] local.INFO: ID present? YES  
[2026-07-28 19:57:18] local.INFO: ID value: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:18] local.INFO: ID empty? NO  
[2026-07-28 19:57:18] local.INFO: Attempting to find record with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:18] local.INFO: Record not found, creating new with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5f75403-138e-448a-869e-7777c408de38, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:18, 2026-07-28 19:57:18))  
[2026-07-28 19:57:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:24] local.INFO: Model: Journal  
[2026-07-28 19:57:24] local.INFO: Data received: {"id":"d5f75403-138e-448a-869e-7777c408de38","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 19:57:24] local.INFO: ID present? YES  
[2026-07-28 19:57:24] local.INFO: ID value: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:24] local.INFO: ID empty? NO  
[2026-07-28 19:57:24] local.INFO: Attempting to find record with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:24] local.INFO: Record not found, creating new with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 19:57:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d5f75403-138e-448a-869e-7777c408de38, Debit, 200.00, 145.000000, 30240.000000, Buying TX: Funds into cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:24, 2026-07-28 19:57:24))  
[2026-07-28 19:57:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:25] local.INFO: Model: Journal  
[2026-07-28 19:57:25] local.INFO: Data received: {"id":"d6a35069-00f2-4bec-9f2e-a493b02efb27","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:57:25] local.INFO: ID present? YES  
[2026-07-28 19:57:25] local.INFO: ID value: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:25] local.INFO: ID empty? NO  
[2026-07-28 19:57:25] local.INFO: Attempting to find record with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:25] local.INFO: Record not found, creating new with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d6a35069-00f2-4bec-9f2e-a493b02efb27, Debit, 40.00, 145.000000, 6048.000000, Buying TX: Funds into cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:25, 2026-07-28 19:57:25))  
[2026-07-28 19:57:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:31] local.INFO: Model: Journal  
[2026-07-28 19:57:31] local.INFO: Data received: {"id":"d6a35069-00f2-4bec-9f2e-a493b02efb27","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:57:31] local.INFO: ID present? YES  
[2026-07-28 19:57:31] local.INFO: ID value: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:31] local.INFO: ID empty? NO  
[2026-07-28 19:57:31] local.INFO: Attempting to find record with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:31] local.INFO: Record not found, creating new with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d6a35069-00f2-4bec-9f2e-a493b02efb27, Debit, 40.00, 145.000000, 6048.000000, Buying TX: Funds into cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:31, 2026-07-28 19:57:31))  
[2026-07-28 19:57:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:38] local.INFO: Model: Journal  
[2026-07-28 19:57:38] local.INFO: Data received: {"id":"d6a35069-00f2-4bec-9f2e-a493b02efb27","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:57:38] local.INFO: ID present? YES  
[2026-07-28 19:57:38] local.INFO: ID value: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:38] local.INFO: ID empty? NO  
[2026-07-28 19:57:38] local.INFO: Attempting to find record with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:38] local.INFO: Record not found, creating new with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d6a35069-00f2-4bec-9f2e-a493b02efb27, Debit, 40.00, 145.000000, 6048.000000, Buying TX: Funds into cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:38, 2026-07-28 19:57:38))  
[2026-07-28 19:57:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:44] local.INFO: Model: Journal  
[2026-07-28 19:57:44] local.INFO: Data received: {"id":"d6a35069-00f2-4bec-9f2e-a493b02efb27","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 19:57:44] local.INFO: ID present? YES  
[2026-07-28 19:57:44] local.INFO: ID value: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:44] local.INFO: ID empty? NO  
[2026-07-28 19:57:44] local.INFO: Attempting to find record with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:44] local.INFO: Record not found, creating new with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 19:57:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d6a35069-00f2-4bec-9f2e-a493b02efb27, Debit, 40.00, 145.000000, 6048.000000, Buying TX: Funds into cashbox, 4e2f2f67-5628-472e-9ed7-9a879921033d, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 4e2f2f67-5628-472e-9ed7-9a879921033d, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:57:44, 2026-07-28 19:57:44))  
[2026-07-28 19:57:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:45] local.INFO: Model: Journal  
[2026-07-28 19:57:45] local.INFO: Data received: {"id":"d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5","type":"Credit","amount":"64000.00","rate":"128.000000","lcy_amount":"64000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:57:45] local.INFO: ID present? YES  
[2026-07-28 19:57:45] local.INFO: ID value: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:45] local.INFO: ID empty? NO  
[2026-07-28 19:57:45] local.INFO: Attempting to find record with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:45] local.INFO: Record not found, creating new with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5, Credit, 64000.00, 128.000000, 64000.000000, Buying TX: Funds out of cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:57:45, 2026-07-28 19:57:45))  
[2026-07-28 19:57:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:52] local.INFO: Model: Journal  
[2026-07-28 19:57:52] local.INFO: Data received: {"id":"d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5","type":"Credit","amount":"64000.00","rate":"128.000000","lcy_amount":"64000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:57:52] local.INFO: ID present? YES  
[2026-07-28 19:57:52] local.INFO: ID value: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:52] local.INFO: ID empty? NO  
[2026-07-28 19:57:52] local.INFO: Attempting to find record with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:52] local.INFO: Record not found, creating new with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5, Credit, 64000.00, 128.000000, 64000.000000, Buying TX: Funds out of cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:57:52, 2026-07-28 19:57:52))  
[2026-07-28 19:57:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:57:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:57:58] local.INFO: Model: Journal  
[2026-07-28 19:57:58] local.INFO: Data received: {"id":"d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5","type":"Credit","amount":"64000.00","rate":"128.000000","lcy_amount":"64000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:57:58] local.INFO: ID present? YES  
[2026-07-28 19:57:58] local.INFO: ID value: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:58] local.INFO: ID empty? NO  
[2026-07-28 19:57:58] local.INFO: Attempting to find record with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:58] local.INFO: Record not found, creating new with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:57:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5, Credit, 64000.00, 128.000000, 64000.000000, Buying TX: Funds out of cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:57:58, 2026-07-28 19:57:58))  
[2026-07-28 19:57:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:04] local.INFO: Model: Journal  
[2026-07-28 19:58:04] local.INFO: Data received: {"id":"d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5","type":"Credit","amount":"64000.00","rate":"128.000000","lcy_amount":"64000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","date":"2026-07-07","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"81cf17d6-0540-4a59-8fad-5e09b3cd7bd1","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 19:58:04] local.INFO: ID present? YES  
[2026-07-28 19:58:04] local.INFO: ID value: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:58:04] local.INFO: ID empty? NO  
[2026-07-28 19:58:04] local.INFO: Attempting to find record with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:58:04] local.INFO: Record not found, creating new with ID: d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5  
[2026-07-28 19:58:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d72a4dae-2c1a-452f-bfe6-7dff2b3d8ec5, Credit, 64000.00, 128.000000, 64000.000000, Buying TX: Funds out of cashbox, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 2026-07-07, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 81cf17d6-0540-4a59-8fad-5e09b3cd7bd1, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:04, 2026-07-28 19:58:04))  
[2026-07-28 19:58:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:05] local.INFO: Model: Journal  
[2026-07-28 19:58:05] local.INFO: Data received: {"id":"d733771d-6fd5-4b52-bdf3-6c305bf524c1","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:58:05] local.INFO: ID present? YES  
[2026-07-28 19:58:05] local.INFO: ID value: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:05] local.INFO: ID empty? NO  
[2026-07-28 19:58:05] local.INFO: Attempting to find record with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:05] local.INFO: Record not found, creating new with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d733771d-6fd5-4b52-bdf3-6c305bf524c1, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:05, 2026-07-28 19:58:05))  
[2026-07-28 19:58:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:12] local.INFO: Model: Journal  
[2026-07-28 19:58:12] local.INFO: Data received: {"id":"d733771d-6fd5-4b52-bdf3-6c305bf524c1","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:58:12] local.INFO: ID present? YES  
[2026-07-28 19:58:12] local.INFO: ID value: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:12] local.INFO: ID empty? NO  
[2026-07-28 19:58:12] local.INFO: Attempting to find record with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:12] local.INFO: Record not found, creating new with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d733771d-6fd5-4b52-bdf3-6c305bf524c1, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:12, 2026-07-28 19:58:12))  
[2026-07-28 19:58:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:18] local.INFO: Model: Journal  
[2026-07-28 19:58:18] local.INFO: Data received: {"id":"d733771d-6fd5-4b52-bdf3-6c305bf524c1","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:58:18] local.INFO: ID present? YES  
[2026-07-28 19:58:18] local.INFO: ID value: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:18] local.INFO: ID empty? NO  
[2026-07-28 19:58:18] local.INFO: Attempting to find record with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:18] local.INFO: Record not found, creating new with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d733771d-6fd5-4b52-bdf3-6c305bf524c1, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:18, 2026-07-28 19:58:18))  
[2026-07-28 19:58:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:24] local.INFO: Model: Journal  
[2026-07-28 19:58:24] local.INFO: Data received: {"id":"d733771d-6fd5-4b52-bdf3-6c305bf524c1","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 19:58:24] local.INFO: ID present? YES  
[2026-07-28 19:58:24] local.INFO: ID value: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:24] local.INFO: ID empty? NO  
[2026-07-28 19:58:24] local.INFO: Attempting to find record with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:24] local.INFO: Record not found, creating new with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 19:58:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d733771d-6fd5-4b52-bdf3-6c305bf524c1, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, c274958e-a976-437d-9255-11d5ffb415d7, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c274958e-a976-437d-9255-11d5ffb415d7, 65465c22-a13e-4bd0-9fe9-09d818e8f5a6, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:24, 2026-07-28 19:58:24))  
[2026-07-28 19:58:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:26] local.INFO: Model: Journal  
[2026-07-28 19:58:26] local.INFO: Data received: {"id":"d8414a40-8f64-46a9-992f-160709500114","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:58:26] local.INFO: ID present? YES  
[2026-07-28 19:58:26] local.INFO: ID value: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:26] local.INFO: ID empty? NO  
[2026-07-28 19:58:26] local.INFO: Attempting to find record with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:26] local.INFO: Record not found, creating new with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d8414a40-8f64-46a9-992f-160709500114, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:58:26, 2026-07-28 19:58:26))  
[2026-07-28 19:58:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:32] local.INFO: Model: Journal  
[2026-07-28 19:58:32] local.INFO: Data received: {"id":"d8414a40-8f64-46a9-992f-160709500114","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:58:32] local.INFO: ID present? YES  
[2026-07-28 19:58:32] local.INFO: ID value: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:32] local.INFO: ID empty? NO  
[2026-07-28 19:58:32] local.INFO: Attempting to find record with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:32] local.INFO: Record not found, creating new with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d8414a40-8f64-46a9-992f-160709500114, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:58:32, 2026-07-28 19:58:32))  
[2026-07-28 19:58:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:38] local.INFO: Model: Journal  
[2026-07-28 19:58:38] local.INFO: Data received: {"id":"d8414a40-8f64-46a9-992f-160709500114","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:58:38] local.INFO: ID present? YES  
[2026-07-28 19:58:38] local.INFO: ID value: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:38] local.INFO: ID empty? NO  
[2026-07-28 19:58:38] local.INFO: Attempting to find record with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:38] local.INFO: Record not found, creating new with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d8414a40-8f64-46a9-992f-160709500114, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:58:38, 2026-07-28 19:58:38))  
[2026-07-28 19:58:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:45] local.INFO: Model: Journal  
[2026-07-28 19:58:45] local.INFO: Data received: {"id":"d8414a40-8f64-46a9-992f-160709500114","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","date":"2026-07-07","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3d4cfa46-ed40-4814-af06-cdc027ad6cc2","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 19:58:45] local.INFO: ID present? YES  
[2026-07-28 19:58:45] local.INFO: ID value: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:45] local.INFO: ID empty? NO  
[2026-07-28 19:58:45] local.INFO: Attempting to find record with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:45] local.INFO: Record not found, creating new with ID: d8414a40-8f64-46a9-992f-160709500114  
[2026-07-28 19:58:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (d8414a40-8f64-46a9-992f-160709500114, Debit, 50.00, 145.000000, 7560.000000, Buying TX: Funds into cashbox, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 2026-07-07, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 3d4cfa46-ed40-4814-af06-cdc027ad6cc2, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:58:45, 2026-07-28 19:58:45))  
[2026-07-28 19:58:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:46] local.INFO: Model: Journal  
[2026-07-28 19:58:46] local.INFO: Data received: {"id":"dcbe9ddd-f9d5-4023-8680-0428d036cb97","type":"Debit","amount":"647000.00","rate":"129.400000","lcy_amount":"647000.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:58:46] local.INFO: ID present? YES  
[2026-07-28 19:58:46] local.INFO: ID value: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:46] local.INFO: ID empty? NO  
[2026-07-28 19:58:46] local.INFO: Attempting to find record with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:46] local.INFO: Record not found, creating new with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (dcbe9ddd-f9d5-4023-8680-0428d036cb97, Debit, 647000.00, 129.400000, 647000.000000, Selling TX: Funds into cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:46, 2026-07-28 19:58:46))  
[2026-07-28 19:58:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:52] local.INFO: Model: Journal  
[2026-07-28 19:58:52] local.INFO: Data received: {"id":"dcbe9ddd-f9d5-4023-8680-0428d036cb97","type":"Debit","amount":"647000.00","rate":"129.400000","lcy_amount":"647000.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:58:52] local.INFO: ID present? YES  
[2026-07-28 19:58:52] local.INFO: ID value: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:52] local.INFO: ID empty? NO  
[2026-07-28 19:58:52] local.INFO: Attempting to find record with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:52] local.INFO: Record not found, creating new with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (dcbe9ddd-f9d5-4023-8680-0428d036cb97, Debit, 647000.00, 129.400000, 647000.000000, Selling TX: Funds into cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:52, 2026-07-28 19:58:52))  
[2026-07-28 19:58:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:58:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:58:59] local.INFO: Model: Journal  
[2026-07-28 19:58:59] local.INFO: Data received: {"id":"dcbe9ddd-f9d5-4023-8680-0428d036cb97","type":"Debit","amount":"647000.00","rate":"129.400000","lcy_amount":"647000.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:58:59] local.INFO: ID present? YES  
[2026-07-28 19:58:59] local.INFO: ID value: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:59] local.INFO: ID empty? NO  
[2026-07-28 19:58:59] local.INFO: Attempting to find record with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:59] local.INFO: Record not found, creating new with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:58:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (dcbe9ddd-f9d5-4023-8680-0428d036cb97, Debit, 647000.00, 129.400000, 647000.000000, Selling TX: Funds into cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:58:59, 2026-07-28 19:58:59))  
[2026-07-28 19:58:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:05] local.INFO: Model: Journal  
[2026-07-28 19:59:05] local.INFO: Data received: {"id":"dcbe9ddd-f9d5-4023-8680-0428d036cb97","type":"Debit","amount":"647000.00","rate":"129.400000","lcy_amount":"647000.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 19:59:05] local.INFO: ID present? YES  
[2026-07-28 19:59:05] local.INFO: ID value: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:59:05] local.INFO: ID empty? NO  
[2026-07-28 19:59:05] local.INFO: Attempting to find record with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:59:05] local.INFO: Record not found, creating new with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 19:59:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (dcbe9ddd-f9d5-4023-8680-0428d036cb97, Debit, 647000.00, 129.400000, 647000.000000, Selling TX: Funds into cashbox, bc32ac8f-813f-409e-b10a-c6065c6e082e, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, bc32ac8f-813f-409e-b10a-c6065c6e082e, bbdb50db-9542-4c5c-8077-ab573ac1c850, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:59:05, 2026-07-28 19:59:05))  
[2026-07-28 19:59:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:06] local.INFO: Model: Journal  
[2026-07-28 19:59:06] local.INFO: Data received: {"id":"ddc56af3-0185-4701-9d6e-46f04a9f9d00","type":"Debit","amount":"30.00","rate":"145.000000","lcy_amount":"4536.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:59:06] local.INFO: ID present? YES  
[2026-07-28 19:59:06] local.INFO: ID value: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:06] local.INFO: ID empty? NO  
[2026-07-28 19:59:06] local.INFO: Attempting to find record with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:06] local.INFO: Record not found, creating new with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ddc56af3-0185-4701-9d6e-46f04a9f9d00, Debit, 30.00, 145.000000, 4536.000000, Buying TX: Funds into cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:59:06, 2026-07-28 19:59:06))  
[2026-07-28 19:59:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:12] local.INFO: Model: Journal  
[2026-07-28 19:59:12] local.INFO: Data received: {"id":"ddc56af3-0185-4701-9d6e-46f04a9f9d00","type":"Debit","amount":"30.00","rate":"145.000000","lcy_amount":"4536.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:59:12] local.INFO: ID present? YES  
[2026-07-28 19:59:12] local.INFO: ID value: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:12] local.INFO: ID empty? NO  
[2026-07-28 19:59:12] local.INFO: Attempting to find record with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:12] local.INFO: Record not found, creating new with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ddc56af3-0185-4701-9d6e-46f04a9f9d00, Debit, 30.00, 145.000000, 4536.000000, Buying TX: Funds into cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:59:12, 2026-07-28 19:59:12))  
[2026-07-28 19:59:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:19] local.INFO: Model: Journal  
[2026-07-28 19:59:19] local.INFO: Data received: {"id":"ddc56af3-0185-4701-9d6e-46f04a9f9d00","type":"Debit","amount":"30.00","rate":"145.000000","lcy_amount":"4536.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:59:19] local.INFO: ID present? YES  
[2026-07-28 19:59:19] local.INFO: ID value: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:19] local.INFO: ID empty? NO  
[2026-07-28 19:59:19] local.INFO: Attempting to find record with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:19] local.INFO: Record not found, creating new with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ddc56af3-0185-4701-9d6e-46f04a9f9d00, Debit, 30.00, 145.000000, 4536.000000, Buying TX: Funds into cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:59:19, 2026-07-28 19:59:19))  
[2026-07-28 19:59:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:25] local.INFO: Model: Journal  
[2026-07-28 19:59:25] local.INFO: Data received: {"id":"ddc56af3-0185-4701-9d6e-46f04a9f9d00","type":"Debit","amount":"30.00","rate":"145.000000","lcy_amount":"4536.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 19:59:25] local.INFO: ID present? YES  
[2026-07-28 19:59:25] local.INFO: ID value: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:25] local.INFO: ID empty? NO  
[2026-07-28 19:59:25] local.INFO: Attempting to find record with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:25] local.INFO: Record not found, creating new with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 19:59:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ddc56af3-0185-4701-9d6e-46f04a9f9d00, Debit, 30.00, 145.000000, 4536.000000, Buying TX: Funds into cashbox, 87021275-3069-4a43-990e-3bffb335f16e, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 87021275-3069-4a43-990e-3bffb335f16e, 6ab2a452-a0c2-404c-878c-03f897122334, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:59:25, 2026-07-28 19:59:25))  
[2026-07-28 19:59:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:26] local.INFO: Model: Journal  
[2026-07-28 19:59:26] local.INFO: Data received: {"id":"de4af378-d0d2-4a1a-8360-00e4ee91c323","type":"Credit","amount":"2500.00","rate":"125.000000","lcy_amount":"2500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:59:26] local.INFO: ID present? YES  
[2026-07-28 19:59:26] local.INFO: ID value: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:26] local.INFO: ID empty? NO  
[2026-07-28 19:59:26] local.INFO: Attempting to find record with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:26] local.INFO: Record not found, creating new with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (de4af378-d0d2-4a1a-8360-00e4ee91c323, Credit, 2500.00, 125.000000, 2500.000000, Buying TX: Funds out of cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:59:26, 2026-07-28 19:59:26))  
[2026-07-28 19:59:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:32] local.INFO: Model: Journal  
[2026-07-28 19:59:32] local.INFO: Data received: {"id":"de4af378-d0d2-4a1a-8360-00e4ee91c323","type":"Credit","amount":"2500.00","rate":"125.000000","lcy_amount":"2500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:59:32] local.INFO: ID present? YES  
[2026-07-28 19:59:32] local.INFO: ID value: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:32] local.INFO: ID empty? NO  
[2026-07-28 19:59:32] local.INFO: Attempting to find record with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:32] local.INFO: Record not found, creating new with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (de4af378-d0d2-4a1a-8360-00e4ee91c323, Credit, 2500.00, 125.000000, 2500.000000, Buying TX: Funds out of cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:59:32, 2026-07-28 19:59:32))  
[2026-07-28 19:59:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:39] local.INFO: Model: Journal  
[2026-07-28 19:59:39] local.INFO: Data received: {"id":"de4af378-d0d2-4a1a-8360-00e4ee91c323","type":"Credit","amount":"2500.00","rate":"125.000000","lcy_amount":"2500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:59:39] local.INFO: ID present? YES  
[2026-07-28 19:59:39] local.INFO: ID value: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:39] local.INFO: ID empty? NO  
[2026-07-28 19:59:39] local.INFO: Attempting to find record with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:39] local.INFO: Record not found, creating new with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (de4af378-d0d2-4a1a-8360-00e4ee91c323, Credit, 2500.00, 125.000000, 2500.000000, Buying TX: Funds out of cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:59:39, 2026-07-28 19:59:39))  
[2026-07-28 19:59:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:45] local.INFO: Model: Journal  
[2026-07-28 19:59:45] local.INFO: Data received: {"id":"de4af378-d0d2-4a1a-8360-00e4ee91c323","type":"Credit","amount":"2500.00","rate":"125.000000","lcy_amount":"2500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 19:59:45] local.INFO: ID present? YES  
[2026-07-28 19:59:45] local.INFO: ID value: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:45] local.INFO: ID empty? NO  
[2026-07-28 19:59:45] local.INFO: Attempting to find record with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:45] local.INFO: Record not found, creating new with ID: de4af378-d0d2-4a1a-8360-00e4ee91c323  
[2026-07-28 19:59:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (de4af378-d0d2-4a1a-8360-00e4ee91c323, Credit, 2500.00, 125.000000, 2500.000000, Buying TX: Funds out of cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 19:59:45, 2026-07-28 19:59:45))  
[2026-07-28 19:59:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:46] local.INFO: Model: Journal  
[2026-07-28 19:59:46] local.INFO: Data received: {"id":"df9bfd95-58ba-4e90-8597-3ca83d5ed4b0","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:59:46] local.INFO: ID present? YES  
[2026-07-28 19:59:46] local.INFO: ID value: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:46] local.INFO: ID empty? NO  
[2026-07-28 19:59:46] local.INFO: Attempting to find record with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:46] local.INFO: Record not found, creating new with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (df9bfd95-58ba-4e90-8597-3ca83d5ed4b0, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:59:46, 2026-07-28 19:59:46))  
[2026-07-28 19:59:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:53] local.INFO: Model: Journal  
[2026-07-28 19:59:53] local.INFO: Data received: {"id":"df9bfd95-58ba-4e90-8597-3ca83d5ed4b0","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:59:53] local.INFO: ID present? YES  
[2026-07-28 19:59:53] local.INFO: ID value: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:53] local.INFO: ID empty? NO  
[2026-07-28 19:59:53] local.INFO: Attempting to find record with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:53] local.INFO: Record not found, creating new with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (df9bfd95-58ba-4e90-8597-3ca83d5ed4b0, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:59:53, 2026-07-28 19:59:53))  
[2026-07-28 19:59:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 19:59:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 19:59:59] local.INFO: Model: Journal  
[2026-07-28 19:59:59] local.INFO: Data received: {"id":"df9bfd95-58ba-4e90-8597-3ca83d5ed4b0","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 19:59:59] local.INFO: ID present? YES  
[2026-07-28 19:59:59] local.INFO: ID value: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:59] local.INFO: ID empty? NO  
[2026-07-28 19:59:59] local.INFO: Attempting to find record with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:59] local.INFO: Record not found, creating new with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 19:59:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (df9bfd95-58ba-4e90-8597-3ca83d5ed4b0, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 19:59:59, 2026-07-28 19:59:59))  
[2026-07-28 19:59:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:05] local.INFO: Model: Journal  
[2026-07-28 20:00:05] local.INFO: Data received: {"id":"df9bfd95-58ba-4e90-8597-3ca83d5ed4b0","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:00:05] local.INFO: ID present? YES  
[2026-07-28 20:00:05] local.INFO: ID value: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 20:00:05] local.INFO: ID empty? NO  
[2026-07-28 20:00:05] local.INFO: Attempting to find record with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 20:00:05] local.INFO: Record not found, creating new with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 20:00:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (df9bfd95-58ba-4e90-8597-3ca83d5ed4b0, Debit, 400.00, 145.000000, 60480.000000, Buying TX: Funds into cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:00:05, 2026-07-28 20:00:05))  
[2026-07-28 20:00:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:06] local.INFO: Model: Journal  
[2026-07-28 20:00:06] local.INFO: Data received: {"id":"e1ef99ca-305d-4cf9-8cc4-1b90eb583526","type":"Credit","amount":"135.00","rate":"127.500000","lcy_amount":"135.000000","narrative":"Gain on TR-3538-2026","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 20:00:06] local.INFO: ID present? YES  
[2026-07-28 20:00:06] local.INFO: ID value: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:06] local.INFO: ID empty? NO  
[2026-07-28 20:00:06] local.INFO: Attempting to find record with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:06] local.INFO: Record not found, creating new with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1ef99ca-305d-4cf9-8cc4-1b90eb583526, Credit, 135.00, 127.500000, 135.000000, Gain on TR-3538-2026, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:06, 2026-07-28 20:00:06))  
[2026-07-28 20:00:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:13] local.INFO: Model: Journal  
[2026-07-28 20:00:13] local.INFO: Data received: {"id":"e1ef99ca-305d-4cf9-8cc4-1b90eb583526","type":"Credit","amount":"135.00","rate":"127.500000","lcy_amount":"135.000000","narrative":"Gain on TR-3538-2026","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 20:00:13] local.INFO: ID present? YES  
[2026-07-28 20:00:13] local.INFO: ID value: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:13] local.INFO: ID empty? NO  
[2026-07-28 20:00:13] local.INFO: Attempting to find record with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:13] local.INFO: Record not found, creating new with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1ef99ca-305d-4cf9-8cc4-1b90eb583526, Credit, 135.00, 127.500000, 135.000000, Gain on TR-3538-2026, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:13, 2026-07-28 20:00:13))  
[2026-07-28 20:00:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:19] local.INFO: Model: Journal  
[2026-07-28 20:00:19] local.INFO: Data received: {"id":"e1ef99ca-305d-4cf9-8cc4-1b90eb583526","type":"Credit","amount":"135.00","rate":"127.500000","lcy_amount":"135.000000","narrative":"Gain on TR-3538-2026","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 20:00:19] local.INFO: ID present? YES  
[2026-07-28 20:00:19] local.INFO: ID value: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:19] local.INFO: ID empty? NO  
[2026-07-28 20:00:19] local.INFO: Attempting to find record with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:19] local.INFO: Record not found, creating new with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1ef99ca-305d-4cf9-8cc4-1b90eb583526, Credit, 135.00, 127.500000, 135.000000, Gain on TR-3538-2026, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:19, 2026-07-28 20:00:19))  
[2026-07-28 20:00:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:25] local.INFO: Model: Journal  
[2026-07-28 20:00:25] local.INFO: Data received: {"id":"e1ef99ca-305d-4cf9-8cc4-1b90eb583526","type":"Credit","amount":"135.00","rate":"127.500000","lcy_amount":"135.000000","narrative":"Gain on TR-3538-2026","uniqid":"76bb0073-4ae4-400a-9dea-b111852fa433","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"76bb0073-4ae4-400a-9dea-b111852fa433","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 15:51:19","updated_at":"2026-07-07 15:51:19"} 
[2026-07-28 20:00:25] local.INFO: ID present? YES  
[2026-07-28 20:00:25] local.INFO: ID value: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:25] local.INFO: ID empty? NO  
[2026-07-28 20:00:25] local.INFO: Attempting to find record with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:25] local.INFO: Record not found, creating new with ID: e1ef99ca-305d-4cf9-8cc4-1b90eb583526  
[2026-07-28 20:00:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1ef99ca-305d-4cf9-8cc4-1b90eb583526, Credit, 135.00, 127.500000, 135.000000, Gain on TR-3538-2026, 76bb0073-4ae4-400a-9dea-b111852fa433, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 76bb0073-4ae4-400a-9dea-b111852fa433, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:25, 2026-07-28 20:00:25))  
[2026-07-28 20:00:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:26] local.INFO: Model: Journal  
[2026-07-28 20:00:26] local.INFO: Data received: {"id":"e1f19a49-fa20-4ac2-9694-fd0134d9b6ce","type":"Credit","amount":"40.00","rate":"125.000000","lcy_amount":"40.000000","narrative":"Gain on TR-3538-2026","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 20:00:26] local.INFO: ID present? YES  
[2026-07-28 20:00:26] local.INFO: ID value: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:26] local.INFO: ID empty? NO  
[2026-07-28 20:00:26] local.INFO: Attempting to find record with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:26] local.INFO: Record not found, creating new with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1f19a49-fa20-4ac2-9694-fd0134d9b6ce, Credit, 40.00, 125.000000, 40.000000, Gain on TR-3538-2026, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:26, 2026-07-28 20:00:26))  
[2026-07-28 20:00:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:33] local.INFO: Model: Journal  
[2026-07-28 20:00:33] local.INFO: Data received: {"id":"e1f19a49-fa20-4ac2-9694-fd0134d9b6ce","type":"Credit","amount":"40.00","rate":"125.000000","lcy_amount":"40.000000","narrative":"Gain on TR-3538-2026","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 20:00:33] local.INFO: ID present? YES  
[2026-07-28 20:00:33] local.INFO: ID value: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:33] local.INFO: ID empty? NO  
[2026-07-28 20:00:33] local.INFO: Attempting to find record with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:33] local.INFO: Record not found, creating new with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1f19a49-fa20-4ac2-9694-fd0134d9b6ce, Credit, 40.00, 125.000000, 40.000000, Gain on TR-3538-2026, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:33, 2026-07-28 20:00:33))  
[2026-07-28 20:00:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:39] local.INFO: Model: Journal  
[2026-07-28 20:00:39] local.INFO: Data received: {"id":"e1f19a49-fa20-4ac2-9694-fd0134d9b6ce","type":"Credit","amount":"40.00","rate":"125.000000","lcy_amount":"40.000000","narrative":"Gain on TR-3538-2026","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 20:00:39] local.INFO: ID present? YES  
[2026-07-28 20:00:39] local.INFO: ID value: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:39] local.INFO: ID empty? NO  
[2026-07-28 20:00:39] local.INFO: Attempting to find record with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:39] local.INFO: Record not found, creating new with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1f19a49-fa20-4ac2-9694-fd0134d9b6ce, Credit, 40.00, 125.000000, 40.000000, Gain on TR-3538-2026, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:39, 2026-07-28 20:00:39))  
[2026-07-28 20:00:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:45] local.INFO: Model: Journal  
[2026-07-28 20:00:45] local.INFO: Data received: {"id":"e1f19a49-fa20-4ac2-9694-fd0134d9b6ce","type":"Credit","amount":"40.00","rate":"125.000000","lcy_amount":"40.000000","narrative":"Gain on TR-3538-2026","uniqid":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","date":"2026-07-07","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-07 14:50:14","updated_at":"2026-07-07 14:50:14"} 
[2026-07-28 20:00:45] local.INFO: ID present? YES  
[2026-07-28 20:00:45] local.INFO: ID value: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:45] local.INFO: ID empty? NO  
[2026-07-28 20:00:45] local.INFO: Attempting to find record with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:45] local.INFO: Record not found, creating new with ID: e1f19a49-fa20-4ac2-9694-fd0134d9b6ce  
[2026-07-28 20:00:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e1f19a49-fa20-4ac2-9694-fd0134d9b6ce, Credit, 40.00, 125.000000, 40.000000, Gain on TR-3538-2026, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 2026-07-07, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 84b61295-fed9-44cf-bc5d-9ab3e9b6cb6d, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:45, 2026-07-28 20:00:45))  
[2026-07-28 20:00:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:47] local.INFO: Model: Journal  
[2026-07-28 20:00:47] local.INFO: Data received: {"id":"e250b8f0-a679-40b5-9d5f-cb53cdd8e242","type":"Credit","amount":"12800.00","rate":"128.000000","lcy_amount":"12800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 20:00:47] local.INFO: ID present? YES  
[2026-07-28 20:00:47] local.INFO: ID value: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:47] local.INFO: ID empty? NO  
[2026-07-28 20:00:47] local.INFO: Attempting to find record with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:47] local.INFO: Record not found, creating new with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e250b8f0-a679-40b5-9d5f-cb53cdd8e242, Credit, 12800.00, 128.000000, 12800.000000, Buying TX: Funds out of cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:47, 2026-07-28 20:00:47))  
[2026-07-28 20:00:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:53] local.INFO: Model: Journal  
[2026-07-28 20:00:53] local.INFO: Data received: {"id":"e250b8f0-a679-40b5-9d5f-cb53cdd8e242","type":"Credit","amount":"12800.00","rate":"128.000000","lcy_amount":"12800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 20:00:53] local.INFO: ID present? YES  
[2026-07-28 20:00:53] local.INFO: ID value: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:53] local.INFO: ID empty? NO  
[2026-07-28 20:00:53] local.INFO: Attempting to find record with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:53] local.INFO: Record not found, creating new with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e250b8f0-a679-40b5-9d5f-cb53cdd8e242, Credit, 12800.00, 128.000000, 12800.000000, Buying TX: Funds out of cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:53, 2026-07-28 20:00:53))  
[2026-07-28 20:00:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:00:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:00:59] local.INFO: Model: Journal  
[2026-07-28 20:00:59] local.INFO: Data received: {"id":"e250b8f0-a679-40b5-9d5f-cb53cdd8e242","type":"Credit","amount":"12800.00","rate":"128.000000","lcy_amount":"12800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 20:00:59] local.INFO: ID present? YES  
[2026-07-28 20:00:59] local.INFO: ID value: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:59] local.INFO: ID empty? NO  
[2026-07-28 20:00:59] local.INFO: Attempting to find record with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:59] local.INFO: Record not found, creating new with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:00:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e250b8f0-a679-40b5-9d5f-cb53cdd8e242, Credit, 12800.00, 128.000000, 12800.000000, Buying TX: Funds out of cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:00:59, 2026-07-28 20:00:59))  
[2026-07-28 20:00:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:05] local.INFO: Model: Journal  
[2026-07-28 20:01:05] local.INFO: Data received: {"id":"e250b8f0-a679-40b5-9d5f-cb53cdd8e242","type":"Credit","amount":"12800.00","rate":"128.000000","lcy_amount":"12800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 20:01:05] local.INFO: ID present? YES  
[2026-07-28 20:01:05] local.INFO: ID value: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:01:05] local.INFO: ID empty? NO  
[2026-07-28 20:01:05] local.INFO: Attempting to find record with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:01:05] local.INFO: Record not found, creating new with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:01:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e250b8f0-a679-40b5-9d5f-cb53cdd8e242, Credit, 12800.00, 128.000000, 12800.000000, Buying TX: Funds out of cashbox, 778f797b-d744-486d-aa18-d84286625daf, 2026-07-26, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 778f797b-d744-486d-aa18-d84286625daf, 525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:05, 2026-07-28 20:01:05))  
[2026-07-28 20:01:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:07] local.INFO: Model: Journal  
[2026-07-28 20:01:07] local.INFO: Data received: {"id":"e4b4fc0c-99fe-4050-8732-9d612d617e25","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:01:07] local.INFO: ID present? YES  
[2026-07-28 20:01:07] local.INFO: ID value: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:07] local.INFO: ID empty? NO  
[2026-07-28 20:01:07] local.INFO: Attempting to find record with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:07] local.INFO: Record not found, creating new with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e4b4fc0c-99fe-4050-8732-9d612d617e25, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:01:07, 2026-07-28 20:01:07))  
[2026-07-28 20:01:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:13] local.INFO: Model: Journal  
[2026-07-28 20:01:13] local.INFO: Data received: {"id":"e4b4fc0c-99fe-4050-8732-9d612d617e25","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:01:13] local.INFO: ID present? YES  
[2026-07-28 20:01:13] local.INFO: ID value: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:13] local.INFO: ID empty? NO  
[2026-07-28 20:01:13] local.INFO: Attempting to find record with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:13] local.INFO: Record not found, creating new with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e4b4fc0c-99fe-4050-8732-9d612d617e25, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:01:13, 2026-07-28 20:01:13))  
[2026-07-28 20:01:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:19] local.INFO: Model: Journal  
[2026-07-28 20:01:19] local.INFO: Data received: {"id":"e4b4fc0c-99fe-4050-8732-9d612d617e25","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:01:19] local.INFO: ID present? YES  
[2026-07-28 20:01:19] local.INFO: ID value: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:19] local.INFO: ID empty? NO  
[2026-07-28 20:01:19] local.INFO: Attempting to find record with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:19] local.INFO: Record not found, creating new with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e4b4fc0c-99fe-4050-8732-9d612d617e25, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:01:19, 2026-07-28 20:01:19))  
[2026-07-28 20:01:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:25] local.INFO: Model: Journal  
[2026-07-28 20:01:25] local.INFO: Data received: {"id":"e4b4fc0c-99fe-4050-8732-9d612d617e25","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:01:25] local.INFO: ID present? YES  
[2026-07-28 20:01:25] local.INFO: ID value: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:25] local.INFO: ID empty? NO  
[2026-07-28 20:01:25] local.INFO: Attempting to find record with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:25] local.INFO: Record not found, creating new with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:01:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e4b4fc0c-99fe-4050-8732-9d612d617e25, Debit, 100.00, 127.500000, 12900.000000, Buying TX: Funds into cashbox, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 2026-07-26, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f, 581b23fb-3408-4f59-86f0-ce4fc53d2e8e, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:01:25, 2026-07-28 20:01:25))  
[2026-07-28 20:01:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:27] local.INFO: Model: Journal  
[2026-07-28 20:01:27] local.INFO: Data received: {"id":"e5723198-170d-442a-830c-291988216127","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 20:01:27] local.INFO: ID present? YES  
[2026-07-28 20:01:27] local.INFO: ID value: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:27] local.INFO: ID empty? NO  
[2026-07-28 20:01:27] local.INFO: Attempting to find record with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:27] local.INFO: Record not found, creating new with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5723198-170d-442a-830c-291988216127, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:27, 2026-07-28 20:01:27))  
[2026-07-28 20:01:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:33] local.INFO: Model: Journal  
[2026-07-28 20:01:33] local.INFO: Data received: {"id":"e5723198-170d-442a-830c-291988216127","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 20:01:33] local.INFO: ID present? YES  
[2026-07-28 20:01:33] local.INFO: ID value: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:33] local.INFO: ID empty? NO  
[2026-07-28 20:01:33] local.INFO: Attempting to find record with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:33] local.INFO: Record not found, creating new with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5723198-170d-442a-830c-291988216127, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:33, 2026-07-28 20:01:33))  
[2026-07-28 20:01:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:39] local.INFO: Model: Journal  
[2026-07-28 20:01:39] local.INFO: Data received: {"id":"e5723198-170d-442a-830c-291988216127","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 20:01:39] local.INFO: ID present? YES  
[2026-07-28 20:01:39] local.INFO: ID value: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:39] local.INFO: ID empty? NO  
[2026-07-28 20:01:39] local.INFO: Attempting to find record with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:39] local.INFO: Record not found, creating new with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5723198-170d-442a-830c-291988216127, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:39, 2026-07-28 20:01:39))  
[2026-07-28 20:01:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:45] local.INFO: Model: Journal  
[2026-07-28 20:01:45] local.INFO: Data received: {"id":"e5723198-170d-442a-830c-291988216127","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 20:01:45] local.INFO: ID present? YES  
[2026-07-28 20:01:45] local.INFO: ID value: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:45] local.INFO: ID empty? NO  
[2026-07-28 20:01:45] local.INFO: Attempting to find record with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:45] local.INFO: Record not found, creating new with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:01:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5723198-170d-442a-830c-291988216127, Credit, 29000.00, 145.000000, 29000.000000, Buying TX: Funds out of cashbox, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 2026-07-25, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 472fbfaa-6ba9-40a7-86e0-909e9a7ce979, 0d77ae98-f040-46ea-b8fc-12743d6f784c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:45, 2026-07-28 20:01:45))  
[2026-07-28 20:01:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:47] local.INFO: Model: Journal  
[2026-07-28 20:01:47] local.INFO: Data received: {"id":"e5ede99a-d59e-417d-91a6-212e39f9a2d9","type":"Credit","amount":"402.00","rate":"144.500000","lcy_amount":"402.000000","narrative":"Gain on TR-3555-2026","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:01:47] local.INFO: ID present? YES  
[2026-07-28 20:01:47] local.INFO: ID value: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:47] local.INFO: ID empty? NO  
[2026-07-28 20:01:47] local.INFO: Attempting to find record with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:47] local.INFO: Record not found, creating new with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5ede99a-d59e-417d-91a6-212e39f9a2d9, Credit, 402.00, 144.500000, 402.000000, Gain on TR-3555-2026, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:47, 2026-07-28 20:01:47))  
[2026-07-28 20:01:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:53] local.INFO: Model: Journal  
[2026-07-28 20:01:53] local.INFO: Data received: {"id":"e5ede99a-d59e-417d-91a6-212e39f9a2d9","type":"Credit","amount":"402.00","rate":"144.500000","lcy_amount":"402.000000","narrative":"Gain on TR-3555-2026","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:01:53] local.INFO: ID present? YES  
[2026-07-28 20:01:53] local.INFO: ID value: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:53] local.INFO: ID empty? NO  
[2026-07-28 20:01:53] local.INFO: Attempting to find record with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:53] local.INFO: Record not found, creating new with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5ede99a-d59e-417d-91a6-212e39f9a2d9, Credit, 402.00, 144.500000, 402.000000, Gain on TR-3555-2026, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:53, 2026-07-28 20:01:53))  
[2026-07-28 20:01:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:01:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:01:59] local.INFO: Model: Journal  
[2026-07-28 20:01:59] local.INFO: Data received: {"id":"e5ede99a-d59e-417d-91a6-212e39f9a2d9","type":"Credit","amount":"402.00","rate":"144.500000","lcy_amount":"402.000000","narrative":"Gain on TR-3555-2026","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:01:59] local.INFO: ID present? YES  
[2026-07-28 20:01:59] local.INFO: ID value: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:59] local.INFO: ID empty? NO  
[2026-07-28 20:01:59] local.INFO: Attempting to find record with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:59] local.INFO: Record not found, creating new with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:01:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5ede99a-d59e-417d-91a6-212e39f9a2d9, Credit, 402.00, 144.500000, 402.000000, Gain on TR-3555-2026, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:01:59, 2026-07-28 20:01:59))  
[2026-07-28 20:01:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:05] local.INFO: Model: Journal  
[2026-07-28 20:02:05] local.INFO: Data received: {"id":"e5ede99a-d59e-417d-91a6-212e39f9a2d9","type":"Credit","amount":"402.00","rate":"144.500000","lcy_amount":"402.000000","narrative":"Gain on TR-3555-2026","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:02:05] local.INFO: ID present? YES  
[2026-07-28 20:02:05] local.INFO: ID value: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:02:05] local.INFO: ID empty? NO  
[2026-07-28 20:02:05] local.INFO: Attempting to find record with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:02:05] local.INFO: Record not found, creating new with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:02:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e5ede99a-d59e-417d-91a6-212e39f9a2d9, Credit, 402.00, 144.500000, 402.000000, Gain on TR-3555-2026, 55479f8d-6423-434a-b7f3-3c15a68bf098, 2026-07-24, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 55479f8d-6423-434a-b7f3-3c15a68bf098, 67b44293-55e6-41a5-883c-7d6a4dfea8ad, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:05, 2026-07-28 20:02:05))  
[2026-07-28 20:02:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:07] local.INFO: Model: Journal  
[2026-07-28 20:02:07] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:02:07] local.INFO: ID present? YES  
[2026-07-28 20:02:07] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:07] local.INFO: ID empty? NO  
[2026-07-28 20:02:07] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:07] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:07, 2026-07-28 20:02:07))  
[2026-07-28 20:02:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:13] local.INFO: Model: Journal  
[2026-07-28 20:02:13] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:02:13] local.INFO: ID present? YES  
[2026-07-28 20:02:13] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:13] local.INFO: ID empty? NO  
[2026-07-28 20:02:13] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:13] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:13, 2026-07-28 20:02:13))  
[2026-07-28 20:02:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:19] local.INFO: Model: Journal  
[2026-07-28 20:02:19] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:02:19] local.INFO: ID present? YES  
[2026-07-28 20:02:19] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:19] local.INFO: ID empty? NO  
[2026-07-28 20:02:19] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:19] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:19, 2026-07-28 20:02:19))  
[2026-07-28 20:02:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:25] local.INFO: Model: Journal  
[2026-07-28 20:02:25] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:02:25] local.INFO: ID present? YES  
[2026-07-28 20:02:25] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:25] local.INFO: ID empty? NO  
[2026-07-28 20:02:25] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:25] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:02:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:25, 2026-07-28 20:02:25))  
[2026-07-28 20:02:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:27] local.INFO: Model: Journal  
[2026-07-28 20:02:27] local.INFO: Data received: {"id":"e8d44fb7-442d-468a-b4ea-b323755aa8a0","type":"Credit","amount":"2125.00","rate":"6.000000","lcy_amount":"2125.000000","narrative":"Gain on TR-3576-2026","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 20:02:27] local.INFO: ID present? YES  
[2026-07-28 20:02:27] local.INFO: ID value: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:27] local.INFO: ID empty? NO  
[2026-07-28 20:02:27] local.INFO: Attempting to find record with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:27] local.INFO: Record not found, creating new with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e8d44fb7-442d-468a-b4ea-b323755aa8a0, Credit, 2125.00, 6.000000, 2125.000000, Gain on TR-3576-2026, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:27, 2026-07-28 20:02:27))  
[2026-07-28 20:02:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:33] local.INFO: Model: Journal  
[2026-07-28 20:02:33] local.INFO: Data received: {"id":"e8d44fb7-442d-468a-b4ea-b323755aa8a0","type":"Credit","amount":"2125.00","rate":"6.000000","lcy_amount":"2125.000000","narrative":"Gain on TR-3576-2026","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 20:02:33] local.INFO: ID present? YES  
[2026-07-28 20:02:33] local.INFO: ID value: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:33] local.INFO: ID empty? NO  
[2026-07-28 20:02:33] local.INFO: Attempting to find record with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:33] local.INFO: Record not found, creating new with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e8d44fb7-442d-468a-b4ea-b323755aa8a0, Credit, 2125.00, 6.000000, 2125.000000, Gain on TR-3576-2026, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:33, 2026-07-28 20:02:33))  
[2026-07-28 20:02:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:39] local.INFO: Model: Journal  
[2026-07-28 20:02:39] local.INFO: Data received: {"id":"e8d44fb7-442d-468a-b4ea-b323755aa8a0","type":"Credit","amount":"2125.00","rate":"6.000000","lcy_amount":"2125.000000","narrative":"Gain on TR-3576-2026","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 20:02:39] local.INFO: ID present? YES  
[2026-07-28 20:02:39] local.INFO: ID value: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:39] local.INFO: ID empty? NO  
[2026-07-28 20:02:39] local.INFO: Attempting to find record with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:39] local.INFO: Record not found, creating new with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e8d44fb7-442d-468a-b4ea-b323755aa8a0, Credit, 2125.00, 6.000000, 2125.000000, Gain on TR-3576-2026, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:39, 2026-07-28 20:02:39))  
[2026-07-28 20:02:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:45] local.INFO: Model: Journal  
[2026-07-28 20:02:45] local.INFO: Data received: {"id":"e8d44fb7-442d-468a-b4ea-b323755aa8a0","type":"Credit","amount":"2125.00","rate":"6.000000","lcy_amount":"2125.000000","narrative":"Gain on TR-3576-2026","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 20:02:45] local.INFO: ID present? YES  
[2026-07-28 20:02:45] local.INFO: ID value: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:45] local.INFO: ID empty? NO  
[2026-07-28 20:02:45] local.INFO: Attempting to find record with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:45] local.INFO: Record not found, creating new with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:02:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e8d44fb7-442d-468a-b4ea-b323755aa8a0, Credit, 2125.00, 6.000000, 2125.000000, Gain on TR-3576-2026, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, 2026-07-26, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 1af6b956-9cce-4c14-bd4d-5d44ade23b25, a3f54425-4198-4000-9bdb-8c5784fc098c, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:45, 2026-07-28 20:02:45))  
[2026-07-28 20:02:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:47] local.INFO: Model: Journal  
[2026-07-28 20:02:47] local.INFO: Data received: {"id":"e951049e-8e23-44c6-98d6-450d53146f84","type":"Credit","amount":"2400.00","rate":"0.040000","lcy_amount":"2400.000000","narrative":"Gain on TR-3594-2026","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:02:47] local.INFO: ID present? YES  
[2026-07-28 20:02:47] local.INFO: ID value: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:47] local.INFO: ID empty? NO  
[2026-07-28 20:02:47] local.INFO: Attempting to find record with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:47] local.INFO: Record not found, creating new with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e951049e-8e23-44c6-98d6-450d53146f84, Credit, 2400.00, 0.040000, 2400.000000, Gain on TR-3594-2026, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:47, 2026-07-28 20:02:47))  
[2026-07-28 20:02:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:53] local.INFO: Model: Journal  
[2026-07-28 20:02:53] local.INFO: Data received: {"id":"e951049e-8e23-44c6-98d6-450d53146f84","type":"Credit","amount":"2400.00","rate":"0.040000","lcy_amount":"2400.000000","narrative":"Gain on TR-3594-2026","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:02:53] local.INFO: ID present? YES  
[2026-07-28 20:02:53] local.INFO: ID value: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:53] local.INFO: ID empty? NO  
[2026-07-28 20:02:53] local.INFO: Attempting to find record with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:53] local.INFO: Record not found, creating new with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e951049e-8e23-44c6-98d6-450d53146f84, Credit, 2400.00, 0.040000, 2400.000000, Gain on TR-3594-2026, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:53, 2026-07-28 20:02:53))  
[2026-07-28 20:02:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:02:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:02:59] local.INFO: Model: Journal  
[2026-07-28 20:02:59] local.INFO: Data received: {"id":"e951049e-8e23-44c6-98d6-450d53146f84","type":"Credit","amount":"2400.00","rate":"0.040000","lcy_amount":"2400.000000","narrative":"Gain on TR-3594-2026","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:02:59] local.INFO: ID present? YES  
[2026-07-28 20:02:59] local.INFO: ID value: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:59] local.INFO: ID empty? NO  
[2026-07-28 20:02:59] local.INFO: Attempting to find record with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:59] local.INFO: Record not found, creating new with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:02:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e951049e-8e23-44c6-98d6-450d53146f84, Credit, 2400.00, 0.040000, 2400.000000, Gain on TR-3594-2026, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:02:59, 2026-07-28 20:02:59))  
[2026-07-28 20:02:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:06] local.INFO: Model: Journal  
[2026-07-28 20:03:06] local.INFO: Data received: {"id":"e951049e-8e23-44c6-98d6-450d53146f84","type":"Credit","amount":"2400.00","rate":"0.040000","lcy_amount":"2400.000000","narrative":"Gain on TR-3594-2026","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:03:06] local.INFO: ID present? YES  
[2026-07-28 20:03:06] local.INFO: ID value: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:03:06] local.INFO: ID empty? NO  
[2026-07-28 20:03:06] local.INFO: Attempting to find record with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:03:06] local.INFO: Record not found, creating new with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:03:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e951049e-8e23-44c6-98d6-450d53146f84, Credit, 2400.00, 0.040000, 2400.000000, Gain on TR-3594-2026, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 07b31533-d750-4d10-ad1a-0fbf0ee4249d, 292c0ea6-fbb1-4053-87bc-54c303f4d9b8, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:06, 2026-07-28 20:03:06))  
[2026-07-28 20:03:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:07] local.INFO: Model: Journal  
[2026-07-28 20:03:07] local.INFO: Data received: {"id":"e9634d61-10d6-4d32-ab98-d621cd7083d0","type":"Credit","amount":"32000.00","rate":"128.000000","lcy_amount":"32000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:03:07] local.INFO: ID present? YES  
[2026-07-28 20:03:07] local.INFO: ID value: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:07] local.INFO: ID empty? NO  
[2026-07-28 20:03:07] local.INFO: Attempting to find record with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:07] local.INFO: Record not found, creating new with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e9634d61-10d6-4d32-ab98-d621cd7083d0, Credit, 32000.00, 128.000000, 32000.000000, Buying TX: Funds out of cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:07, 2026-07-28 20:03:07))  
[2026-07-28 20:03:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:13] local.INFO: Model: Journal  
[2026-07-28 20:03:13] local.INFO: Data received: {"id":"e9634d61-10d6-4d32-ab98-d621cd7083d0","type":"Credit","amount":"32000.00","rate":"128.000000","lcy_amount":"32000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:03:13] local.INFO: ID present? YES  
[2026-07-28 20:03:13] local.INFO: ID value: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:13] local.INFO: ID empty? NO  
[2026-07-28 20:03:13] local.INFO: Attempting to find record with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:13] local.INFO: Record not found, creating new with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e9634d61-10d6-4d32-ab98-d621cd7083d0, Credit, 32000.00, 128.000000, 32000.000000, Buying TX: Funds out of cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:13, 2026-07-28 20:03:13))  
[2026-07-28 20:03:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:19] local.INFO: Model: Journal  
[2026-07-28 20:03:19] local.INFO: Data received: {"id":"e9634d61-10d6-4d32-ab98-d621cd7083d0","type":"Credit","amount":"32000.00","rate":"128.000000","lcy_amount":"32000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:03:19] local.INFO: ID present? YES  
[2026-07-28 20:03:19] local.INFO: ID value: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:19] local.INFO: ID empty? NO  
[2026-07-28 20:03:19] local.INFO: Attempting to find record with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:19] local.INFO: Record not found, creating new with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e9634d61-10d6-4d32-ab98-d621cd7083d0, Credit, 32000.00, 128.000000, 32000.000000, Buying TX: Funds out of cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:19, 2026-07-28 20:03:19))  
[2026-07-28 20:03:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:26] local.INFO: Model: Journal  
[2026-07-28 20:03:26] local.INFO: Data received: {"id":"e9634d61-10d6-4d32-ab98-d621cd7083d0","type":"Credit","amount":"32000.00","rate":"128.000000","lcy_amount":"32000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:03:26] local.INFO: ID present? YES  
[2026-07-28 20:03:26] local.INFO: ID value: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:26] local.INFO: ID empty? NO  
[2026-07-28 20:03:26] local.INFO: Attempting to find record with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:26] local.INFO: Record not found, creating new with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:03:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e9634d61-10d6-4d32-ab98-d621cd7083d0, Credit, 32000.00, 128.000000, 32000.000000, Buying TX: Funds out of cashbox, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:26, 2026-07-28 20:03:26))  
[2026-07-28 20:03:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:27] local.INFO: Model: Journal  
[2026-07-28 20:03:27] local.INFO: Data received: {"id":"e9cf41c9-65aa-4944-8458-6f40b6b13e44","type":"Debit","amount":"90.00","rate":null,"lcy_amount":"2893.500000","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a585bb0c-bc31-4fa9-9fd8-425489d39b13","transaction_id":null,"customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:27:00","updated_at":"2026-07-28 17:27:02"} 
[2026-07-28 20:03:27] local.INFO: ID present? YES  
[2026-07-28 20:03:27] local.INFO: ID value: e9cf41c9-65aa-4944-8458-6f40b6b13e44  
[2026-07-28 20:03:27] local.INFO: ID empty? NO  
[2026-07-28 20:03:27] local.INFO: Attempting to find record with ID: e9cf41c9-65aa-4944-8458-6f40b6b13e44  
[2026-07-28 20:03:27] local.INFO: Record not found, creating new with ID: e9cf41c9-65aa-4944-8458-6f40b6b13e44  
[2026-07-28 20:03:27] local.INFO: Created record: {"id":"e9cf41c9-65aa-4944-8458-6f40b6b13e44","type":"Debit","amount":"90.00","rate":null,"lcy_amount":"2893.500000","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a585bb0c-bc31-4fa9-9fd8-425489d39b13","transaction_id":null,"customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","updated_at":"2026-07-28T17:03:27.000000Z","created_at":"2026-07-28T17:03:27.000000Z","account":{"id":"a585bb0c-bc31-4fa9-9fd8-425489d39b13","name":"SAR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-SAR-000001","is_fx_account":"1","balance":90.0,"debit_total":90.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"f07eccc5-6190-495b-b9d0-8714a89519a7","teller_id":null,"customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-23T22:41:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:03:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:28] local.INFO: Model: Journal  
[2026-07-28 20:03:28] local.INFO: Data received: {"id":"ea4e1b80-b44f-4c05-9298-e95f969e944e","type":"Credit","amount":"300.00","rate":"100.000000","lcy_amount":"300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 20:03:28] local.INFO: ID present? YES  
[2026-07-28 20:03:28] local.INFO: ID value: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:28] local.INFO: ID empty? NO  
[2026-07-28 20:03:28] local.INFO: Attempting to find record with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:28] local.INFO: Record not found, creating new with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ea4e1b80-b44f-4c05-9298-e95f969e944e, Credit, 300.00, 100.000000, 300.000000, Buying TX: Funds out of cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:28, 2026-07-28 20:03:28))  
[2026-07-28 20:03:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:35] local.INFO: Model: Journal  
[2026-07-28 20:03:35] local.INFO: Data received: {"id":"ea4e1b80-b44f-4c05-9298-e95f969e944e","type":"Credit","amount":"300.00","rate":"100.000000","lcy_amount":"300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 20:03:35] local.INFO: ID present? YES  
[2026-07-28 20:03:35] local.INFO: ID value: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:35] local.INFO: ID empty? NO  
[2026-07-28 20:03:35] local.INFO: Attempting to find record with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:35] local.INFO: Record not found, creating new with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ea4e1b80-b44f-4c05-9298-e95f969e944e, Credit, 300.00, 100.000000, 300.000000, Buying TX: Funds out of cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:35, 2026-07-28 20:03:35))  
[2026-07-28 20:03:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:41] local.INFO: Model: Journal  
[2026-07-28 20:03:41] local.INFO: Data received: {"id":"ea4e1b80-b44f-4c05-9298-e95f969e944e","type":"Credit","amount":"300.00","rate":"100.000000","lcy_amount":"300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 20:03:41] local.INFO: ID present? YES  
[2026-07-28 20:03:41] local.INFO: ID value: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:41] local.INFO: ID empty? NO  
[2026-07-28 20:03:41] local.INFO: Attempting to find record with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:41] local.INFO: Record not found, creating new with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ea4e1b80-b44f-4c05-9298-e95f969e944e, Credit, 300.00, 100.000000, 300.000000, Buying TX: Funds out of cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:41, 2026-07-28 20:03:41))  
[2026-07-28 20:03:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:47] local.INFO: Model: Journal  
[2026-07-28 20:03:47] local.INFO: Data received: {"id":"ea4e1b80-b44f-4c05-9298-e95f969e944e","type":"Credit","amount":"300.00","rate":"100.000000","lcy_amount":"300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8aefda3e-ae1e-4808-af0e-52f0fa2f28e1","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 17:27:31","updated_at":"2026-07-18 17:27:31"} 
[2026-07-28 20:03:47] local.INFO: ID present? YES  
[2026-07-28 20:03:47] local.INFO: ID value: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:47] local.INFO: ID empty? NO  
[2026-07-28 20:03:47] local.INFO: Attempting to find record with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:47] local.INFO: Record not found, creating new with ID: ea4e1b80-b44f-4c05-9298-e95f969e944e  
[2026-07-28 20:03:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ea4e1b80-b44f-4c05-9298-e95f969e944e, Credit, 300.00, 100.000000, 300.000000, Buying TX: Funds out of cashbox, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 8aefda3e-ae1e-4808-af0e-52f0fa2f28e1, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:47, 2026-07-28 20:03:47))  
[2026-07-28 20:03:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:48] local.INFO: Model: Journal  
[2026-07-28 20:03:48] local.INFO: Data received: {"id":"ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 20:03:48] local.INFO: ID present? YES  
[2026-07-28 20:03:48] local.INFO: ID value: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:03:48] local.INFO: ID empty? NO  
[2026-07-28 20:03:48] local.INFO: Attempting to find record with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:03:48] local.INFO: Record not found, creating new with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:03:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:48, 2026-07-28 20:03:48))  
[2026-07-28 20:03:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:03:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:03:55] local.INFO: Model: Journal  
[2026-07-28 20:03:55] local.INFO: Data received: {"id":"ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 20:03:55] local.INFO: ID present? YES  
[2026-07-28 20:03:55] local.INFO: ID value: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:03:55] local.INFO: ID empty? NO  
[2026-07-28 20:03:55] local.INFO: Attempting to find record with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:03:55] local.INFO: Record not found, creating new with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:03:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:03:55, 2026-07-28 20:03:55))  
[2026-07-28 20:03:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:01] local.INFO: Model: Journal  
[2026-07-28 20:04:01] local.INFO: Data received: {"id":"ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 20:04:01] local.INFO: ID present? YES  
[2026-07-28 20:04:01] local.INFO: ID value: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:04:01] local.INFO: ID empty? NO  
[2026-07-28 20:04:01] local.INFO: Attempting to find record with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:04:01] local.INFO: Record not found, creating new with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:04:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:04:01, 2026-07-28 20:04:01))  
[2026-07-28 20:04:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:07] local.INFO: Model: Journal  
[2026-07-28 20:04:07] local.INFO: Data received: {"id":"ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"865e304e-db2e-47eb-a33a-155bde9c76d8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"865e304e-db2e-47eb-a33a-155bde9c76d8","customer_id":"e7358bee-1c51-4a53-b952-0daa0368ed99","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 11:37:50","updated_at":"2026-07-18 11:37:50"} 
[2026-07-28 20:04:07] local.INFO: ID present? YES  
[2026-07-28 20:04:07] local.INFO: ID value: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:04:07] local.INFO: ID empty? NO  
[2026-07-28 20:04:07] local.INFO: Attempting to find record with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:04:07] local.INFO: Record not found, creating new with ID: ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6  
[2026-07-28 20:04:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd33f00-b6be-4e3b-9bf1-39dbc2c0f6e6, Credit, 38250.00, 127.500000, 38250.000000, Buying TX: Funds out of cashbox, 865e304e-db2e-47eb-a33a-155bde9c76d8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 865e304e-db2e-47eb-a33a-155bde9c76d8, e7358bee-1c51-4a53-b952-0daa0368ed99, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:04:07, 2026-07-28 20:04:07))  
[2026-07-28 20:04:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:08] local.INFO: Model: Journal  
[2026-07-28 20:04:08] local.INFO: Data received: {"id":"ecd58edf-12ec-4b31-abf6-4be69402531a","type":"Debit","amount":"500.00","rate":"145.000000","lcy_amount":"75600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 20:04:08] local.INFO: ID present? YES  
[2026-07-28 20:04:08] local.INFO: ID value: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:08] local.INFO: ID empty? NO  
[2026-07-28 20:04:08] local.INFO: Attempting to find record with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:08] local.INFO: Record not found, creating new with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd58edf-12ec-4b31-abf6-4be69402531a, Debit, 500.00, 145.000000, 75600.000000, Buying TX: Funds into cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:04:08, 2026-07-28 20:04:08))  
[2026-07-28 20:04:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:15] local.INFO: Model: Journal  
[2026-07-28 20:04:15] local.INFO: Data received: {"id":"ecd58edf-12ec-4b31-abf6-4be69402531a","type":"Debit","amount":"500.00","rate":"145.000000","lcy_amount":"75600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 20:04:15] local.INFO: ID present? YES  
[2026-07-28 20:04:15] local.INFO: ID value: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:15] local.INFO: ID empty? NO  
[2026-07-28 20:04:15] local.INFO: Attempting to find record with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:15] local.INFO: Record not found, creating new with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd58edf-12ec-4b31-abf6-4be69402531a, Debit, 500.00, 145.000000, 75600.000000, Buying TX: Funds into cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:04:15, 2026-07-28 20:04:15))  
[2026-07-28 20:04:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:21] local.INFO: Model: Journal  
[2026-07-28 20:04:21] local.INFO: Data received: {"id":"ecd58edf-12ec-4b31-abf6-4be69402531a","type":"Debit","amount":"500.00","rate":"145.000000","lcy_amount":"75600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 20:04:21] local.INFO: ID present? YES  
[2026-07-28 20:04:21] local.INFO: ID value: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:21] local.INFO: ID empty? NO  
[2026-07-28 20:04:21] local.INFO: Attempting to find record with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:21] local.INFO: Record not found, creating new with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd58edf-12ec-4b31-abf6-4be69402531a, Debit, 500.00, 145.000000, 75600.000000, Buying TX: Funds into cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:04:21, 2026-07-28 20:04:21))  
[2026-07-28 20:04:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:27] local.INFO: Model: Journal  
[2026-07-28 20:04:27] local.INFO: Data received: {"id":"ecd58edf-12ec-4b31-abf6-4be69402531a","type":"Debit","amount":"500.00","rate":"145.000000","lcy_amount":"75600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f5c78979-5c0e-4a6e-995c-395d6598e395","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"f5c78979-5c0e-4a6e-995c-395d6598e395","customer_id":"29b19b2c-53d3-44eb-bd10-6ab7d58eca71","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 16:43:52","updated_at":"2026-07-18 16:43:52"} 
[2026-07-28 20:04:27] local.INFO: ID present? YES  
[2026-07-28 20:04:27] local.INFO: ID value: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:27] local.INFO: ID empty? NO  
[2026-07-28 20:04:27] local.INFO: Attempting to find record with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:27] local.INFO: Record not found, creating new with ID: ecd58edf-12ec-4b31-abf6-4be69402531a  
[2026-07-28 20:04:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (ecd58edf-12ec-4b31-abf6-4be69402531a, Debit, 500.00, 145.000000, 75600.000000, Buying TX: Funds into cashbox, f5c78979-5c0e-4a6e-995c-395d6598e395, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, f5c78979-5c0e-4a6e-995c-395d6598e395, 29b19b2c-53d3-44eb-bd10-6ab7d58eca71, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:04:27, 2026-07-28 20:04:27))  
[2026-07-28 20:04:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:29] local.INFO: Model: Journal  
[2026-07-28 20:04:29] local.INFO: Data received: {"id":"edc15826-ef70-4e6d-a892-683c05a45efb","type":"Debit","amount":"195.00","rate":"127.500000","lcy_amount":"25155.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:04:29] local.INFO: ID present? YES  
[2026-07-28 20:04:29] local.INFO: ID value: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:29] local.INFO: ID empty? NO  
[2026-07-28 20:04:29] local.INFO: Attempting to find record with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:29] local.INFO: Record not found, creating new with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (edc15826-ef70-4e6d-a892-683c05a45efb, Debit, 195.00, 127.500000, 25155.000000, Buying TX: Funds into cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:04:29, 2026-07-28 20:04:29))  
[2026-07-28 20:04:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:35] local.INFO: Model: Journal  
[2026-07-28 20:04:35] local.INFO: Data received: {"id":"edc15826-ef70-4e6d-a892-683c05a45efb","type":"Debit","amount":"195.00","rate":"127.500000","lcy_amount":"25155.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:04:35] local.INFO: ID present? YES  
[2026-07-28 20:04:35] local.INFO: ID value: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:35] local.INFO: ID empty? NO  
[2026-07-28 20:04:35] local.INFO: Attempting to find record with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:35] local.INFO: Record not found, creating new with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (edc15826-ef70-4e6d-a892-683c05a45efb, Debit, 195.00, 127.500000, 25155.000000, Buying TX: Funds into cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:04:35, 2026-07-28 20:04:35))  
[2026-07-28 20:04:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:41] local.INFO: Model: Journal  
[2026-07-28 20:04:41] local.INFO: Data received: {"id":"edc15826-ef70-4e6d-a892-683c05a45efb","type":"Debit","amount":"195.00","rate":"127.500000","lcy_amount":"25155.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:04:41] local.INFO: ID present? YES  
[2026-07-28 20:04:41] local.INFO: ID value: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:41] local.INFO: ID empty? NO  
[2026-07-28 20:04:41] local.INFO: Attempting to find record with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:41] local.INFO: Record not found, creating new with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (edc15826-ef70-4e6d-a892-683c05a45efb, Debit, 195.00, 127.500000, 25155.000000, Buying TX: Funds into cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:04:41, 2026-07-28 20:04:41))  
[2026-07-28 20:04:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:47] local.INFO: Model: Journal  
[2026-07-28 20:04:47] local.INFO: Data received: {"id":"edc15826-ef70-4e6d-a892-683c05a45efb","type":"Debit","amount":"195.00","rate":"127.500000","lcy_amount":"25155.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:04:47] local.INFO: ID present? YES  
[2026-07-28 20:04:47] local.INFO: ID value: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:47] local.INFO: ID empty? NO  
[2026-07-28 20:04:47] local.INFO: Attempting to find record with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:47] local.INFO: Record not found, creating new with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:04:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (edc15826-ef70-4e6d-a892-683c05a45efb, Debit, 195.00, 127.500000, 25155.000000, Buying TX: Funds into cashbox, e1ee1b1f-c458-4504-96f7-4fb32a820b68, 2026-07-20, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, e1ee1b1f-c458-4504-96f7-4fb32a820b68, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:04:47, 2026-07-28 20:04:47))  
[2026-07-28 20:04:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:49] local.INFO: Model: Journal  
[2026-07-28 20:04:49] local.INFO: Data received: {"id":"eea1289d-f79f-41dd-9a78-e9d4e61d6b4b","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:04:49] local.INFO: ID present? YES  
[2026-07-28 20:04:49] local.INFO: ID value: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:04:49] local.INFO: ID empty? NO  
[2026-07-28 20:04:49] local.INFO: Attempting to find record with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:04:49] local.INFO: Record not found, creating new with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:04:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (eea1289d-f79f-41dd-9a78-e9d4e61d6b4b, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:04:49, 2026-07-28 20:04:49))  
[2026-07-28 20:04:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:04:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:04:55] local.INFO: Model: Journal  
[2026-07-28 20:04:55] local.INFO: Data received: {"id":"eea1289d-f79f-41dd-9a78-e9d4e61d6b4b","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:04:55] local.INFO: ID present? YES  
[2026-07-28 20:04:55] local.INFO: ID value: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:04:55] local.INFO: ID empty? NO  
[2026-07-28 20:04:55] local.INFO: Attempting to find record with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:04:55] local.INFO: Record not found, creating new with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:04:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (eea1289d-f79f-41dd-9a78-e9d4e61d6b4b, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:04:55, 2026-07-28 20:04:55))  
[2026-07-28 20:04:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:01] local.INFO: Model: Journal  
[2026-07-28 20:05:01] local.INFO: Data received: {"id":"eea1289d-f79f-41dd-9a78-e9d4e61d6b4b","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:05:01] local.INFO: ID present? YES  
[2026-07-28 20:05:01] local.INFO: ID value: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:05:01] local.INFO: ID empty? NO  
[2026-07-28 20:05:01] local.INFO: Attempting to find record with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:05:01] local.INFO: Record not found, creating new with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:05:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (eea1289d-f79f-41dd-9a78-e9d4e61d6b4b, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:01, 2026-07-28 20:05:01))  
[2026-07-28 20:05:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:07] local.INFO: Model: Journal  
[2026-07-28 20:05:07] local.INFO: Data received: {"id":"eea1289d-f79f-41dd-9a78-e9d4e61d6b4b","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:05:07] local.INFO: ID present? YES  
[2026-07-28 20:05:07] local.INFO: ID value: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:05:07] local.INFO: ID empty? NO  
[2026-07-28 20:05:07] local.INFO: Attempting to find record with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:05:07] local.INFO: Record not found, creating new with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:05:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (eea1289d-f79f-41dd-9a78-e9d4e61d6b4b, Credit, 58000.00, 145.000000, 58000.000000, Buying TX: Funds out of cashbox, c70f0e53-b380-41e2-b177-7eaa3789966b, 2026-07-20, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, c70f0e53-b380-41e2-b177-7eaa3789966b, a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:07, 2026-07-28 20:05:07))  
[2026-07-28 20:05:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:09] local.INFO: Model: Journal  
[2026-07-28 20:05:09] local.INFO: Data received: {"id":"f36f5075-8ae7-48e8-a415-0c0bc32e5fe4","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:05:09] local.INFO: ID present? YES  
[2026-07-28 20:05:09] local.INFO: ID value: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:09] local.INFO: ID empty? NO  
[2026-07-28 20:05:09] local.INFO: Attempting to find record with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:09] local.INFO: Record not found, creating new with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f36f5075-8ae7-48e8-a415-0c0bc32e5fe4, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:09, 2026-07-28 20:05:09))  
[2026-07-28 20:05:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:15] local.INFO: Model: Journal  
[2026-07-28 20:05:15] local.INFO: Data received: {"id":"f36f5075-8ae7-48e8-a415-0c0bc32e5fe4","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:05:15] local.INFO: ID present? YES  
[2026-07-28 20:05:15] local.INFO: ID value: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:15] local.INFO: ID empty? NO  
[2026-07-28 20:05:15] local.INFO: Attempting to find record with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:15] local.INFO: Record not found, creating new with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f36f5075-8ae7-48e8-a415-0c0bc32e5fe4, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:15, 2026-07-28 20:05:15))  
[2026-07-28 20:05:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:21] local.INFO: Model: Journal  
[2026-07-28 20:05:21] local.INFO: Data received: {"id":"f36f5075-8ae7-48e8-a415-0c0bc32e5fe4","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:05:21] local.INFO: ID present? YES  
[2026-07-28 20:05:21] local.INFO: ID value: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:21] local.INFO: ID empty? NO  
[2026-07-28 20:05:21] local.INFO: Attempting to find record with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:21] local.INFO: Record not found, creating new with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f36f5075-8ae7-48e8-a415-0c0bc32e5fe4, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:21, 2026-07-28 20:05:21))  
[2026-07-28 20:05:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:27] local.INFO: Model: Journal  
[2026-07-28 20:05:27] local.INFO: Data received: {"id":"f36f5075-8ae7-48e8-a415-0c0bc32e5fe4","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:05:27] local.INFO: ID present? YES  
[2026-07-28 20:05:27] local.INFO: ID value: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:27] local.INFO: ID empty? NO  
[2026-07-28 20:05:27] local.INFO: Attempting to find record with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:27] local.INFO: Record not found, creating new with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:05:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f36f5075-8ae7-48e8-a415-0c0bc32e5fe4, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, 6c3bca3d-2e54-4391-b548-fae9306f4773, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 6c3bca3d-2e54-4391-b548-fae9306f4773, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:27, 2026-07-28 20:05:27))  
[2026-07-28 20:05:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:29] local.INFO: Model: Journal  
[2026-07-28 20:05:29] local.INFO: Data received: {"id":"f4bf4ce0-9f92-4a10-9f8a-3d1523233c36","type":"Debit","amount":"112.50","rate":"150.700000","lcy_amount":"112.500000","narrative":"Loss on TR-3598-2026","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:05:29] local.INFO: ID present? YES  
[2026-07-28 20:05:29] local.INFO: ID value: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:29] local.INFO: ID empty? NO  
[2026-07-28 20:05:29] local.INFO: Attempting to find record with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:29] local.INFO: Record not found, creating new with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f4bf4ce0-9f92-4a10-9f8a-3d1523233c36, Debit, 112.50, 150.700000, 112.500000, Loss on TR-3598-2026, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:29, 2026-07-28 20:05:29))  
[2026-07-28 20:05:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:35] local.INFO: Model: Journal  
[2026-07-28 20:05:35] local.INFO: Data received: {"id":"f4bf4ce0-9f92-4a10-9f8a-3d1523233c36","type":"Debit","amount":"112.50","rate":"150.700000","lcy_amount":"112.500000","narrative":"Loss on TR-3598-2026","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:05:35] local.INFO: ID present? YES  
[2026-07-28 20:05:35] local.INFO: ID value: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:35] local.INFO: ID empty? NO  
[2026-07-28 20:05:35] local.INFO: Attempting to find record with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:35] local.INFO: Record not found, creating new with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f4bf4ce0-9f92-4a10-9f8a-3d1523233c36, Debit, 112.50, 150.700000, 112.500000, Loss on TR-3598-2026, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:35, 2026-07-28 20:05:35))  
[2026-07-28 20:05:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:41] local.INFO: Model: Journal  
[2026-07-28 20:05:41] local.INFO: Data received: {"id":"f4bf4ce0-9f92-4a10-9f8a-3d1523233c36","type":"Debit","amount":"112.50","rate":"150.700000","lcy_amount":"112.500000","narrative":"Loss on TR-3598-2026","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:05:41] local.INFO: ID present? YES  
[2026-07-28 20:05:41] local.INFO: ID value: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:41] local.INFO: ID empty? NO  
[2026-07-28 20:05:41] local.INFO: Attempting to find record with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:41] local.INFO: Record not found, creating new with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f4bf4ce0-9f92-4a10-9f8a-3d1523233c36, Debit, 112.50, 150.700000, 112.500000, Loss on TR-3598-2026, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:41, 2026-07-28 20:05:41))  
[2026-07-28 20:05:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:48] local.INFO: Model: Journal  
[2026-07-28 20:05:48] local.INFO: Data received: {"id":"f4bf4ce0-9f92-4a10-9f8a-3d1523233c36","type":"Debit","amount":"112.50","rate":"150.700000","lcy_amount":"112.500000","narrative":"Loss on TR-3598-2026","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:05:48] local.INFO: ID present? YES  
[2026-07-28 20:05:48] local.INFO: ID value: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:48] local.INFO: ID empty? NO  
[2026-07-28 20:05:48] local.INFO: Attempting to find record with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:48] local.INFO: Record not found, creating new with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:05:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f4bf4ce0-9f92-4a10-9f8a-3d1523233c36, Debit, 112.50, 150.700000, 112.500000, Loss on TR-3598-2026, 7daef726-6615-42ef-914a-f39cb5118ffb, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 7daef726-6615-42ef-914a-f39cb5118ffb, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:48, 2026-07-28 20:05:48))  
[2026-07-28 20:05:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:49] local.INFO: Model: Journal  
[2026-07-28 20:05:49] local.INFO: Data received: {"id":"f589edff-1b4d-4530-89ea-198be5bc2dcf","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:05:49] local.INFO: ID present? YES  
[2026-07-28 20:05:49] local.INFO: ID value: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:05:49] local.INFO: ID empty? NO  
[2026-07-28 20:05:49] local.INFO: Attempting to find record with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:05:49] local.INFO: Record not found, creating new with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:05:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f589edff-1b4d-4530-89ea-198be5bc2dcf, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:49, 2026-07-28 20:05:49))  
[2026-07-28 20:05:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:05:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:05:55] local.INFO: Model: Journal  
[2026-07-28 20:05:55] local.INFO: Data received: {"id":"f589edff-1b4d-4530-89ea-198be5bc2dcf","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:05:55] local.INFO: ID present? YES  
[2026-07-28 20:05:55] local.INFO: ID value: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:05:55] local.INFO: ID empty? NO  
[2026-07-28 20:05:55] local.INFO: Attempting to find record with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:05:55] local.INFO: Record not found, creating new with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:05:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f589edff-1b4d-4530-89ea-198be5bc2dcf, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:05:55, 2026-07-28 20:05:55))  
[2026-07-28 20:05:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:01] local.INFO: Model: Journal  
[2026-07-28 20:06:01] local.INFO: Data received: {"id":"f589edff-1b4d-4530-89ea-198be5bc2dcf","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:06:01] local.INFO: ID present? YES  
[2026-07-28 20:06:01] local.INFO: ID value: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:06:01] local.INFO: ID empty? NO  
[2026-07-28 20:06:01] local.INFO: Attempting to find record with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:06:01] local.INFO: Record not found, creating new with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:06:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f589edff-1b4d-4530-89ea-198be5bc2dcf, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:01, 2026-07-28 20:06:01))  
[2026-07-28 20:06:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:08] local.INFO: Model: Journal  
[2026-07-28 20:06:08] local.INFO: Data received: {"id":"f589edff-1b4d-4530-89ea-198be5bc2dcf","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:06:08] local.INFO: ID present? YES  
[2026-07-28 20:06:08] local.INFO: ID value: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:06:08] local.INFO: ID empty? NO  
[2026-07-28 20:06:08] local.INFO: Attempting to find record with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:06:08] local.INFO: Record not found, creating new with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:06:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f589edff-1b4d-4530-89ea-198be5bc2dcf, Credit, 7250.00, 145.000000, 7250.000000, Buying TX: Funds out of cashbox, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 2026-07-24, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05, 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:08, 2026-07-28 20:06:08))  
[2026-07-28 20:06:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:09] local.INFO: Model: Journal  
[2026-07-28 20:06:09] local.INFO: Data received: {"id":"f67b744a-7e94-486b-9bb6-846bc726d306","type":"Credit","amount":"250.00","rate":"128.000000","lcy_amount":"250.000000","narrative":"Gain on TR-3596-2026","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:06:09] local.INFO: ID present? YES  
[2026-07-28 20:06:09] local.INFO: ID value: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:09] local.INFO: ID empty? NO  
[2026-07-28 20:06:09] local.INFO: Attempting to find record with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:09] local.INFO: Record not found, creating new with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f67b744a-7e94-486b-9bb6-846bc726d306, Credit, 250.00, 128.000000, 250.000000, Gain on TR-3596-2026, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:09, 2026-07-28 20:06:09))  
[2026-07-28 20:06:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:15] local.INFO: Model: Journal  
[2026-07-28 20:06:15] local.INFO: Data received: {"id":"f67b744a-7e94-486b-9bb6-846bc726d306","type":"Credit","amount":"250.00","rate":"128.000000","lcy_amount":"250.000000","narrative":"Gain on TR-3596-2026","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:06:15] local.INFO: ID present? YES  
[2026-07-28 20:06:15] local.INFO: ID value: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:15] local.INFO: ID empty? NO  
[2026-07-28 20:06:15] local.INFO: Attempting to find record with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:15] local.INFO: Record not found, creating new with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f67b744a-7e94-486b-9bb6-846bc726d306, Credit, 250.00, 128.000000, 250.000000, Gain on TR-3596-2026, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:15, 2026-07-28 20:06:15))  
[2026-07-28 20:06:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:21] local.INFO: Model: Journal  
[2026-07-28 20:06:21] local.INFO: Data received: {"id":"f67b744a-7e94-486b-9bb6-846bc726d306","type":"Credit","amount":"250.00","rate":"128.000000","lcy_amount":"250.000000","narrative":"Gain on TR-3596-2026","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:06:21] local.INFO: ID present? YES  
[2026-07-28 20:06:21] local.INFO: ID value: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:21] local.INFO: ID empty? NO  
[2026-07-28 20:06:21] local.INFO: Attempting to find record with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:21] local.INFO: Record not found, creating new with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f67b744a-7e94-486b-9bb6-846bc726d306, Credit, 250.00, 128.000000, 250.000000, Gain on TR-3596-2026, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:21, 2026-07-28 20:06:21))  
[2026-07-28 20:06:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:28] local.INFO: Model: Journal  
[2026-07-28 20:06:28] local.INFO: Data received: {"id":"f67b744a-7e94-486b-9bb6-846bc726d306","type":"Credit","amount":"250.00","rate":"128.000000","lcy_amount":"250.000000","narrative":"Gain on TR-3596-2026","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:06:28] local.INFO: ID present? YES  
[2026-07-28 20:06:28] local.INFO: ID value: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:28] local.INFO: ID empty? NO  
[2026-07-28 20:06:28] local.INFO: Attempting to find record with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:28] local.INFO: Record not found, creating new with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:06:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f67b744a-7e94-486b-9bb6-846bc726d306, Credit, 250.00, 128.000000, 250.000000, Gain on TR-3596-2026, c89da7a3-245c-4de8-92af-26e4464cf322, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, c89da7a3-245c-4de8-92af-26e4464cf322, 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:28, 2026-07-28 20:06:28))  
[2026-07-28 20:06:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:29] local.INFO: Model: Journal  
[2026-07-28 20:06:29] local.INFO: Data received: {"id":"f8e7578c-1846-44f9-8315-3cdaa19e0e97","type":"Credit","amount":"2900.00","rate":"145.000000","lcy_amount":"2900.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 20:06:29] local.INFO: ID present? YES  
[2026-07-28 20:06:29] local.INFO: ID value: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:29] local.INFO: ID empty? NO  
[2026-07-28 20:06:29] local.INFO: Attempting to find record with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:29] local.INFO: Record not found, creating new with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f8e7578c-1846-44f9-8315-3cdaa19e0e97, Credit, 2900.00, 145.000000, 2900.000000, Buying TX: Funds out of cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:29, 2026-07-28 20:06:29))  
[2026-07-28 20:06:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:35] local.INFO: Model: Journal  
[2026-07-28 20:06:35] local.INFO: Data received: {"id":"f8e7578c-1846-44f9-8315-3cdaa19e0e97","type":"Credit","amount":"2900.00","rate":"145.000000","lcy_amount":"2900.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 20:06:35] local.INFO: ID present? YES  
[2026-07-28 20:06:35] local.INFO: ID value: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:35] local.INFO: ID empty? NO  
[2026-07-28 20:06:35] local.INFO: Attempting to find record with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:35] local.INFO: Record not found, creating new with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f8e7578c-1846-44f9-8315-3cdaa19e0e97, Credit, 2900.00, 145.000000, 2900.000000, Buying TX: Funds out of cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:35, 2026-07-28 20:06:35))  
[2026-07-28 20:06:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:41] local.INFO: Model: Journal  
[2026-07-28 20:06:41] local.INFO: Data received: {"id":"f8e7578c-1846-44f9-8315-3cdaa19e0e97","type":"Credit","amount":"2900.00","rate":"145.000000","lcy_amount":"2900.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 20:06:41] local.INFO: ID present? YES  
[2026-07-28 20:06:41] local.INFO: ID value: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:41] local.INFO: ID empty? NO  
[2026-07-28 20:06:41] local.INFO: Attempting to find record with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:41] local.INFO: Record not found, creating new with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f8e7578c-1846-44f9-8315-3cdaa19e0e97, Credit, 2900.00, 145.000000, 2900.000000, Buying TX: Funds out of cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:41, 2026-07-28 20:06:41))  
[2026-07-28 20:06:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:48] local.INFO: Model: Journal  
[2026-07-28 20:06:48] local.INFO: Data received: {"id":"f8e7578c-1846-44f9-8315-3cdaa19e0e97","type":"Credit","amount":"2900.00","rate":"145.000000","lcy_amount":"2900.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"71875449-7e03-450d-b0d6-b1e57eebfdc8","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"71875449-7e03-450d-b0d6-b1e57eebfdc8","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:57:50","updated_at":"2026-07-18 12:57:50"} 
[2026-07-28 20:06:48] local.INFO: ID present? YES  
[2026-07-28 20:06:48] local.INFO: ID value: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:48] local.INFO: ID empty? NO  
[2026-07-28 20:06:48] local.INFO: Attempting to find record with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:48] local.INFO: Record not found, creating new with ID: f8e7578c-1846-44f9-8315-3cdaa19e0e97  
[2026-07-28 20:06:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f8e7578c-1846-44f9-8315-3cdaa19e0e97, Credit, 2900.00, 145.000000, 2900.000000, Buying TX: Funds out of cashbox, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 71875449-7e03-450d-b0d6-b1e57eebfdc8, 15674561-78b7-45dd-9fb7-20dae30f7a89, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:06:48, 2026-07-28 20:06:48))  
[2026-07-28 20:06:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:49] local.INFO: Model: Journal  
[2026-07-28 20:06:49] local.INFO: Data received: {"id":"f9fb4650-c16a-45b2-bd44-6d7f3df19dda","type":"Debit","amount":"20.00","rate":"127.500000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:06:49] local.INFO: ID present? YES  
[2026-07-28 20:06:49] local.INFO: ID value: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:06:49] local.INFO: ID empty? NO  
[2026-07-28 20:06:49] local.INFO: Attempting to find record with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:06:49] local.INFO: Record not found, creating new with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:06:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f9fb4650-c16a-45b2-bd44-6d7f3df19dda, Debit, 20.00, 127.500000, 2580.000000, Buying TX: Funds into cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:06:49, 2026-07-28 20:06:49))  
[2026-07-28 20:06:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:06:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:06:55] local.INFO: Model: Journal  
[2026-07-28 20:06:55] local.INFO: Data received: {"id":"f9fb4650-c16a-45b2-bd44-6d7f3df19dda","type":"Debit","amount":"20.00","rate":"127.500000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:06:55] local.INFO: ID present? YES  
[2026-07-28 20:06:55] local.INFO: ID value: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:06:55] local.INFO: ID empty? NO  
[2026-07-28 20:06:55] local.INFO: Attempting to find record with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:06:55] local.INFO: Record not found, creating new with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:06:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f9fb4650-c16a-45b2-bd44-6d7f3df19dda, Debit, 20.00, 127.500000, 2580.000000, Buying TX: Funds into cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:06:55, 2026-07-28 20:06:55))  
[2026-07-28 20:06:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:01] local.INFO: Model: Journal  
[2026-07-28 20:07:01] local.INFO: Data received: {"id":"f9fb4650-c16a-45b2-bd44-6d7f3df19dda","type":"Debit","amount":"20.00","rate":"127.500000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:07:01] local.INFO: ID present? YES  
[2026-07-28 20:07:01] local.INFO: ID value: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:07:01] local.INFO: ID empty? NO  
[2026-07-28 20:07:01] local.INFO: Attempting to find record with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:07:01] local.INFO: Record not found, creating new with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:07:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f9fb4650-c16a-45b2-bd44-6d7f3df19dda, Debit, 20.00, 127.500000, 2580.000000, Buying TX: Funds into cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:07:01, 2026-07-28 20:07:01))  
[2026-07-28 20:07:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:08] local.INFO: Model: Journal  
[2026-07-28 20:07:08] local.INFO: Data received: {"id":"f9fb4650-c16a-45b2-bd44-6d7f3df19dda","type":"Debit","amount":"20.00","rate":"127.500000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:07:08] local.INFO: ID present? YES  
[2026-07-28 20:07:08] local.INFO: ID value: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:07:08] local.INFO: ID empty? NO  
[2026-07-28 20:07:08] local.INFO: Attempting to find record with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:07:08] local.INFO: Record not found, creating new with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:07:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f9fb4650-c16a-45b2-bd44-6d7f3df19dda, Debit, 20.00, 127.500000, 2580.000000, Buying TX: Funds into cashbox, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, 2026-07-24, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2, aa50300a-f29f-4cfc-b42a-dd5f474f8b5f, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:07:08, 2026-07-28 20:07:08))  
[2026-07-28 20:07:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:09] local.INFO: Model: Journal  
[2026-07-28 20:07:09] local.INFO: Data received: {"id":"fac1d7ee-fd68-4ee0-b740-5239ee0d089c","type":"Debit","amount":"20.00","rate":"125.000000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 20:07:09] local.INFO: ID present? YES  
[2026-07-28 20:07:09] local.INFO: ID value: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:09] local.INFO: ID empty? NO  
[2026-07-28 20:07:09] local.INFO: Attempting to find record with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:09] local.INFO: Record not found, creating new with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac1d7ee-fd68-4ee0-b740-5239ee0d089c, Debit, 20.00, 125.000000, 2580.000000, Buying TX: Funds into cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:07:09, 2026-07-28 20:07:09))  
[2026-07-28 20:07:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:15] local.INFO: Model: Journal  
[2026-07-28 20:07:15] local.INFO: Data received: {"id":"fac1d7ee-fd68-4ee0-b740-5239ee0d089c","type":"Debit","amount":"20.00","rate":"125.000000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 20:07:15] local.INFO: ID present? YES  
[2026-07-28 20:07:15] local.INFO: ID value: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:15] local.INFO: ID empty? NO  
[2026-07-28 20:07:15] local.INFO: Attempting to find record with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:15] local.INFO: Record not found, creating new with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac1d7ee-fd68-4ee0-b740-5239ee0d089c, Debit, 20.00, 125.000000, 2580.000000, Buying TX: Funds into cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:07:15, 2026-07-28 20:07:15))  
[2026-07-28 20:07:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:21] local.INFO: Model: Journal  
[2026-07-28 20:07:21] local.INFO: Data received: {"id":"fac1d7ee-fd68-4ee0-b740-5239ee0d089c","type":"Debit","amount":"20.00","rate":"125.000000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 20:07:21] local.INFO: ID present? YES  
[2026-07-28 20:07:21] local.INFO: ID value: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:21] local.INFO: ID empty? NO  
[2026-07-28 20:07:21] local.INFO: Attempting to find record with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:21] local.INFO: Record not found, creating new with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac1d7ee-fd68-4ee0-b740-5239ee0d089c, Debit, 20.00, 125.000000, 2580.000000, Buying TX: Funds into cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:07:21, 2026-07-28 20:07:21))  
[2026-07-28 20:07:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:28] local.INFO: Model: Journal  
[2026-07-28 20:07:28] local.INFO: Data received: {"id":"fac1d7ee-fd68-4ee0-b740-5239ee0d089c","type":"Debit","amount":"20.00","rate":"125.000000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"716a5415-00b0-4791-aad3-896e432a8fbe","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"716a5415-00b0-4791-aad3-896e432a8fbe","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-18 16:36:28","updated_at":"2026-07-18 16:36:28"} 
[2026-07-28 20:07:28] local.INFO: ID present? YES  
[2026-07-28 20:07:28] local.INFO: ID value: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:28] local.INFO: ID empty? NO  
[2026-07-28 20:07:28] local.INFO: Attempting to find record with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:28] local.INFO: Record not found, creating new with ID: fac1d7ee-fd68-4ee0-b740-5239ee0d089c  
[2026-07-28 20:07:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac1d7ee-fd68-4ee0-b740-5239ee0d089c, Debit, 20.00, 125.000000, 2580.000000, Buying TX: Funds into cashbox, 716a5415-00b0-4791-aad3-896e432a8fbe, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 716a5415-00b0-4791-aad3-896e432a8fbe, 0d77ae98-f040-46ea-b8fc-12743d6f784c, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-07-28 20:07:28, 2026-07-28 20:07:28))  
[2026-07-28 20:07:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:29] local.INFO: Model: Journal  
[2026-07-28 20:07:29] local.INFO: Data received: {"id":"fac3252d-8cc9-4158-9e82-2777613aca24","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 20:07:29] local.INFO: ID present? YES  
[2026-07-28 20:07:29] local.INFO: ID value: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:29] local.INFO: ID empty? NO  
[2026-07-28 20:07:29] local.INFO: Attempting to find record with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:29] local.INFO: Record not found, creating new with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac3252d-8cc9-4158-9e82-2777613aca24, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:07:29, 2026-07-28 20:07:29))  
[2026-07-28 20:07:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:35] local.INFO: Model: Journal  
[2026-07-28 20:07:35] local.INFO: Data received: {"id":"fac3252d-8cc9-4158-9e82-2777613aca24","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 20:07:35] local.INFO: ID present? YES  
[2026-07-28 20:07:35] local.INFO: ID value: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:35] local.INFO: ID empty? NO  
[2026-07-28 20:07:35] local.INFO: Attempting to find record with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:35] local.INFO: Record not found, creating new with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac3252d-8cc9-4158-9e82-2777613aca24, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:07:35, 2026-07-28 20:07:35))  
[2026-07-28 20:07:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:41] local.INFO: Model: Journal  
[2026-07-28 20:07:41] local.INFO: Data received: {"id":"fac3252d-8cc9-4158-9e82-2777613aca24","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 20:07:41] local.INFO: ID present? YES  
[2026-07-28 20:07:41] local.INFO: ID value: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:41] local.INFO: ID empty? NO  
[2026-07-28 20:07:41] local.INFO: Attempting to find record with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:41] local.INFO: Record not found, creating new with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac3252d-8cc9-4158-9e82-2777613aca24, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:07:41, 2026-07-28 20:07:41))  
[2026-07-28 20:07:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:48] local.INFO: Model: Journal  
[2026-07-28 20:07:48] local.INFO: Data received: {"id":"fac3252d-8cc9-4158-9e82-2777613aca24","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","date":"2026-07-18","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e34a1c7c-e3e0-4e04-891d-1c61fe5adf79","customer_id":"0b05f32a-cb9e-4863-a0b9-ce1d712f24a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-18 12:18:41","updated_at":"2026-07-18 12:18:41"} 
[2026-07-28 20:07:48] local.INFO: ID present? YES  
[2026-07-28 20:07:48] local.INFO: ID value: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:48] local.INFO: ID empty? NO  
[2026-07-28 20:07:48] local.INFO: Attempting to find record with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:48] local.INFO: Record not found, creating new with ID: fac3252d-8cc9-4158-9e82-2777613aca24  
[2026-07-28 20:07:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fac3252d-8cc9-4158-9e82-2777613aca24, Credit, 43500.00, 145.000000, 43500.000000, Buying TX: Funds out of cashbox, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 2026-07-18, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, e34a1c7c-e3e0-4e04-891d-1c61fe5adf79, 0b05f32a-cb9e-4863-a0b9-ce1d712f24a0, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:07:48, 2026-07-28 20:07:48))  
[2026-07-28 20:07:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:49] local.INFO: Model: Journal  
[2026-07-28 20:07:49] local.INFO: Data received: {"id":"fd614268-1230-4bb7-aa60-a74993ae20de","type":"Debit","amount":"100.00","rate":"146.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 20:07:49] local.INFO: ID present? YES  
[2026-07-28 20:07:49] local.INFO: ID value: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:07:49] local.INFO: ID empty? NO  
[2026-07-28 20:07:49] local.INFO: Attempting to find record with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:07:49] local.INFO: Record not found, creating new with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:07:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fd614268-1230-4bb7-aa60-a74993ae20de, Debit, 100.00, 146.000000, 15120.000000, Buying TX: Funds into cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:07:49, 2026-07-28 20:07:49))  
[2026-07-28 20:07:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:07:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:07:55] local.INFO: Model: Journal  
[2026-07-28 20:07:55] local.INFO: Data received: {"id":"fd614268-1230-4bb7-aa60-a74993ae20de","type":"Debit","amount":"100.00","rate":"146.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 20:07:55] local.INFO: ID present? YES  
[2026-07-28 20:07:55] local.INFO: ID value: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:07:55] local.INFO: ID empty? NO  
[2026-07-28 20:07:55] local.INFO: Attempting to find record with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:07:55] local.INFO: Record not found, creating new with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:07:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fd614268-1230-4bb7-aa60-a74993ae20de, Debit, 100.00, 146.000000, 15120.000000, Buying TX: Funds into cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:07:55, 2026-07-28 20:07:55))  
[2026-07-28 20:07:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:08:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:08:01] local.INFO: Model: Journal  
[2026-07-28 20:08:01] local.INFO: Data received: {"id":"fd614268-1230-4bb7-aa60-a74993ae20de","type":"Debit","amount":"100.00","rate":"146.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 20:08:01] local.INFO: ID present? YES  
[2026-07-28 20:08:01] local.INFO: ID value: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:08:01] local.INFO: ID empty? NO  
[2026-07-28 20:08:01] local.INFO: Attempting to find record with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:08:01] local.INFO: Record not found, creating new with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:08:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fd614268-1230-4bb7-aa60-a74993ae20de, Debit, 100.00, 146.000000, 15120.000000, Buying TX: Funds into cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:08:01, 2026-07-28 20:08:01))  
[2026-07-28 20:08:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:08:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:08:08] local.INFO: Model: Journal  
[2026-07-28 20:08:08] local.INFO: Data received: {"id":"fd614268-1230-4bb7-aa60-a74993ae20de","type":"Debit","amount":"100.00","rate":"146.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"10905695-9c55-435d-958c-17a0042f0c7b","date":"2026-07-18","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"10905695-9c55-435d-958c-17a0042f0c7b","customer_id":"c7069620-273b-470c-ae56-33eec83def25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-18 14:24:35","updated_at":"2026-07-18 14:24:35"} 
[2026-07-28 20:08:08] local.INFO: ID present? YES  
[2026-07-28 20:08:08] local.INFO: ID value: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:08:08] local.INFO: ID empty? NO  
[2026-07-28 20:08:08] local.INFO: Attempting to find record with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:08:08] local.INFO: Record not found, creating new with ID: fd614268-1230-4bb7-aa60-a74993ae20de  
[2026-07-28 20:08:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (fd614268-1230-4bb7-aa60-a74993ae20de, Debit, 100.00, 146.000000, 15120.000000, Buying TX: Funds into cashbox, 10905695-9c55-435d-958c-17a0042f0c7b, 2026-07-18, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 10905695-9c55-435d-958c-17a0042f0c7b, c7069620-273b-470c-ae56-33eec83def25, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-28 20:08:08, 2026-07-28 20:08:08))  
[2026-07-28 20:08:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:17:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:12] local.INFO: Model: Customer  
[2026-07-28 20:17:12] local.INFO: Data received: {"id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","first_name":"RAFAL","last_name":"SMALKOWSKI","sur_name":"undefined","phone":"707634213","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"22FK48626","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-21 17:40:08","updated_at":"2026-07-24 00:38:43"} 
[2026-07-28 20:17:12] local.INFO: ID present? YES  
[2026-07-28 20:17:12] local.INFO: ID value: 01e97b5e-0b84-4371-a9a4-b453a56ab660  
[2026-07-28 20:17:12] local.INFO: ID empty? NO  
[2026-07-28 20:17:12] local.INFO: Attempting to find record with ID: 01e97b5e-0b84-4371-a9a4-b453a56ab660  
[2026-07-28 20:17:12] local.INFO: Record not found, creating new with ID: 01e97b5e-0b84-4371-a9a4-b453a56ab660  
[2026-07-28 20:17:12] local.INFO: Created record: {"id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","first_name":"RAFAL","last_name":"SMALKOWSKI","sur_name":"undefined","phone":"707634213","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"22FK48626","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:12.000000Z","created_at":"2026-07-28T17:17:12.000000Z"} 
[2026-07-28 20:17:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:14] local.INFO: Model: Customer  
[2026-07-28 20:17:14] local.INFO: Data received: {"id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","first_name":"JAMES","last_name":"MUGOCHOKU","sur_name":null,"phone":"721817797","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"8649892","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-28 13:47:22","updated_at":"2026-07-28 14:00:44"} 
[2026-07-28 20:17:14] local.INFO: ID present? YES  
[2026-07-28 20:17:14] local.INFO: ID value: 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f  
[2026-07-28 20:17:14] local.INFO: ID empty? NO  
[2026-07-28 20:17:14] local.INFO: Attempting to find record with ID: 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f  
[2026-07-28 20:17:14] local.INFO: Record not found, creating new with ID: 0377bdc7-543a-4a1f-8d55-0f6ba3d1948f  
[2026-07-28 20:17:14] local.INFO: Created record: {"id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","first_name":"JAMES","last_name":"MUGOCHOKU","sur_name":null,"phone":"721817797","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"8649892","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:14.000000Z","created_at":"2026-07-28T17:17:14.000000Z"} 
[2026-07-28 20:17:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:15] local.INFO: Model: Customer  
[2026-07-28 20:17:15] local.INFO: Data received: {"id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","first_name":"JELENA","last_name":"GLIZIJAN","sur_name":null,"phone":"722441523","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"B4820942","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-24 14:56:25","updated_at":"2026-07-24 15:01:13"} 
[2026-07-28 20:17:15] local.INFO: ID present? YES  
[2026-07-28 20:17:15] local.INFO: ID value: 0cb527ce-dc0f-4362-a4ac-df5850718eda  
[2026-07-28 20:17:15] local.INFO: ID empty? NO  
[2026-07-28 20:17:15] local.INFO: Attempting to find record with ID: 0cb527ce-dc0f-4362-a4ac-df5850718eda  
[2026-07-28 20:17:15] local.INFO: Record not found, creating new with ID: 0cb527ce-dc0f-4362-a4ac-df5850718eda  
[2026-07-28 20:17:15] local.INFO: Created record: {"id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","first_name":"JELENA","last_name":"GLIZIJAN","sur_name":null,"phone":"722441523","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"B4820942","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:15.000000Z","created_at":"2026-07-28T17:17:15.000000Z"} 
[2026-07-28 20:17:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:16] local.INFO: Model: Customer  
[2026-07-28 20:17:16] local.INFO: Data received: {"id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","first_name":"ANTONY","last_name":"NJENGA","sur_name":null,"phone":"722359463","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"9240883","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-25 11:51:12","updated_at":"2026-07-25 11:57:50"} 
[2026-07-28 20:17:16] local.INFO: ID present? YES  
[2026-07-28 20:17:16] local.INFO: ID value: 0db3b090-e1de-40cd-bc79-b6bbcc870750  
[2026-07-28 20:17:16] local.INFO: ID empty? NO  
[2026-07-28 20:17:16] local.INFO: Attempting to find record with ID: 0db3b090-e1de-40cd-bc79-b6bbcc870750  
[2026-07-28 20:17:16] local.INFO: Record not found, creating new with ID: 0db3b090-e1de-40cd-bc79-b6bbcc870750  
[2026-07-28 20:17:16] local.INFO: Created record: {"id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","first_name":"ANTONY","last_name":"NJENGA","sur_name":null,"phone":"722359463","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"9240883","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:16.000000Z","created_at":"2026-07-28T17:17:16.000000Z"} 
[2026-07-28 20:17:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:17] local.INFO: Model: Customer  
[2026-07-28 20:17:17] local.INFO: Data received: {"id":"188bc3ee-7fab-49c3-b496-123714afd47e","first_name":"ANASTASIIA","last_name":"BELDY","sur_name":null,"phone":"152452145","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"667780833","nationality":"Russian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-24 13:44:31","updated_at":"2026-07-24 13:48:17"} 
[2026-07-28 20:17:17] local.INFO: ID present? YES  
[2026-07-28 20:17:17] local.INFO: ID value: 188bc3ee-7fab-49c3-b496-123714afd47e  
[2026-07-28 20:17:17] local.INFO: ID empty? NO  
[2026-07-28 20:17:17] local.INFO: Attempting to find record with ID: 188bc3ee-7fab-49c3-b496-123714afd47e  
[2026-07-28 20:17:17] local.INFO: Record not found, creating new with ID: 188bc3ee-7fab-49c3-b496-123714afd47e  
[2026-07-28 20:17:17] local.INFO: Created record: {"id":"188bc3ee-7fab-49c3-b496-123714afd47e","first_name":"ANASTASIIA","last_name":"BELDY","sur_name":null,"phone":"152452145","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"667780833","nationality":"Russian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:17.000000Z","created_at":"2026-07-28T17:17:17.000000Z"} 
[2026-07-28 20:17:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:19] local.INFO: Model: Customer  
[2026-07-28 20:17:19] local.INFO: Data received: {"id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","first_name":"DANIEL","last_name":"ROSE","sur_name":null,"phone":"124575554","calling_code":"+44","email":null,"residence":"undefined","id_type":"Passport","id_number":"139154700","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-28 12:27:56","updated_at":"2026-07-28 14:00:45"} 
[2026-07-28 20:17:19] local.INFO: ID present? YES  
[2026-07-28 20:17:19] local.INFO: ID value: 292c0ea6-fbb1-4053-87bc-54c303f4d9b8  
[2026-07-28 20:17:19] local.INFO: ID empty? NO  
[2026-07-28 20:17:19] local.INFO: Attempting to find record with ID: 292c0ea6-fbb1-4053-87bc-54c303f4d9b8  
[2026-07-28 20:17:19] local.INFO: Record not found, creating new with ID: 292c0ea6-fbb1-4053-87bc-54c303f4d9b8  
[2026-07-28 20:17:19] local.INFO: Created record: {"id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","first_name":"DANIEL","last_name":"ROSE","sur_name":null,"phone":"124575554","calling_code":"+44","email":null,"residence":"undefined","id_type":"Passport","id_number":"139154700","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:19.000000Z","created_at":"2026-07-28T17:17:19.000000Z"} 
[2026-07-28 20:17:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:20] local.INFO: Model: Customer  
[2026-07-28 20:17:20] local.INFO: Data received: {"id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","first_name":"ANDREA","last_name":"RODRIGUEZ","sur_name":null,"phone":"154245222","calling_code":"+373","email":null,"residence":"undefined","id_type":"Passport","id_number":"PAX946596","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-26 13:36:51","updated_at":"2026-07-26 17:58:14"} 
[2026-07-28 20:17:20] local.INFO: ID present? YES  
[2026-07-28 20:17:20] local.INFO: ID value: 476fc9fb-6470-4c9e-a6f8-f8777a8e1284  
[2026-07-28 20:17:20] local.INFO: ID empty? NO  
[2026-07-28 20:17:20] local.INFO: Attempting to find record with ID: 476fc9fb-6470-4c9e-a6f8-f8777a8e1284  
[2026-07-28 20:17:20] local.INFO: Record not found, creating new with ID: 476fc9fb-6470-4c9e-a6f8-f8777a8e1284  
[2026-07-28 20:17:20] local.INFO: Created record: {"id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","first_name":"ANDREA","last_name":"RODRIGUEZ","sur_name":null,"phone":"154245222","calling_code":"+373","email":null,"residence":"undefined","id_type":"Passport","id_number":"PAX946596","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:20.000000Z","created_at":"2026-07-28T17:17:20.000000Z"} 
[2026-07-28 20:17:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:21] local.INFO: Model: Customer  
[2026-07-28 20:17:21] local.INFO: Data received: {"id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","first_name":"MATEUSZ","last_name":"KOZAK","sur_name":null,"phone":"211540124","calling_code":"+53","email":null,"residence":"undefined","id_type":"Passport","id_number":"ET1266053","nationality":"Polish","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-26 11:13:43","updated_at":"2026-07-26 17:58:15"} 
[2026-07-28 20:17:21] local.INFO: ID present? YES  
[2026-07-28 20:17:21] local.INFO: ID value: 581b23fb-3408-4f59-86f0-ce4fc53d2e8e  
[2026-07-28 20:17:21] local.INFO: ID empty? NO  
[2026-07-28 20:17:21] local.INFO: Attempting to find record with ID: 581b23fb-3408-4f59-86f0-ce4fc53d2e8e  
[2026-07-28 20:17:21] local.INFO: Record not found, creating new with ID: 581b23fb-3408-4f59-86f0-ce4fc53d2e8e  
[2026-07-28 20:17:21] local.INFO: Created record: {"id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","first_name":"MATEUSZ","last_name":"KOZAK","sur_name":null,"phone":"211540124","calling_code":"+53","email":null,"residence":"undefined","id_type":"Passport","id_number":"ET1266053","nationality":"Polish","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:21.000000Z","created_at":"2026-07-28T17:17:21.000000Z"} 
[2026-07-28 20:17:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:23] local.INFO: Model: Customer  
[2026-07-28 20:17:23] local.INFO: Data received: {"id":"653473cc-1b4c-4586-81f3-8b175e96af25","first_name":"DAJANA","last_name":"MATIJASEVIC","sur_name":null,"phone":"744542151","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"016573717","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-26 10:30:42","updated_at":"2026-07-26 17:58:16"} 
[2026-07-28 20:17:23] local.INFO: ID present? YES  
[2026-07-28 20:17:23] local.INFO: ID value: 653473cc-1b4c-4586-81f3-8b175e96af25  
[2026-07-28 20:17:23] local.INFO: ID empty? NO  
[2026-07-28 20:17:23] local.INFO: Attempting to find record with ID: 653473cc-1b4c-4586-81f3-8b175e96af25  
[2026-07-28 20:17:23] local.INFO: Record not found, creating new with ID: 653473cc-1b4c-4586-81f3-8b175e96af25  
[2026-07-28 20:17:23] local.INFO: Created record: {"id":"653473cc-1b4c-4586-81f3-8b175e96af25","first_name":"DAJANA","last_name":"MATIJASEVIC","sur_name":null,"phone":"744542151","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"016573717","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:23.000000Z","created_at":"2026-07-28T17:17:23.000000Z"} 
[2026-07-28 20:17:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:24] local.INFO: Model: Customer  
[2026-07-28 20:17:24] local.INFO: Data received: {"id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","first_name":"PETER","last_name":"MWEU","sur_name":null,"phone":"114477992","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"34487101","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-24 13:45:43","updated_at":"2026-07-24 13:48:18"} 
[2026-07-28 20:17:24] local.INFO: ID present? YES  
[2026-07-28 20:17:24] local.INFO: ID value: 67b44293-55e6-41a5-883c-7d6a4dfea8ad  
[2026-07-28 20:17:24] local.INFO: ID empty? NO  
[2026-07-28 20:17:24] local.INFO: Attempting to find record with ID: 67b44293-55e6-41a5-883c-7d6a4dfea8ad  
[2026-07-28 20:17:24] local.INFO: Record not found, creating new with ID: 67b44293-55e6-41a5-883c-7d6a4dfea8ad  
[2026-07-28 20:17:24] local.INFO: Created record: {"id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","first_name":"PETER","last_name":"MWEU","sur_name":null,"phone":"114477992","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"34487101","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:24.000000Z","created_at":"2026-07-28T17:17:24.000000Z"} 
[2026-07-28 20:17:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:25] local.INFO: Model: Customer  
[2026-07-28 20:17:25] local.INFO: Data received: {"id":"681aac17-1e34-49d6-acdb-3e73571eb855","first_name":"HAFIDI","last_name":"MAHMOUDI","sur_name":null,"phone":"704995423","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"Passport","id_number":"19FV06559","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-27 11:21:17","updated_at":"2026-07-27 14:49:06"} 
[2026-07-28 20:17:25] local.INFO: ID present? YES  
[2026-07-28 20:17:25] local.INFO: ID value: 681aac17-1e34-49d6-acdb-3e73571eb855  
[2026-07-28 20:17:25] local.INFO: ID empty? NO  
[2026-07-28 20:17:25] local.INFO: Attempting to find record with ID: 681aac17-1e34-49d6-acdb-3e73571eb855  
[2026-07-28 20:17:25] local.INFO: Record not found, creating new with ID: 681aac17-1e34-49d6-acdb-3e73571eb855  
[2026-07-28 20:17:25] local.INFO: Created record: {"id":"681aac17-1e34-49d6-acdb-3e73571eb855","first_name":"HAFIDI","last_name":"MAHMOUDI","sur_name":null,"phone":"704995423","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"Passport","id_number":"19FV06559","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:25.000000Z","created_at":"2026-07-28T17:17:25.000000Z"} 
[2026-07-28 20:17:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:26] local.INFO: Model: Customer  
[2026-07-28 20:17:26] local.INFO: Data received: {"id":"6ab2a452-a0c2-404c-878c-03f897122334","first_name":"PETAR","last_name":"KOMAZEC","sur_name":null,"phone":"712452245","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"319338671","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-25 17:57:39","updated_at":"2026-07-25 18:31:17"} 
[2026-07-28 20:17:26] local.INFO: ID present? YES  
[2026-07-28 20:17:26] local.INFO: ID value: 6ab2a452-a0c2-404c-878c-03f897122334  
[2026-07-28 20:17:26] local.INFO: ID empty? NO  
[2026-07-28 20:17:26] local.INFO: Attempting to find record with ID: 6ab2a452-a0c2-404c-878c-03f897122334  
[2026-07-28 20:17:26] local.INFO: Record not found, creating new with ID: 6ab2a452-a0c2-404c-878c-03f897122334  
[2026-07-28 20:17:26] local.INFO: Created record: {"id":"6ab2a452-a0c2-404c-878c-03f897122334","first_name":"PETAR","last_name":"KOMAZEC","sur_name":null,"phone":"712452245","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"319338671","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:26.000000Z","created_at":"2026-07-28T17:17:26.000000Z"} 
[2026-07-28 20:17:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:28] local.INFO: Model: Customer  
[2026-07-28 20:17:28] local.INFO: Data received: {"id":"71fb0471-7101-4317-9dae-49c8f7cc08af","first_name":"JIRI","last_name":"MALEK","sur_name":null,"phone":"521245214","calling_code":"+53","email":null,"residence":"undefined","id_type":"Passport","id_number":"45069839","nationality":"Czech","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-27 10:43:25","updated_at":"2026-07-27 10:55:09"} 
[2026-07-28 20:17:28] local.INFO: ID present? YES  
[2026-07-28 20:17:28] local.INFO: ID value: 71fb0471-7101-4317-9dae-49c8f7cc08af  
[2026-07-28 20:17:28] local.INFO: ID empty? NO  
[2026-07-28 20:17:28] local.INFO: Attempting to find record with ID: 71fb0471-7101-4317-9dae-49c8f7cc08af  
[2026-07-28 20:17:28] local.INFO: Record not found, creating new with ID: 71fb0471-7101-4317-9dae-49c8f7cc08af  
[2026-07-28 20:17:28] local.INFO: Created record: {"id":"71fb0471-7101-4317-9dae-49c8f7cc08af","first_name":"JIRI","last_name":"MALEK","sur_name":null,"phone":"521245214","calling_code":"+53","email":null,"residence":"undefined","id_type":"Passport","id_number":"45069839","nationality":"Czech","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:28.000000Z","created_at":"2026-07-28T17:17:28.000000Z"} 
[2026-07-28 20:17:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:29] local.INFO: Model: Customer  
[2026-07-28 20:17:29] local.INFO: Data received: {"id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","first_name":"ALEKSANDER","last_name":"OBUCINA","sur_name":null,"phone":"755212401","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"019541263","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-24 15:07:23","updated_at":"2026-07-24 16:07:18"} 
[2026-07-28 20:17:29] local.INFO: ID present? YES  
[2026-07-28 20:17:29] local.INFO: ID value: 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a  
[2026-07-28 20:17:29] local.INFO: ID empty? NO  
[2026-07-28 20:17:29] local.INFO: Attempting to find record with ID: 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a  
[2026-07-28 20:17:29] local.INFO: Record not found, creating new with ID: 79f69f42-ffc5-4712-9e7c-c6a7cb21df9a  
[2026-07-28 20:17:29] local.INFO: Created record: {"id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","first_name":"ALEKSANDER","last_name":"OBUCINA","sur_name":null,"phone":"755212401","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"019541263","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:29.000000Z","created_at":"2026-07-28T17:17:29.000000Z"} 
[2026-07-28 20:17:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:30] local.INFO: Model: Customer  
[2026-07-28 20:17:30] local.INFO: Data received: {"id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","first_name":"MILICIA","last_name":"MILUTINOVIC","sur_name":null,"phone":"521542115","calling_code":"+62","email":null,"residence":"undefined","id_type":"Passport","id_number":"014676555","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-26 17:42:48","updated_at":"2026-07-26 17:58:18"} 
[2026-07-28 20:17:30] local.INFO: ID present? YES  
[2026-07-28 20:17:30] local.INFO: ID value: 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0  
[2026-07-28 20:17:30] local.INFO: ID empty? NO  
[2026-07-28 20:17:30] local.INFO: Attempting to find record with ID: 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0  
[2026-07-28 20:17:30] local.INFO: Record not found, creating new with ID: 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0  
[2026-07-28 20:17:30] local.INFO: Created record: {"id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","first_name":"MILICIA","last_name":"MILUTINOVIC","sur_name":null,"phone":"521542115","calling_code":"+62","email":null,"residence":"undefined","id_type":"Passport","id_number":"014676555","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:30.000000Z","created_at":"2026-07-28T17:17:30.000000Z"} 
[2026-07-28 20:17:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:31] local.INFO: Model: Customer  
[2026-07-28 20:17:31] local.INFO: Data received: {"id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","first_name":"GRIVINES","last_name":"PETER","sur_name":null,"phone":"729889283","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"28702745","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-28 16:35:37","updated_at":"2026-07-28 16:49:18"} 
[2026-07-28 20:17:31] local.INFO: ID present? YES  
[2026-07-28 20:17:31] local.INFO: ID value: 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f  
[2026-07-28 20:17:31] local.INFO: ID empty? NO  
[2026-07-28 20:17:31] local.INFO: Attempting to find record with ID: 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f  
[2026-07-28 20:17:31] local.INFO: Record not found, creating new with ID: 7e5b2e8c-95f6-4e8f-93af-4ba3c441506f  
[2026-07-28 20:17:31] local.INFO: Created record: {"id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","first_name":"GRIVINES","last_name":"PETER","sur_name":null,"phone":"729889283","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"28702745","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:31.000000Z","created_at":"2026-07-28T17:17:31.000000Z"} 
[2026-07-28 20:17:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:33] local.INFO: Model: Customer  
[2026-07-28 20:17:33] local.INFO: Data received: {"id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","first_name":"JAN","last_name":"JACKERS","sur_name":"undefined","phone":"154204522","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"GA1164455","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-20 09:26:06","updated_at":"2026-07-24 01:01:46"} 
[2026-07-28 20:17:33] local.INFO: ID present? YES  
[2026-07-28 20:17:33] local.INFO: ID value: a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38  
[2026-07-28 20:17:33] local.INFO: ID empty? NO  
[2026-07-28 20:17:33] local.INFO: Attempting to find record with ID: a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38  
[2026-07-28 20:17:33] local.INFO: Record not found, creating new with ID: a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38  
[2026-07-28 20:17:33] local.INFO: Created record: {"id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","first_name":"JAN","last_name":"JACKERS","sur_name":"undefined","phone":"154204522","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"GA1164455","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:33.000000Z","created_at":"2026-07-28T17:17:33.000000Z"} 
[2026-07-28 20:17:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:34] local.INFO: Model: Customer  
[2026-07-28 20:17:34] local.INFO: Data received: {"id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","first_name":"OLEKSANDER","last_name":"SERKOV","sur_name":null,"phone":"726406445","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"FV910259","nationality":"Ukrainian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-24 16:33:28","updated_at":"2026-07-24 17:16:44"} 
[2026-07-28 20:17:34] local.INFO: ID present? YES  
[2026-07-28 20:17:34] local.INFO: ID value: aa50300a-f29f-4cfc-b42a-dd5f474f8b5f  
[2026-07-28 20:17:34] local.INFO: ID empty? NO  
[2026-07-28 20:17:34] local.INFO: Attempting to find record with ID: aa50300a-f29f-4cfc-b42a-dd5f474f8b5f  
[2026-07-28 20:17:34] local.INFO: Record not found, creating new with ID: aa50300a-f29f-4cfc-b42a-dd5f474f8b5f  
[2026-07-28 20:17:34] local.INFO: Created record: {"id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","first_name":"OLEKSANDER","last_name":"SERKOV","sur_name":null,"phone":"726406445","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"FV910259","nationality":"Ukrainian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:34.000000Z","created_at":"2026-07-28T17:17:34.000000Z"} 
[2026-07-28 20:17:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:35] local.INFO: Model: Customer  
[2026-07-28 20:17:35] local.INFO: Data received: {"id":"c2b7cd22-2a19-4126-a913-c4db931349cb","first_name":"LYNN","last_name":"OPONDO","sur_name":"undefined","phone":"794237055","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"Passport","id_number":"AK0879165","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-21 17:33:06","updated_at":"2026-07-24 01:05:36"} 
[2026-07-28 20:17:35] local.INFO: ID present? YES  
[2026-07-28 20:17:35] local.INFO: ID value: c2b7cd22-2a19-4126-a913-c4db931349cb  
[2026-07-28 20:17:35] local.INFO: ID empty? NO  
[2026-07-28 20:17:35] local.INFO: Attempting to find record with ID: c2b7cd22-2a19-4126-a913-c4db931349cb  
[2026-07-28 20:17:35] local.INFO: Record not found, creating new with ID: c2b7cd22-2a19-4126-a913-c4db931349cb  
[2026-07-28 20:17:35] local.INFO: Created record: {"id":"c2b7cd22-2a19-4126-a913-c4db931349cb","first_name":"LYNN","last_name":"OPONDO","sur_name":"undefined","phone":"794237055","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"Passport","id_number":"AK0879165","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:35.000000Z","created_at":"2026-07-28T17:17:35.000000Z"} 
[2026-07-28 20:17:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:36] local.INFO: Model: Customer  
[2026-07-28 20:17:36] local.INFO: Data received: {"id":"eebd93cd-e521-4801-8bcf-4ee59786c637","first_name":"NIKOLA","last_name":"MAROVIC","sur_name":null,"phone":"745421242","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"013967734","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-26 10:32:54","updated_at":"2026-07-26 17:58:19"} 
[2026-07-28 20:17:36] local.INFO: ID present? YES  
[2026-07-28 20:17:36] local.INFO: ID value: eebd93cd-e521-4801-8bcf-4ee59786c637  
[2026-07-28 20:17:36] local.INFO: ID empty? NO  
[2026-07-28 20:17:36] local.INFO: Attempting to find record with ID: eebd93cd-e521-4801-8bcf-4ee59786c637  
[2026-07-28 20:17:36] local.INFO: Record not found, creating new with ID: eebd93cd-e521-4801-8bcf-4ee59786c637  
[2026-07-28 20:17:36] local.INFO: Created record: {"id":"eebd93cd-e521-4801-8bcf-4ee59786c637","first_name":"NIKOLA","last_name":"MAROVIC","sur_name":null,"phone":"745421242","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"013967734","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-28T17:17:36.000000Z","created_at":"2026-07-28T17:17:36.000000Z"} 
[2026-07-28 20:17:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:38] local.INFO: Model: Transaction  
[2026-07-28 20:17:38] local.INFO: Data received: {"id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","type":"Buying","amount":40,"rate":169,"negotiated_rate":"0","amount_paid":6760,"amount_received":40,"narrative":null,"transaction_number":"TR-3551-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:33:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f51c62ea-2f3a-431d-875a-75bbd9ee0289","cancellation_reason":null,"customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-21 17:33:23","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 20:17:38] local.INFO: ID present? YES  
[2026-07-28 20:17:38] local.INFO: ID value: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 20:17:38] local.INFO: ID empty? NO  
[2026-07-28 20:17:38] local.INFO: Attempting to find record with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 20:17:38] local.INFO: Record not found, creating new with ID: 0436c5db-8112-44c2-a2b0-8b242e7b8965  
[2026-07-28 20:17:38] local.INFO: Created record: {"id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","type":"Buying","amount":40,"rate":169,"negotiated_rate":"0","amount_paid":6760,"amount_received":40,"narrative":null,"transaction_number":"TR-3551-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:33:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f51c62ea-2f3a-431d-875a-75bbd9ee0289","cancellation_reason":null,"customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","updated_at":"2026-07-28T17:17:38.000000Z","created_at":"2026-07-28T17:17:38.000000Z"} 
[2026-07-28 20:17:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:39] local.INFO: Model: Transaction  
[2026-07-28 20:17:39] local.INFO: Data received: {"id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","type":"Buying","amount":120000,"rate":0.040000000000000000832667268468867405317723751068115234375,"negotiated_rate":"0","amount_paid":4800,"amount_received":120000,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:17:39] local.INFO: ID present? YES  
[2026-07-28 20:17:39] local.INFO: ID value: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 20:17:39] local.INFO: ID empty? NO  
[2026-07-28 20:17:39] local.INFO: Attempting to find record with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 20:17:39] local.INFO: Record not found, creating new with ID: 07b31533-d750-4d10-ad1a-0fbf0ee4249d  
[2026-07-28 20:17:39] local.INFO: Created record: {"id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","type":"Buying","amount":120000,"rate":0.040000000000000000832667268468867405317723751068115234375,"negotiated_rate":"0","amount_paid":4800,"amount_received":120000,"narrative":null,"transaction_number":"TR-3594-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","updated_at":"2026-07-28T17:17:39.000000Z","created_at":"2026-07-28T17:17:39.000000Z"} 
[2026-07-28 20:17:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:40] local.INFO: Model: Transaction  
[2026-07-28 20:17:40] local.INFO: Data received: {"id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3569-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:03:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"63ef953e-9f5b-4da5-b1c0-6431cab23fb3","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 18:02:50","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 20:17:40] local.INFO: ID present? YES  
[2026-07-28 20:17:40] local.INFO: ID value: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 20:17:40] local.INFO: ID empty? NO  
[2026-07-28 20:17:40] local.INFO: Attempting to find record with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 20:17:40] local.INFO: Record not found, creating new with ID: 0ff78218-5a23-4a19-8495-6bdeac5993f8  
[2026-07-28 20:17:40] local.INFO: Created record: {"id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3569-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:03:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"63ef953e-9f5b-4da5-b1c0-6431cab23fb3","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:40.000000Z","created_at":"2026-07-28T17:17:40.000000Z"} 
[2026-07-28 20:17:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:41] local.INFO: Model: Transaction  
[2026-07-28 20:17:41] local.INFO: Data received: {"id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","type":"Buying","amount":850,"rate":6,"negotiated_rate":"0","amount_paid":5100,"amount_received":850,"narrative":null,"transaction_number":"TR-3576-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:46:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"779321fc-9f01-44e7-81a9-f40c786aded8","cancellation_reason":null,"customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","created_at":"2026-07-26 11:46:24","updated_at":"2026-07-26 17:48:35"} 
[2026-07-28 20:17:41] local.INFO: ID present? YES  
[2026-07-28 20:17:41] local.INFO: ID value: 1af6b956-9cce-4c14-bd4d-5d44ade23b25  
[2026-07-28 20:17:41] local.INFO: ID empty? NO  
[2026-07-28 20:17:41] local.INFO: Attempting to find record with ID: 1af6b956-9cce-4c14-bd4d-5d44ade23b25  
[2026-07-28 20:17:41] local.INFO: Record not found, creating new with ID: 1af6b956-9cce-4c14-bd4d-5d44ade23b25  
[2026-07-28 20:17:41] local.INFO: Created record: {"id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","type":"Buying","amount":850,"rate":6,"negotiated_rate":"0","amount_paid":5100,"amount_received":850,"narrative":null,"transaction_number":"TR-3576-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:46:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"779321fc-9f01-44e7-81a9-f40c786aded8","cancellation_reason":null,"customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","updated_at":"2026-07-28T17:17:41.000000Z","created_at":"2026-07-28T17:17:41.000000Z"} 
[2026-07-28 20:17:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:43] local.INFO: Model: Transaction  
[2026-07-28 20:17:43] local.INFO: Data received: {"id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","type":"Buying","amount":70,"rate":145,"negotiated_rate":"0","amount_paid":10150,"amount_received":70,"narrative":null,"transaction_number":"TR-3581-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:24:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51380887-0114-4ca2-bb26-66fa086e9f76","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:24:16","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 20:17:43] local.INFO: ID present? YES  
[2026-07-28 20:17:43] local.INFO: ID value: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 20:17:43] local.INFO: ID empty? NO  
[2026-07-28 20:17:43] local.INFO: Attempting to find record with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 20:17:43] local.INFO: Record not found, creating new with ID: 1d7c15a8-2833-4e16-ab99-c3be836ec400  
[2026-07-28 20:17:43] local.INFO: Created record: {"id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","type":"Buying","amount":70,"rate":145,"negotiated_rate":"0","amount_paid":10150,"amount_received":70,"narrative":null,"transaction_number":"TR-3581-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:24:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51380887-0114-4ca2-bb26-66fa086e9f76","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:43.000000Z","created_at":"2026-07-28T17:17:43.000000Z"} 
[2026-07-28 20:17:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:44] local.INFO: Model: Transaction  
[2026-07-28 20:17:44] local.INFO: Data received: {"id":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","type":"Buying","amount":300,"rate":127.5,"negotiated_rate":"0","amount_paid":38250,"amount_received":300,"narrative":null,"transaction_number":"TR-3578-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:20:53","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"3e3459cb-a316-4444-90e7-f47e83e1e9ca","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 12:20:51","updated_at":"2026-07-26 17:48:57"} 
[2026-07-28 20:17:44] local.INFO: ID present? YES  
[2026-07-28 20:17:44] local.INFO: ID value: 1fdf6d60-e80a-4caa-852a-125aa4251185  
[2026-07-28 20:17:44] local.INFO: ID empty? NO  
[2026-07-28 20:17:44] local.INFO: Attempting to find record with ID: 1fdf6d60-e80a-4caa-852a-125aa4251185  
[2026-07-28 20:17:44] local.INFO: Record not found, creating new with ID: 1fdf6d60-e80a-4caa-852a-125aa4251185  
[2026-07-28 20:17:44] local.INFO: Created record: {"id":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","type":"Buying","amount":300,"rate":127.5,"negotiated_rate":"0","amount_paid":38250,"amount_received":300,"narrative":null,"transaction_number":"TR-3578-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:20:53","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"3e3459cb-a316-4444-90e7-f47e83e1e9ca","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:17:44.000000Z","created_at":"2026-07-28T17:17:44.000000Z"} 
[2026-07-28 20:17:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:45] local.INFO: Model: Transaction  
[2026-07-28 20:17:45] local.INFO: Data received: {"id":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","type":"Selling","amount":20,"rate":130,"negotiated_rate":"0","amount_paid":20,"amount_received":2600,"narrative":null,"transaction_number":"TR-3561-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:19:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"a76663d7-a853-4b9e-a982-4ef49213bfd2","cancellation_reason":null,"customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-24 15:19:16","updated_at":"2026-07-24 16:02:32"} 
[2026-07-28 20:17:45] local.INFO: ID present? YES  
[2026-07-28 20:17:45] local.INFO: ID value: 3227253b-40c1-48bc-8827-ac322dce9183  
[2026-07-28 20:17:45] local.INFO: ID empty? NO  
[2026-07-28 20:17:45] local.INFO: Attempting to find record with ID: 3227253b-40c1-48bc-8827-ac322dce9183  
[2026-07-28 20:17:45] local.INFO: Record not found, creating new with ID: 3227253b-40c1-48bc-8827-ac322dce9183  
[2026-07-28 20:17:45] local.INFO: Created record: {"id":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","type":"Selling","amount":20,"rate":130,"negotiated_rate":"0","amount_paid":20,"amount_received":2600,"narrative":null,"transaction_number":"TR-3561-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:19:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"a76663d7-a853-4b9e-a982-4ef49213bfd2","cancellation_reason":null,"customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-28T17:17:45.000000Z","created_at":"2026-07-28T17:17:45.000000Z"} 
[2026-07-28 20:17:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:47] local.INFO: Model: Transaction  
[2026-07-28 20:17:47] local.INFO: Data received: {"id":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3585-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:37:16","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"19c6ddae-9d81-4860-bc92-db1428d325ed","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:37:14","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 20:17:47] local.INFO: ID present? YES  
[2026-07-28 20:17:47] local.INFO: ID value: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 20:17:47] local.INFO: ID empty? NO  
[2026-07-28 20:17:47] local.INFO: Attempting to find record with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 20:17:47] local.INFO: Record not found, creating new with ID: 37c8e497-806e-48db-81fb-af483f7431cd  
[2026-07-28 20:17:47] local.INFO: Created record: {"id":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3585-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:37:16","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"19c6ddae-9d81-4860-bc92-db1428d325ed","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:17:47.000000Z","created_at":"2026-07-28T17:17:47.000000Z"} 
[2026-07-28 20:17:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:48] local.INFO: Model: Transaction  
[2026-07-28 20:17:48] local.INFO: Data received: {"id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3574-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:44:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4e1afb2a-cfa2-4d86-b3e9-c3b1b0389a63","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 10:44:45","updated_at":"2026-07-26 17:49:18"} 
[2026-07-28 20:17:48] local.INFO: ID present? YES  
[2026-07-28 20:17:48] local.INFO: ID value: 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5  
[2026-07-28 20:17:48] local.INFO: ID empty? NO  
[2026-07-28 20:17:48] local.INFO: Attempting to find record with ID: 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5  
[2026-07-28 20:17:48] local.INFO: Record not found, creating new with ID: 382830ae-bfbc-4f1f-b2a2-973c01b5f1e5  
[2026-07-28 20:17:48] local.INFO: Created record: {"id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3574-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:44:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4e1afb2a-cfa2-4d86-b3e9-c3b1b0389a63","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:17:48.000000Z","created_at":"2026-07-28T17:17:48.000000Z"} 
[2026-07-28 20:17:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:49] local.INFO: Model: Transaction  
[2026-07-28 20:17:49] local.INFO: Data received: {"id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3588-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 09:54:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6a766cad-64a0-45c5-bcf3-d56027870fdc","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-27 09:54:29","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 20:17:49] local.INFO: ID present? YES  
[2026-07-28 20:17:49] local.INFO: ID value: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 20:17:49] local.INFO: ID empty? NO  
[2026-07-28 20:17:49] local.INFO: Attempting to find record with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 20:17:49] local.INFO: Record not found, creating new with ID: 3b1320b2-a61f-4aef-9f24-88ea37544e16  
[2026-07-28 20:17:49] local.INFO: Created record: {"id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3588-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 09:54:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6a766cad-64a0-45c5-bcf3-d56027870fdc","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:49.000000Z","created_at":"2026-07-28T17:17:49.000000Z"} 
[2026-07-28 20:17:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:50] local.INFO: Model: Transaction  
[2026-07-28 20:17:50] local.INFO: Data received: {"id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3580-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:31:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"99503e29-57fb-4c38-8571-87666adfe6d4","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 12:31:03","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:17:50] local.INFO: ID present? YES  
[2026-07-28 20:17:50] local.INFO: ID value: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 20:17:50] local.INFO: ID empty? NO  
[2026-07-28 20:17:50] local.INFO: Attempting to find record with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 20:17:50] local.INFO: Record not found, creating new with ID: 3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f  
[2026-07-28 20:17:50] local.INFO: Created record: {"id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3580-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:31:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"99503e29-57fb-4c38-8571-87666adfe6d4","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:17:50.000000Z","created_at":"2026-07-28T17:17:50.000000Z"} 
[2026-07-28 20:17:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:52] local.INFO: Model: Transaction  
[2026-07-28 20:17:52] local.INFO: Data received: {"id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3552-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:40:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c1a01635-b173-439c-988a-29f77ddada97","cancellation_reason":null,"customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-21 17:40:35","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 20:17:52] local.INFO: ID present? YES  
[2026-07-28 20:17:52] local.INFO: ID value: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 20:17:52] local.INFO: ID empty? NO  
[2026-07-28 20:17:52] local.INFO: Attempting to find record with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 20:17:52] local.INFO: Record not found, creating new with ID: 43630310-e4c3-4bbd-ba18-8ee3b48642bc  
[2026-07-28 20:17:52] local.INFO: Created record: {"id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3552-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:40:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c1a01635-b173-439c-988a-29f77ddada97","cancellation_reason":null,"customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:52.000000Z","created_at":"2026-07-28T17:17:52.000000Z"} 
[2026-07-28 20:17:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:53] local.INFO: Model: Transaction  
[2026-07-28 20:17:53] local.INFO: Data received: {"id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3566-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 12:21:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7e45efda-7c5f-49b0-9511-34eaf566c1f2","cancellation_reason":null,"customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 12:19:31","updated_at":"2026-07-25 12:42:45"} 
[2026-07-28 20:17:53] local.INFO: ID present? YES  
[2026-07-28 20:17:53] local.INFO: ID value: 472fbfaa-6ba9-40a7-86e0-909e9a7ce979  
[2026-07-28 20:17:53] local.INFO: ID empty? NO  
[2026-07-28 20:17:53] local.INFO: Attempting to find record with ID: 472fbfaa-6ba9-40a7-86e0-909e9a7ce979  
[2026-07-28 20:17:53] local.INFO: Record not found, creating new with ID: 472fbfaa-6ba9-40a7-86e0-909e9a7ce979  
[2026-07-28 20:17:53] local.INFO: Created record: {"id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3566-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 12:21:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7e45efda-7c5f-49b0-9511-34eaf566c1f2","cancellation_reason":null,"customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:53.000000Z","created_at":"2026-07-28T17:17:53.000000Z"} 
[2026-07-28 20:17:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:54] local.INFO: Model: Transaction  
[2026-07-28 20:17:54] local.INFO: Data received: {"id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3573-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:44:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4e1afb2a-cfa2-4d86-b3e9-c3b1b0389a63","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:44:45","updated_at":"2026-07-26 17:50:20"} 
[2026-07-28 20:17:54] local.INFO: ID present? YES  
[2026-07-28 20:17:54] local.INFO: ID value: 491a309a-b5f8-4fff-87b1-9e3d6d442967  
[2026-07-28 20:17:54] local.INFO: ID empty? NO  
[2026-07-28 20:17:54] local.INFO: Attempting to find record with ID: 491a309a-b5f8-4fff-87b1-9e3d6d442967  
[2026-07-28 20:17:54] local.INFO: Record not found, creating new with ID: 491a309a-b5f8-4fff-87b1-9e3d6d442967  
[2026-07-28 20:17:54] local.INFO: Created record: {"id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3573-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:44:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4e1afb2a-cfa2-4d86-b3e9-c3b1b0389a63","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:54.000000Z","created_at":"2026-07-28T17:17:54.000000Z"} 
[2026-07-28 20:17:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:55] local.INFO: Model: Transaction  
[2026-07-28 20:17:55] local.INFO: Data received: {"id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3590-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:21:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5626f0e7-3a21-4c33-8995-485af9fe4bab","cancellation_reason":null,"customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 11:21:33","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 20:17:55] local.INFO: ID present? YES  
[2026-07-28 20:17:55] local.INFO: ID value: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 20:17:55] local.INFO: ID empty? NO  
[2026-07-28 20:17:55] local.INFO: Attempting to find record with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 20:17:55] local.INFO: Record not found, creating new with ID: 4a55d9c9-fbfc-43b9-8f31-378ffe9822ec  
[2026-07-28 20:17:55] local.INFO: Created record: {"id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3590-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:21:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5626f0e7-3a21-4c33-8995-485af9fe4bab","cancellation_reason":null,"customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:17:55.000000Z","created_at":"2026-07-28T17:17:55.000000Z"} 
[2026-07-28 20:17:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:56] local.INFO: Model: Transaction  
[2026-07-28 20:17:56] local.INFO: Data received: {"id":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3560-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:18:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:18:43","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 20:17:56] local.INFO: ID present? YES  
[2026-07-28 20:17:56] local.INFO: ID value: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 20:17:56] local.INFO: ID empty? NO  
[2026-07-28 20:17:56] local.INFO: Attempting to find record with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 20:17:56] local.INFO: Record not found, creating new with ID: 4e2f2f67-5628-472e-9ed7-9a879921033d  
[2026-07-28 20:17:56] local.INFO: Created record: {"id":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3560-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:18:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bdc8cf7-5ca8-43b1-b065-9e639dc24e8f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:56.000000Z","created_at":"2026-07-28T17:17:56.000000Z"} 
[2026-07-28 20:17:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:58] local.INFO: Model: Transaction  
[2026-07-28 20:17:58] local.INFO: Data received: {"id":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","type":"Buying","amount":60,"rate":144.5,"negotiated_rate":"0","amount_paid":8670,"amount_received":60,"narrative":null,"transaction_number":"TR-3555-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:46:03","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"9b8e711c-8ec3-4738-b32b-438e54347150","cancellation_reason":null,"customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 13:46:01","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:17:58] local.INFO: ID present? YES  
[2026-07-28 20:17:58] local.INFO: ID value: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 20:17:58] local.INFO: ID empty? NO  
[2026-07-28 20:17:58] local.INFO: Attempting to find record with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 20:17:58] local.INFO: Record not found, creating new with ID: 55479f8d-6423-434a-b7f3-3c15a68bf098  
[2026-07-28 20:17:58] local.INFO: Created record: {"id":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","type":"Buying","amount":60,"rate":144.5,"negotiated_rate":"0","amount_paid":8670,"amount_received":60,"narrative":null,"transaction_number":"TR-3555-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:46:03","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"9b8e711c-8ec3-4738-b32b-438e54347150","cancellation_reason":null,"customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:58.000000Z","created_at":"2026-07-28T17:17:58.000000Z"} 
[2026-07-28 20:17:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:17:59] local.INFO: Model: Transaction  
[2026-07-28 20:17:59] local.INFO: Data received: {"id":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3568-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:57:56","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"35e035d4-60ba-4c5a-bb0d-e6c202ada8ac","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:57:52","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 20:17:59] local.INFO: ID present? YES  
[2026-07-28 20:17:59] local.INFO: ID value: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 20:17:59] local.INFO: ID empty? NO  
[2026-07-28 20:17:59] local.INFO: Attempting to find record with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 20:17:59] local.INFO: Record not found, creating new with ID: 57366bf1-63ba-439b-a913-5602c69040ba  
[2026-07-28 20:17:59] local.INFO: Created record: {"id":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3568-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:57:56","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"35e035d4-60ba-4c5a-bb0d-e6c202ada8ac","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:17:59.000000Z","created_at":"2026-07-28T17:17:59.000000Z"} 
[2026-07-28 20:18:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:00] local.INFO: Model: Transaction  
[2026-07-28 20:18:00] local.INFO: Data received: {"id":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3584-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 15:40:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51b24086-e215-4198-bd3c-27dfacaba486","cancellation_reason":null,"customer_id":"15257062-2b21-4280-bead-3b3c0880da54","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 15:40:39","updated_at":"2026-07-26 17:51:22"} 
[2026-07-28 20:18:00] local.INFO: ID present? YES  
[2026-07-28 20:18:00] local.INFO: ID value: 597a9446-61c6-4468-824b-d121e1493357  
[2026-07-28 20:18:00] local.INFO: ID empty? NO  
[2026-07-28 20:18:00] local.INFO: Attempting to find record with ID: 597a9446-61c6-4468-824b-d121e1493357  
[2026-07-28 20:18:00] local.INFO: Record not found, creating new with ID: 597a9446-61c6-4468-824b-d121e1493357  
[2026-07-28 20:18:00] local.INFO: Created record: {"id":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3584-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 15:40:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"51b24086-e215-4198-bd3c-27dfacaba486","cancellation_reason":null,"customer_id":"15257062-2b21-4280-bead-3b3c0880da54","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:00.000000Z","created_at":"2026-07-28T17:18:00.000000Z"} 
[2026-07-28 20:18:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:01] local.INFO: Model: Transaction  
[2026-07-28 20:18:01] local.INFO: Data received: {"id":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","type":"Buying","amount":75,"rate":145,"negotiated_rate":"0","amount_paid":10875,"amount_received":75,"narrative":null,"transaction_number":"TR-3572-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:33:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7dc2185b-4cef-4838-b1f7-61fb47eabe7f","cancellation_reason":null,"customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:33:09","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 20:18:01] local.INFO: ID present? YES  
[2026-07-28 20:18:01] local.INFO: ID value: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 20:18:01] local.INFO: ID empty? NO  
[2026-07-28 20:18:01] local.INFO: Attempting to find record with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 20:18:01] local.INFO: Record not found, creating new with ID: 65f085f9-5a79-403e-b323-84582d8bb2f2  
[2026-07-28 20:18:01] local.INFO: Created record: {"id":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","type":"Buying","amount":75,"rate":145,"negotiated_rate":"0","amount_paid":10875,"amount_received":75,"narrative":null,"transaction_number":"TR-3572-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:33:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"7dc2185b-4cef-4838-b1f7-61fb47eabe7f","cancellation_reason":null,"customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:01.000000Z","created_at":"2026-07-28T17:18:01.000000Z"} 
[2026-07-28 20:18:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:03] local.INFO: Model: Transaction  
[2026-07-28 20:18:03] local.INFO: Data received: {"id":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3559-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:08:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4a21a957-1822-4f47-9643-1bac7df6c8bd","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 15:07:57","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:18:03] local.INFO: ID present? YES  
[2026-07-28 20:18:03] local.INFO: ID value: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 20:18:03] local.INFO: ID empty? NO  
[2026-07-28 20:18:03] local.INFO: Attempting to find record with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 20:18:03] local.INFO: Record not found, creating new with ID: 6c3bca3d-2e54-4391-b548-fae9306f4773  
[2026-07-28 20:18:03] local.INFO: Created record: {"id":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3559-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 15:08:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4a21a957-1822-4f47-9643-1bac7df6c8bd","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:03.000000Z","created_at":"2026-07-28T17:18:03.000000Z"} 
[2026-07-28 20:18:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:04] local.INFO: Model: Transaction  
[2026-07-28 20:18:04] local.INFO: Data received: {"id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","type":"Buying","amount":1200,"rate":128.5,"negotiated_rate":"0","amount_paid":154200,"amount_received":1200,"narrative":null,"transaction_number":"TR-3564-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:50:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"8b4e6136-1c0b-4471-9bd6-cea93423b749","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-25 11:50:09","updated_at":"2026-07-25 11:54:06"} 
[2026-07-28 20:18:04] local.INFO: ID present? YES  
[2026-07-28 20:18:04] local.INFO: ID value: 700b0e06-5c13-4fb8-8f04-966d45b354dc  
[2026-07-28 20:18:04] local.INFO: ID empty? NO  
[2026-07-28 20:18:04] local.INFO: Attempting to find record with ID: 700b0e06-5c13-4fb8-8f04-966d45b354dc  
[2026-07-28 20:18:04] local.INFO: Record not found, creating new with ID: 700b0e06-5c13-4fb8-8f04-966d45b354dc  
[2026-07-28 20:18:04] local.INFO: Created record: {"id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","type":"Buying","amount":1200,"rate":128.5,"negotiated_rate":"0","amount_paid":154200,"amount_received":1200,"narrative":null,"transaction_number":"TR-3564-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:50:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"8b4e6136-1c0b-4471-9bd6-cea93423b749","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:04.000000Z","created_at":"2026-07-28T17:18:04.000000Z"} 
[2026-07-28 20:18:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:05] local.INFO: Model: Transaction  
[2026-07-28 20:18:05] local.INFO: Data received: {"id":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","type":"Buying","amount":65,"rate":145,"negotiated_rate":"0","amount_paid":9425,"amount_received":65,"narrative":null,"transaction_number":"TR-3595-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:29:02","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"40e58e67-2e1a-4793-9f60-1e93089b5302","cancellation_reason":null,"customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-28 12:29:00","updated_at":"2026-07-28 13:53:23"} 
[2026-07-28 20:18:05] local.INFO: ID present? YES  
[2026-07-28 20:18:05] local.INFO: ID value: 703c7183-ec05-47e1-b610-b0d4853b313b  
[2026-07-28 20:18:05] local.INFO: ID empty? NO  
[2026-07-28 20:18:05] local.INFO: Attempting to find record with ID: 703c7183-ec05-47e1-b610-b0d4853b313b  
[2026-07-28 20:18:05] local.INFO: Record not found, creating new with ID: 703c7183-ec05-47e1-b610-b0d4853b313b  
[2026-07-28 20:18:05] local.INFO: Created record: {"id":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","type":"Buying","amount":65,"rate":145,"negotiated_rate":"0","amount_paid":9425,"amount_received":65,"narrative":null,"transaction_number":"TR-3595-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:29:02","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"40e58e67-2e1a-4793-9f60-1e93089b5302","cancellation_reason":null,"customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:05.000000Z","created_at":"2026-07-28T17:18:05.000000Z"} 
[2026-07-28 20:18:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:06] local.INFO: Model: Transaction  
[2026-07-28 20:18:06] local.INFO: Data received: {"id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3562-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:01:38","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ee134ada-c588-4f38-863a-956783466e0b","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 16:01:36","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:18:06] local.INFO: ID present? YES  
[2026-07-28 20:18:06] local.INFO: ID value: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 20:18:06] local.INFO: ID empty? NO  
[2026-07-28 20:18:06] local.INFO: Attempting to find record with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 20:18:06] local.INFO: Record not found, creating new with ID: 735c8cab-ac15-4ba0-a978-7dd9a6ac3e05  
[2026-07-28 20:18:06] local.INFO: Created record: {"id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3562-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:01:38","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ee134ada-c588-4f38-863a-956783466e0b","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:06.000000Z","created_at":"2026-07-28T17:18:06.000000Z"} 
[2026-07-28 20:18:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:08] local.INFO: Model: Transaction  
[2026-07-28 20:18:08] local.INFO: Data received: {"id":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3586-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:38:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"879e1709-4d91-499e-9601-0909465d4ed8","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 16:38:24","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 20:18:08] local.INFO: ID present? YES  
[2026-07-28 20:18:08] local.INFO: ID value: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 20:18:08] local.INFO: ID empty? NO  
[2026-07-28 20:18:08] local.INFO: Attempting to find record with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 20:18:08] local.INFO: Record not found, creating new with ID: 75747995-714d-4b5e-9a73-1b71a84c99b5  
[2026-07-28 20:18:08] local.INFO: Created record: {"id":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3586-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 16:38:26","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"879e1709-4d91-499e-9601-0909465d4ed8","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:08.000000Z","created_at":"2026-07-28T17:18:08.000000Z"} 
[2026-07-28 20:18:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:09] local.INFO: Model: Transaction  
[2026-07-28 20:18:09] local.INFO: Data received: {"id":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","type":"Buying","amount":100,"rate":128,"negotiated_rate":"0","amount_paid":12800,"amount_received":100,"narrative":null,"transaction_number":"TR-3579-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:21:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f937a466-2430-4f9a-9c18-0f2814cea366","cancellation_reason":null,"customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 12:21:42","updated_at":"2026-07-26 17:53:08"} 
[2026-07-28 20:18:09] local.INFO: ID present? YES  
[2026-07-28 20:18:09] local.INFO: ID value: 778f797b-d744-486d-aa18-d84286625daf  
[2026-07-28 20:18:09] local.INFO: ID empty? NO  
[2026-07-28 20:18:09] local.INFO: Attempting to find record with ID: 778f797b-d744-486d-aa18-d84286625daf  
[2026-07-28 20:18:09] local.INFO: Record not found, creating new with ID: 778f797b-d744-486d-aa18-d84286625daf  
[2026-07-28 20:18:09] local.INFO: Created record: {"id":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","type":"Buying","amount":100,"rate":128,"negotiated_rate":"0","amount_paid":12800,"amount_received":100,"narrative":null,"transaction_number":"TR-3579-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 12:21:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f937a466-2430-4f9a-9c18-0f2814cea366","cancellation_reason":null,"customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:09.000000Z","created_at":"2026-07-28T17:18:09.000000Z"} 
[2026-07-28 20:18:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:10] local.INFO: Model: Transaction  
[2026-07-28 20:18:10] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:18:10] local.INFO: ID present? YES  
[2026-07-28 20:18:10] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:10] local.INFO: ID empty? NO  
[2026-07-28 20:18:10] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:10] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 20:18:10, 2026-07-28 20:18:10))  
[2026-07-28 20:18:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:18:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:17] local.INFO: Model: Transaction  
[2026-07-28 20:18:17] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:18:17] local.INFO: ID present? YES  
[2026-07-28 20:18:17] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:17] local.INFO: ID empty? NO  
[2026-07-28 20:18:17] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:17] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 20:18:17, 2026-07-28 20:18:17))  
[2026-07-28 20:18:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:18:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:23] local.INFO: Model: Transaction  
[2026-07-28 20:18:23] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:18:23] local.INFO: ID present? YES  
[2026-07-28 20:18:23] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:23] local.INFO: ID empty? NO  
[2026-07-28 20:18:23] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:23] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 20:18:23, 2026-07-28 20:18:23))  
[2026-07-28 20:18:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:18:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:29] local.INFO: Model: Transaction  
[2026-07-28 20:18:29] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:18:29] local.INFO: ID present? YES  
[2026-07-28 20:18:29] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:29] local.INFO: ID empty? NO  
[2026-07-28 20:18:29] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:29] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-28 20:18:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-28 20:18:29, 2026-07-28 20:18:29))  
[2026-07-28 20:18:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:18:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:30] local.INFO: Model: Transaction  
[2026-07-28 20:18:30] local.INFO: Data received: {"id":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","type":"Selling","amount":225,"rate":150.69999999999998863131622783839702606201171875,"negotiated_rate":"0","amount_paid":225,"amount_received":33907.5,"narrative":null,"transaction_number":"TR-3598-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:25:40","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"88cd9ca2-eca8-4953-b726-12d95986c23a","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28 17:25:37","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:18:30] local.INFO: ID present? YES  
[2026-07-28 20:18:30] local.INFO: ID value: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 20:18:30] local.INFO: ID empty? NO  
[2026-07-28 20:18:30] local.INFO: Attempting to find record with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 20:18:30] local.INFO: Record not found, creating new with ID: 7daef726-6615-42ef-914a-f39cb5118ffb  
[2026-07-28 20:18:30] local.INFO: Created record: {"id":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","type":"Selling","amount":225,"rate":150.69999999999998863131622783839702606201171875,"negotiated_rate":"0","amount_paid":225,"amount_received":33907.5,"narrative":null,"transaction_number":"TR-3598-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:25:40","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"88cd9ca2-eca8-4953-b726-12d95986c23a","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-28T17:18:30.000000Z","created_at":"2026-07-28T17:18:30.000000Z"} 
[2026-07-28 20:18:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:32] local.INFO: Model: Transaction  
[2026-07-28 20:18:32] local.INFO: Data received: {"id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3558-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:56:42","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"384c3176-0b9c-4599-a733-e91db2f47c08","cancellation_reason":null,"customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:56:40","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 20:18:32] local.INFO: ID present? YES  
[2026-07-28 20:18:32] local.INFO: ID value: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 20:18:32] local.INFO: ID empty? NO  
[2026-07-28 20:18:32] local.INFO: Attempting to find record with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 20:18:32] local.INFO: Record not found, creating new with ID: 7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0  
[2026-07-28 20:18:32] local.INFO: Created record: {"id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3558-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:56:42","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"384c3176-0b9c-4599-a733-e91db2f47c08","cancellation_reason":null,"customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:32.000000Z","created_at":"2026-07-28T17:18:32.000000Z"} 
[2026-07-28 20:18:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:33] local.INFO: Model: Transaction  
[2026-07-28 20:18:33] local.INFO: Data received: {"id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","type":"Buying","amount":20,"rate":127.5,"negotiated_rate":"0","amount_paid":2550,"amount_received":20,"narrative":null,"transaction_number":"TR-3563-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:33:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a02d8fa-c045-47b9-9216-1779b3756a1f","cancellation_reason":null,"customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 16:33:44","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:18:33] local.INFO: ID present? YES  
[2026-07-28 20:18:33] local.INFO: ID value: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 20:18:33] local.INFO: ID empty? NO  
[2026-07-28 20:18:33] local.INFO: Attempting to find record with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 20:18:33] local.INFO: Record not found, creating new with ID: 83eddf8e-9a5a-4e96-8316-d0d1fb4440f2  
[2026-07-28 20:18:33] local.INFO: Created record: {"id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","type":"Buying","amount":20,"rate":127.5,"negotiated_rate":"0","amount_paid":2550,"amount_received":20,"narrative":null,"transaction_number":"TR-3563-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 16:33:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a02d8fa-c045-47b9-9216-1779b3756a1f","cancellation_reason":null,"customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:33.000000Z","created_at":"2026-07-28T17:18:33.000000Z"} 
[2026-07-28 20:18:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:34] local.INFO: Model: Transaction  
[2026-07-28 20:18:34] local.INFO: Data received: {"id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3582-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:37:07","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"653bc0ea-2a4e-4621-9921-f2eea24c5e73","cancellation_reason":null,"customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 13:37:05","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 20:18:34] local.INFO: ID present? YES  
[2026-07-28 20:18:34] local.INFO: ID value: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 20:18:34] local.INFO: ID empty? NO  
[2026-07-28 20:18:34] local.INFO: Attempting to find record with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 20:18:34] local.INFO: Record not found, creating new with ID: 85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375  
[2026-07-28 20:18:34] local.INFO: Created record: {"id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3582-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 13:37:07","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"653bc0ea-2a4e-4621-9921-f2eea24c5e73","cancellation_reason":null,"customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:34.000000Z","created_at":"2026-07-28T17:18:34.000000Z"} 
[2026-07-28 20:18:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:35] local.INFO: Model: Transaction  
[2026-07-28 20:18:35] local.INFO: Data received: {"id":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","type":"Buying","amount":30,"rate":145,"negotiated_rate":"0","amount_paid":4350,"amount_received":30,"narrative":null,"transaction_number":"TR-3583-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 14:02:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d2440bf8-e529-497e-b31a-1d6e03fe4c1c","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 14:02:40","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 20:18:35] local.INFO: ID present? YES  
[2026-07-28 20:18:35] local.INFO: ID value: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 20:18:35] local.INFO: ID empty? NO  
[2026-07-28 20:18:35] local.INFO: Attempting to find record with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 20:18:35] local.INFO: Record not found, creating new with ID: 87021275-3069-4a43-990e-3bffb335f16e  
[2026-07-28 20:18:35] local.INFO: Created record: {"id":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","type":"Buying","amount":30,"rate":145,"negotiated_rate":"0","amount_paid":4350,"amount_received":30,"narrative":null,"transaction_number":"TR-3583-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 14:02:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d2440bf8-e529-497e-b31a-1d6e03fe4c1c","cancellation_reason":null,"customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:35.000000Z","created_at":"2026-07-28T17:18:35.000000Z"} 
[2026-07-28 20:18:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:37] local.INFO: Model: Transaction  
[2026-07-28 20:18:37] local.INFO: Data received: {"id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","type":"Buying","amount":120,"rate":127.5,"negotiated_rate":"0","amount_paid":15300,"amount_received":120,"narrative":null,"transaction_number":"TR-3553-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:41:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0f583e1e-c0db-4b2b-9f1a-eaf5f4ca706d","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-21 17:40:58","updated_at":"2026-07-23 23:57:38"} 
[2026-07-28 20:18:37] local.INFO: ID present? YES  
[2026-07-28 20:18:37] local.INFO: ID value: 8b3ab212-046c-44d6-aea2-5bf0a587a08d  
[2026-07-28 20:18:37] local.INFO: ID empty? NO  
[2026-07-28 20:18:37] local.INFO: Attempting to find record with ID: 8b3ab212-046c-44d6-aea2-5bf0a587a08d  
[2026-07-28 20:18:37] local.INFO: Record not found, creating new with ID: 8b3ab212-046c-44d6-aea2-5bf0a587a08d  
[2026-07-28 20:18:37] local.INFO: Created record: {"id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","type":"Buying","amount":120,"rate":127.5,"negotiated_rate":"0","amount_paid":15300,"amount_received":120,"narrative":null,"transaction_number":"TR-3553-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 17:41:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0f583e1e-c0db-4b2b-9f1a-eaf5f4ca706d","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:37.000000Z","created_at":"2026-07-28T17:18:37.000000Z"} 
[2026-07-28 20:18:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:38] local.INFO: Model: Transaction  
[2026-07-28 20:18:38] local.INFO: Data received: {"id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3571-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:31:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c3eccb4a-aad4-469c-ab26-ee57f9d5d935","cancellation_reason":null,"customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-26 10:30:58","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 20:18:38] local.INFO: ID present? YES  
[2026-07-28 20:18:38] local.INFO: ID value: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 20:18:38] local.INFO: ID empty? NO  
[2026-07-28 20:18:38] local.INFO: Attempting to find record with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 20:18:38] local.INFO: Record not found, creating new with ID: 8ee74f47-6542-444f-80b3-d9366c8dcec6  
[2026-07-28 20:18:38] local.INFO: Created record: {"id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3571-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 10:31:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c3eccb4a-aad4-469c-ab26-ee57f9d5d935","cancellation_reason":null,"customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:38.000000Z","created_at":"2026-07-28T17:18:38.000000Z"} 
[2026-07-28 20:18:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:39] local.INFO: Model: Transaction  
[2026-07-28 20:18:39] local.INFO: Data received: {"id":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3554-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:44:49","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fae1deb9-4b7f-47e8-a58b-29452374d690","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-24 13:44:47","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 20:18:39] local.INFO: ID present? YES  
[2026-07-28 20:18:39] local.INFO: ID value: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 20:18:39] local.INFO: ID empty? NO  
[2026-07-28 20:18:39] local.INFO: Attempting to find record with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 20:18:39] local.INFO: Record not found, creating new with ID: 97379de0-4eb1-4349-982f-a046c76cffc8  
[2026-07-28 20:18:39] local.INFO: Created record: {"id":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3554-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:44:49","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fae1deb9-4b7f-47e8-a58b-29452374d690","cancellation_reason":null,"customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:39.000000Z","created_at":"2026-07-28T17:18:39.000000Z"} 
[2026-07-28 20:18:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:41] local.INFO: Model: Transaction  
[2026-07-28 20:18:41] local.INFO: Data received: {"id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3592-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:43:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6d102a77-58d7-46cf-af49-2dd887cebe78","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 11:43:29","updated_at":"2026-07-27 14:46:00"} 
[2026-07-28 20:18:41] local.INFO: ID present? YES  
[2026-07-28 20:18:41] local.INFO: ID value: 9ea1d2f4-d33c-4fb2-b56e-c2323582f359  
[2026-07-28 20:18:41] local.INFO: ID empty? NO  
[2026-07-28 20:18:41] local.INFO: Attempting to find record with ID: 9ea1d2f4-d33c-4fb2-b56e-c2323582f359  
[2026-07-28 20:18:41] local.INFO: Record not found, creating new with ID: 9ea1d2f4-d33c-4fb2-b56e-c2323582f359  
[2026-07-28 20:18:41] local.INFO: Created record: {"id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3592-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:43:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6d102a77-58d7-46cf-af49-2dd887cebe78","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:41.000000Z","created_at":"2026-07-28T17:18:41.000000Z"} 
[2026-07-28 20:18:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:42] local.INFO: Model: Transaction  
[2026-07-28 20:18:42] local.INFO: Data received: {"id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","type":"Buying","amount":1500,"rate":128.5,"negotiated_rate":"0","amount_paid":192750,"amount_received":1500,"narrative":null,"transaction_number":"TR-3577-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:54:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bebd402-806e-4922-9ea6-d5c5ac73a7d6","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 11:54:38","updated_at":"2026-07-26 17:55:30"} 
[2026-07-28 20:18:42] local.INFO: ID present? YES  
[2026-07-28 20:18:42] local.INFO: ID value: aeee902c-dbf4-45dd-94bf-7d7fdc5585e7  
[2026-07-28 20:18:42] local.INFO: ID empty? NO  
[2026-07-28 20:18:42] local.INFO: Attempting to find record with ID: aeee902c-dbf4-45dd-94bf-7d7fdc5585e7  
[2026-07-28 20:18:42] local.INFO: Record not found, creating new with ID: aeee902c-dbf4-45dd-94bf-7d7fdc5585e7  
[2026-07-28 20:18:42] local.INFO: Created record: {"id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","type":"Buying","amount":1500,"rate":128.5,"negotiated_rate":"0","amount_paid":192750,"amount_received":1500,"narrative":null,"transaction_number":"TR-3577-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:54:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8bebd402-806e-4922-9ea6-d5c5ac73a7d6","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:42.000000Z","created_at":"2026-07-28T17:18:42.000000Z"} 
[2026-07-28 20:18:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:43] local.INFO: Model: Transaction  
[2026-07-28 20:18:43] local.INFO: Data received: {"id":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3557-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:37:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"56295b3d-890a-4382-b1a8-56716237135d","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-24 14:37:32","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 20:18:43] local.INFO: ID present? YES  
[2026-07-28 20:18:43] local.INFO: ID value: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 20:18:43] local.INFO: ID empty? NO  
[2026-07-28 20:18:43] local.INFO: Attempting to find record with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 20:18:43] local.INFO: Record not found, creating new with ID: b039f33c-ae0d-43de-b971-6fcac9defb12  
[2026-07-28 20:18:43] local.INFO: Created record: {"id":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","type":"Buying","amount":200,"rate":145,"negotiated_rate":"0","amount_paid":29000,"amount_received":200,"narrative":null,"transaction_number":"TR-3557-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 14:37:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"56295b3d-890a-4382-b1a8-56716237135d","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:43.000000Z","created_at":"2026-07-28T17:18:43.000000Z"} 
[2026-07-28 20:18:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:44] local.INFO: Model: Transaction  
[2026-07-28 20:18:44] local.INFO: Data received: {"id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","type":"Buying","amount":400,"rate":128,"negotiated_rate":"0","amount_paid":51200,"amount_received":400,"narrative":null,"transaction_number":"TR-3565-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:51:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"bca2aa0e-e66c-4bec-ae9c-477d56bf7011","cancellation_reason":null,"customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-25 11:51:32","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 20:18:44] local.INFO: ID present? YES  
[2026-07-28 20:18:44] local.INFO: ID value: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 20:18:44] local.INFO: ID empty? NO  
[2026-07-28 20:18:44] local.INFO: Attempting to find record with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 20:18:44] local.INFO: Record not found, creating new with ID: ba6a7e5a-6a88-4e17-add9-ca7ed30ae986  
[2026-07-28 20:18:44] local.INFO: Created record: {"id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","type":"Buying","amount":400,"rate":128,"negotiated_rate":"0","amount_paid":51200,"amount_received":400,"narrative":null,"transaction_number":"TR-3565-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 11:51:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"bca2aa0e-e66c-4bec-ae9c-477d56bf7011","cancellation_reason":null,"customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:44.000000Z","created_at":"2026-07-28T17:18:44.000000Z"} 
[2026-07-28 20:18:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:46] local.INFO: Model: Transaction  
[2026-07-28 20:18:46] local.INFO: Data received: {"id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","type":"Selling","amount":5000,"rate":129.400000000000005684341886080801486968994140625,"negotiated_rate":"0","amount_paid":5000,"amount_received":647000,"narrative":null,"transaction_number":"TR-3556-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:57:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Business Proceeds / Sales","purpose":"FOREX BUSINESS","uniqid":null,"batch_id":"04814dd9-417c-432d-943a-3d5a0299bcbe","cancellation_reason":null,"customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-24 13:57:36","updated_at":"2026-07-24 14:19:23"} 
[2026-07-28 20:18:46] local.INFO: ID present? YES  
[2026-07-28 20:18:46] local.INFO: ID value: bc32ac8f-813f-409e-b10a-c6065c6e082e  
[2026-07-28 20:18:46] local.INFO: ID empty? NO  
[2026-07-28 20:18:46] local.INFO: Attempting to find record with ID: bc32ac8f-813f-409e-b10a-c6065c6e082e  
[2026-07-28 20:18:46] local.INFO: Record not found, creating new with ID: bc32ac8f-813f-409e-b10a-c6065c6e082e  
[2026-07-28 20:18:46] local.INFO: Created record: {"id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","type":"Selling","amount":5000,"rate":129.400000000000005684341886080801486968994140625,"negotiated_rate":"0","amount_paid":5000,"amount_received":647000,"narrative":null,"transaction_number":"TR-3556-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-24 13:57:37","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Business Proceeds / Sales","purpose":"FOREX BUSINESS","uniqid":null,"batch_id":"04814dd9-417c-432d-943a-3d5a0299bcbe","cancellation_reason":null,"customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-28T17:18:46.000000Z","created_at":"2026-07-28T17:18:46.000000Z"} 
[2026-07-28 20:18:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:47] local.INFO: Model: Transaction  
[2026-07-28 20:18:47] local.INFO: Data received: {"id":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3570-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:24:01","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"3e40ef54-d99b-4277-af48-ca223e7662db","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 18:23:59","updated_at":"2026-07-25 18:29:55"} 
[2026-07-28 20:18:47] local.INFO: ID present? YES  
[2026-07-28 20:18:47] local.INFO: ID value: c274958e-a976-437d-9255-11d5ffb415d7  
[2026-07-28 20:18:47] local.INFO: ID empty? NO  
[2026-07-28 20:18:47] local.INFO: Attempting to find record with ID: c274958e-a976-437d-9255-11d5ffb415d7  
[2026-07-28 20:18:47] local.INFO: Record not found, creating new with ID: c274958e-a976-437d-9255-11d5ffb415d7  
[2026-07-28 20:18:47] local.INFO: Created record: {"id":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3570-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 18:24:01","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"3e40ef54-d99b-4277-af48-ca223e7662db","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:47.000000Z","created_at":"2026-07-28T17:18:47.000000Z"} 
[2026-07-28 20:18:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:48] local.INFO: Model: Transaction  
[2026-07-28 20:18:48] local.INFO: Data received: {"id":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3549-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:27:51","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8ec39f9d-12a3-45a3-9ffe-17529feca6b1","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-20 09:27:49","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:18:48] local.INFO: ID present? YES  
[2026-07-28 20:18:48] local.INFO: ID value: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 20:18:48] local.INFO: ID empty? NO  
[2026-07-28 20:18:48] local.INFO: Attempting to find record with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 20:18:48] local.INFO: Record not found, creating new with ID: c70f0e53-b380-41e2-b177-7eaa3789966b  
[2026-07-28 20:18:48] local.INFO: Created record: {"id":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","type":"Buying","amount":400,"rate":145,"negotiated_rate":"0","amount_paid":58000,"amount_received":400,"narrative":null,"transaction_number":"TR-3549-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:27:51","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8ec39f9d-12a3-45a3-9ffe-17529feca6b1","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:48.000000Z","created_at":"2026-07-28T17:18:48.000000Z"} 
[2026-07-28 20:18:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:49] local.INFO: Model: Transaction  
[2026-07-28 20:18:49] local.INFO: Data received: {"id":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","type":"Buying","amount":250,"rate":128,"negotiated_rate":"0","amount_paid":32000,"amount_received":250,"narrative":null,"transaction_number":"TR-3596-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 13:47:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c595c4f8-f442-4bb1-a2e0-0e758653d2a3","cancellation_reason":null,"customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 13:47:45","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:18:49] local.INFO: ID present? YES  
[2026-07-28 20:18:49] local.INFO: ID value: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 20:18:49] local.INFO: ID empty? NO  
[2026-07-28 20:18:49] local.INFO: Attempting to find record with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 20:18:49] local.INFO: Record not found, creating new with ID: c89da7a3-245c-4de8-92af-26e4464cf322  
[2026-07-28 20:18:49] local.INFO: Created record: {"id":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","type":"Buying","amount":250,"rate":128,"negotiated_rate":"0","amount_paid":32000,"amount_received":250,"narrative":null,"transaction_number":"TR-3596-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 13:47:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c595c4f8-f442-4bb1-a2e0-0e758653d2a3","cancellation_reason":null,"customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:49.000000Z","created_at":"2026-07-28T17:18:49.000000Z"} 
[2026-07-28 20:18:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:50] local.INFO: Model: Transaction  
[2026-07-28 20:18:50] local.INFO: Data received: {"id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","type":"Buying","amount":60,"rate":145,"negotiated_rate":"0","amount_paid":8700,"amount_received":60,"narrative":null,"transaction_number":"TR-3567-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:52:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b0938d78-f032-4ca8-90e7-4cb078fcfe7f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-25 17:52:40","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 20:18:50] local.INFO: ID present? YES  
[2026-07-28 20:18:50] local.INFO: ID value: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 20:18:50] local.INFO: ID empty? NO  
[2026-07-28 20:18:50] local.INFO: Attempting to find record with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 20:18:50] local.INFO: Record not found, creating new with ID: cf9267ab-03fa-4e20-8664-7d613bd08bba  
[2026-07-28 20:18:50] local.INFO: Created record: {"id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","type":"Buying","amount":60,"rate":145,"negotiated_rate":"0","amount_paid":8700,"amount_received":60,"narrative":null,"transaction_number":"TR-3567-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-25 17:52:43","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b0938d78-f032-4ca8-90e7-4cb078fcfe7f","cancellation_reason":null,"customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-28T17:18:50.000000Z","created_at":"2026-07-28T17:18:50.000000Z"} 
[2026-07-28 20:18:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:52] local.INFO: Model: Transaction  
[2026-07-28 20:18:52] local.INFO: Data received: {"id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","type":"Buying","amount":140,"rate":127.5,"negotiated_rate":"0","amount_paid":17850,"amount_received":140,"narrative":null,"transaction_number":"TR-3575-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:13:59","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c650a874-09cd-487c-bba2-7829d94ffd4c","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-26 11:13:54","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 20:18:52] local.INFO: ID present? YES  
[2026-07-28 20:18:52] local.INFO: ID value: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 20:18:52] local.INFO: ID empty? NO  
[2026-07-28 20:18:52] local.INFO: Attempting to find record with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 20:18:52] local.INFO: Record not found, creating new with ID: d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0  
[2026-07-28 20:18:52] local.INFO: Created record: {"id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","type":"Buying","amount":140,"rate":127.5,"negotiated_rate":"0","amount_paid":17850,"amount_received":140,"narrative":null,"transaction_number":"TR-3575-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 11:13:59","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c650a874-09cd-487c-bba2-7829d94ffd4c","cancellation_reason":null,"customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:52.000000Z","created_at":"2026-07-28T17:18:52.000000Z"} 
[2026-07-28 20:18:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:53] local.INFO: Model: Transaction  
[2026-07-28 20:18:53] local.INFO: Data received: {"id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","type":"Buying","amount":100,"rate":169.5,"negotiated_rate":"0","amount_paid":16950,"amount_received":100,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-07-28 12:28:25","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:18:53] local.INFO: ID present? YES  
[2026-07-28 20:18:53] local.INFO: ID value: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 20:18:53] local.INFO: ID empty? NO  
[2026-07-28 20:18:53] local.INFO: Attempting to find record with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 20:18:53] local.INFO: Record not found, creating new with ID: d6ee4ced-a8e2-4540-9074-8f05108c5bd2  
[2026-07-28 20:18:53] local.INFO: Created record: {"id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","type":"Buying","amount":100,"rate":169.5,"negotiated_rate":"0","amount_paid":16950,"amount_received":100,"narrative":null,"transaction_number":"TR-3593-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 12:28:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c351b004-6d04-4514-9703-3d5c2b18f604","cancellation_reason":null,"customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","updated_at":"2026-07-28T17:18:53.000000Z","created_at":"2026-07-28T17:18:53.000000Z"} 
[2026-07-28 20:18:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:54] local.INFO: Model: Transaction  
[2026-07-28 20:18:54] local.INFO: Data received: {"id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","type":"Buying","amount":2500,"rate":128.5,"negotiated_rate":"0","amount_paid":321250,"amount_received":2500,"narrative":null,"transaction_number":"TR-3597-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 16:36:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d6a388b0-3fb2-4a0e-8025-b93f25dc957a","cancellation_reason":null,"customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-28 16:36:10","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 20:18:54] local.INFO: ID present? YES  
[2026-07-28 20:18:54] local.INFO: ID value: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 20:18:54] local.INFO: ID empty? NO  
[2026-07-28 20:18:54] local.INFO: Attempting to find record with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 20:18:54] local.INFO: Record not found, creating new with ID: dc6ad7c4-7b49-4850-af37-19760fa0d8d9  
[2026-07-28 20:18:54] local.INFO: Created record: {"id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","type":"Buying","amount":2500,"rate":128.5,"negotiated_rate":"0","amount_paid":321250,"amount_received":2500,"narrative":null,"transaction_number":"TR-3597-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 16:36:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d6a388b0-3fb2-4a0e-8025-b93f25dc957a","cancellation_reason":null,"customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:54.000000Z","created_at":"2026-07-28T17:18:54.000000Z"} 
[2026-07-28 20:18:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:56] local.INFO: Model: Transaction  
[2026-07-28 20:18:56] local.INFO: Data received: {"id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","type":"Buying","amount":195,"rate":127.5,"negotiated_rate":"0","amount_paid":24862.5,"amount_received":195,"narrative":null,"transaction_number":"TR-3548-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:26:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0ce826eb-4be0-4a21-85f3-b58b62cb7b71","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-20 09:26:17","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:18:56] local.INFO: ID present? YES  
[2026-07-28 20:18:56] local.INFO: ID value: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 20:18:56] local.INFO: ID empty? NO  
[2026-07-28 20:18:56] local.INFO: Attempting to find record with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 20:18:56] local.INFO: Record not found, creating new with ID: e1ee1b1f-c458-4504-96f7-4fb32a820b68  
[2026-07-28 20:18:56] local.INFO: Created record: {"id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","type":"Buying","amount":195,"rate":127.5,"negotiated_rate":"0","amount_paid":24862.5,"amount_received":195,"narrative":null,"transaction_number":"TR-3548-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-20 09:26:19","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0ce826eb-4be0-4a21-85f3-b58b62cb7b71","cancellation_reason":null,"customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:56.000000Z","created_at":"2026-07-28T17:18:56.000000Z"} 
[2026-07-28 20:18:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:57] local.INFO: Model: Transaction  
[2026-07-28 20:18:57] local.INFO: Data received: {"id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","type":"Buying","amount":700,"rate":128.5,"negotiated_rate":"0","amount_paid":89950,"amount_received":700,"narrative":null,"transaction_number":"TR-3591-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:43:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"37bfe198-2392-4515-b32c-41d286b961e3","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 11:43:09","updated_at":"2026-07-27 14:48:23"} 
[2026-07-28 20:18:57] local.INFO: ID present? YES  
[2026-07-28 20:18:57] local.INFO: ID value: ee6e82b6-e8a2-46b1-afeb-af77d8c09184  
[2026-07-28 20:18:57] local.INFO: ID empty? NO  
[2026-07-28 20:18:57] local.INFO: Attempting to find record with ID: ee6e82b6-e8a2-46b1-afeb-af77d8c09184  
[2026-07-28 20:18:57] local.INFO: Record not found, creating new with ID: ee6e82b6-e8a2-46b1-afeb-af77d8c09184  
[2026-07-28 20:18:57] local.INFO: Created record: {"id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","type":"Buying","amount":700,"rate":128.5,"negotiated_rate":"0","amount_paid":89950,"amount_received":700,"narrative":null,"transaction_number":"TR-3591-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 11:43:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"37bfe198-2392-4515-b32c-41d286b961e3","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:57.000000Z","created_at":"2026-07-28T17:18:57.000000Z"} 
[2026-07-28 20:18:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:58] local.INFO: Model: Transaction  
[2026-07-28 20:18:58] local.INFO: Data received: {"id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3550-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 15:55:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c5645e74-3ab0-4010-870e-2ba727a21aa9","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-21 15:54:52","updated_at":"2026-07-24 00:32:23"} 
[2026-07-28 20:18:58] local.INFO: ID present? YES  
[2026-07-28 20:18:58] local.INFO: ID value: ef52c646-0b38-4749-9bb4-08e4d4ee58de  
[2026-07-28 20:18:58] local.INFO: ID empty? NO  
[2026-07-28 20:18:58] local.INFO: Attempting to find record with ID: ef52c646-0b38-4749-9bb4-08e4d4ee58de  
[2026-07-28 20:18:58] local.INFO: Record not found, creating new with ID: ef52c646-0b38-4749-9bb4-08e4d4ee58de  
[2026-07-28 20:18:58] local.INFO: Created record: {"id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3550-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-21 15:55:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c5645e74-3ab0-4010-870e-2ba727a21aa9","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:58.000000Z","created_at":"2026-07-28T17:18:58.000000Z"} 
[2026-07-28 20:18:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:18:59] local.INFO: Model: Transaction  
[2026-07-28 20:18:59] local.INFO: Data received: {"id":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","type":"Buying","amount":290,"rate":127.5,"negotiated_rate":"0","amount_paid":36975,"amount_received":290,"narrative":null,"transaction_number":"TR-3589-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 10:43:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5d97aaec-bc23-471a-bff9-7794b4e44201","cancellation_reason":null,"customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-27 10:43:42","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 20:18:59] local.INFO: ID present? YES  
[2026-07-28 20:18:59] local.INFO: ID value: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 20:18:59] local.INFO: ID empty? NO  
[2026-07-28 20:18:59] local.INFO: Attempting to find record with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 20:18:59] local.INFO: Record not found, creating new with ID: efbbbe8d-bb62-4338-9108-12af159bf67c  
[2026-07-28 20:18:59] local.INFO: Created record: {"id":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","type":"Buying","amount":290,"rate":127.5,"negotiated_rate":"0","amount_paid":36975,"amount_received":290,"narrative":null,"transaction_number":"TR-3589-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-27 10:43:46","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5d97aaec-bc23-471a-bff9-7794b4e44201","cancellation_reason":null,"customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-28T17:18:59.000000Z","created_at":"2026-07-28T17:18:59.000000Z"} 
[2026-07-28 20:19:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:01] local.INFO: Model: Transaction  
[2026-07-28 20:19:01] local.INFO: Data received: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","type":"Selling","amount":10,"rate":130,"negotiated_rate":"0","amount_paid":10,"amount_received":1300,"narrative":null,"transaction_number":"TR-3587-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","cancellation_reason":null,"customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-26 17:44:27","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 20:19:01] local.INFO: ID present? YES  
[2026-07-28 20:19:01] local.INFO: ID value: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 20:19:01] local.INFO: ID empty? NO  
[2026-07-28 20:19:01] local.INFO: Attempting to find record with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 20:19:01] local.INFO: Record not found, creating new with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-28 20:19:01] local.INFO: Created record: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","type":"Selling","amount":10,"rate":130,"negotiated_rate":"0","amount_paid":10,"amount_received":1300,"narrative":null,"transaction_number":"TR-3587-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","cancellation_reason":null,"customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-28T17:19:01.000000Z","created_at":"2026-07-28T17:19:01.000000Z"} 
[2026-07-28 20:19:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:02] local.INFO: Model: Journal  
[2026-07-28 20:19:02] local.INFO: Data received: {"id":"01440809-1e6b-454c-8f1b-836a47219b9e","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 20:19:02] local.INFO: ID present? YES  
[2026-07-28 20:19:02] local.INFO: ID value: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 20:19:02] local.INFO: ID empty? NO  
[2026-07-28 20:19:02] local.INFO: Attempting to find record with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 20:19:02] local.INFO: Record not found, creating new with ID: 01440809-1e6b-454c-8f1b-836a47219b9e  
[2026-07-28 20:19:02] local.INFO: Created record: {"id":"01440809-1e6b-454c-8f1b-836a47219b9e","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:19:02.000000Z","created_at":"2026-07-28T17:19:02.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-3311.88999999999987267074175179004669189453125,"debit_total":56152.110000000000582076609134674072265625,"credit_total":"59464.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:36:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:03] local.INFO: Model: Journal  
[2026-07-28 20:19:03] local.INFO: Data received: {"id":"06001167-046f-4c13-84ad-973b399f84ea","type":"Credit","amount":"309871.00","rate":null,"lcy_amount":"309871.000000","narrative":"MPESA DEPOSIT 26-07-2026","uniqid":"2e3d9be2-f34a-4df4-8146-aea9ec4b7595","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 18:50:19","updated_at":"2026-07-27 09:43:35"} 
[2026-07-28 20:19:03] local.INFO: ID present? YES  
[2026-07-28 20:19:03] local.INFO: ID value: 06001167-046f-4c13-84ad-973b399f84ea  
[2026-07-28 20:19:03] local.INFO: ID empty? NO  
[2026-07-28 20:19:03] local.INFO: Attempting to find record with ID: 06001167-046f-4c13-84ad-973b399f84ea  
[2026-07-28 20:19:03] local.INFO: Record not found, creating new with ID: 06001167-046f-4c13-84ad-973b399f84ea  
[2026-07-28 20:19:03] local.INFO: Created record: {"id":"06001167-046f-4c13-84ad-973b399f84ea","type":"Credit","amount":"309871.00","rate":null,"lcy_amount":"309871.000000","narrative":"MPESA DEPOSIT 26-07-2026","uniqid":"2e3d9be2-f34a-4df4-8146-aea9ec4b7595","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:03.000000Z","created_at":"2026-07-28T17:19:03.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2231769.0,"debit_total":"3759990.00","credit_total":5991759.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T16:28:03.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:05] local.INFO: Model: Journal  
[2026-07-28 20:19:05] local.INFO: Data received: {"id":"073a1d09-aa51-49b3-8b95-08da52e60aa0","type":"Credit","amount":"70448.00","rate":null,"lcy_amount":"70448.000000","narrative":"RIA PAID OUT 21-07-2026","uniqid":"37212d46-4655-486b-8fb2-895c873716ca","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 18:41:44","updated_at":"2026-07-24 02:08:10"} 
[2026-07-28 20:19:05] local.INFO: ID present? YES  
[2026-07-28 20:19:05] local.INFO: ID value: 073a1d09-aa51-49b3-8b95-08da52e60aa0  
[2026-07-28 20:19:05] local.INFO: ID empty? NO  
[2026-07-28 20:19:05] local.INFO: Attempting to find record with ID: 073a1d09-aa51-49b3-8b95-08da52e60aa0  
[2026-07-28 20:19:05] local.INFO: Record not found, creating new with ID: 073a1d09-aa51-49b3-8b95-08da52e60aa0  
[2026-07-28 20:19:05] local.INFO: Created record: {"id":"073a1d09-aa51-49b3-8b95-08da52e60aa0","type":"Credit","amount":"70448.00","rate":null,"lcy_amount":"70448.000000","narrative":"RIA PAID OUT 21-07-2026","uniqid":"37212d46-4655-486b-8fb2-895c873716ca","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:05.000000Z","created_at":"2026-07-28T17:19:05.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1264771.5,"debit_total":"16884677.30","credit_total":15619905.8000000007450580596923828125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:48:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:06] local.INFO: Model: Journal  
[2026-07-28 20:19:06] local.INFO: Data received: {"id":"09e82691-ffd8-4048-b07f-017e3cff65b7","type":"Credit","amount":"178.00","rate":"169.000000","lcy_amount":"178.000000","narrative":"Gain on TR-3551-2026","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 20:19:06] local.INFO: ID present? YES  
[2026-07-28 20:19:06] local.INFO: ID value: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 20:19:06] local.INFO: ID empty? NO  
[2026-07-28 20:19:06] local.INFO: Attempting to find record with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 20:19:06] local.INFO: Record not found, creating new with ID: 09e82691-ffd8-4048-b07f-017e3cff65b7  
[2026-07-28 20:19:06] local.INFO: Created record: {"id":"09e82691-ffd8-4048-b07f-017e3cff65b7","type":"Credit","amount":"178.00","rate":"169.000000","lcy_amount":"178.000000","narrative":"Gain on TR-3551-2026","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:06.000000Z","created_at":"2026-07-28T17:19:06.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-79614.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":86814.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T16:14:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:07] local.INFO: Model: Journal  
[2026-07-28 20:19:07] local.INFO: Data received: {"id":"0a374e1e-2fc6-485d-9a3c-a5b12fe370d3","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:19:07] local.INFO: ID present? YES  
[2026-07-28 20:19:07] local.INFO: ID value: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 20:19:07] local.INFO: ID empty? NO  
[2026-07-28 20:19:07] local.INFO: Attempting to find record with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 20:19:07] local.INFO: Record not found, creating new with ID: 0a374e1e-2fc6-485d-9a3c-a5b12fe370d3  
[2026-07-28 20:19:07] local.INFO: Created record: {"id":"0a374e1e-2fc6-485d-9a3c-a5b12fe370d3","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:19:07.000000Z","created_at":"2026-07-28T17:19:07.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3685.0,"debit_total":15510.0,"credit_total":"19195.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:14:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:08] local.INFO: Model: Journal  
[2026-07-28 20:19:08] local.INFO: Data received: {"id":"0a5145c5-569a-4234-912e-55a6d5506ea5","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 20:19:08] local.INFO: ID present? YES  
[2026-07-28 20:19:08] local.INFO: ID value: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 20:19:08] local.INFO: ID empty? NO  
[2026-07-28 20:19:08] local.INFO: Attempting to find record with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 20:19:08] local.INFO: Record not found, creating new with ID: 0a5145c5-569a-4234-912e-55a6d5506ea5  
[2026-07-28 20:19:08] local.INFO: Created record: {"id":"0a5145c5-569a-4234-912e-55a6d5506ea5","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:19:08.000000Z","created_at":"2026-07-28T17:19:08.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3285.0,"debit_total":15910.0,"credit_total":"19195.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:10] local.INFO: Model: Journal  
[2026-07-28 20:19:10] local.INFO: Data received: {"id":"0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa","type":"Credit","amount":"8700.00","rate":"145.000000","lcy_amount":"8700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 20:19:10] local.INFO: ID present? YES  
[2026-07-28 20:19:10] local.INFO: ID value: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 20:19:10] local.INFO: ID empty? NO  
[2026-07-28 20:19:10] local.INFO: Attempting to find record with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 20:19:10] local.INFO: Record not found, creating new with ID: 0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa  
[2026-07-28 20:19:10] local.INFO: Created record: {"id":"0bf19ca3-9faf-4542-ad6e-6eda0cfd8eaa","type":"Credit","amount":"8700.00","rate":"145.000000","lcy_amount":"8700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:10.000000Z","created_at":"2026-07-28T17:19:10.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1256071.5,"debit_total":"16884677.30","credit_total":15628605.8000000007450580596923828125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:11] local.INFO: Model: Journal  
[2026-07-28 20:19:11] local.INFO: Data received: {"id":"0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3566-2026","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 20:19:11] local.INFO: ID present? YES  
[2026-07-28 20:19:11] local.INFO: ID value: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 20:19:11] local.INFO: ID empty? NO  
[2026-07-28 20:19:11] local.INFO: Attempting to find record with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 20:19:11] local.INFO: Record not found, creating new with ID: 0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8  
[2026-07-28 20:19:11] local.INFO: Created record: {"id":"0d50e7b0-fb1a-4899-8cc4-3bd0b0ea6cc8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3566-2026","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:11.000000Z","created_at":"2026-07-28T17:19:11.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-80854.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":88054.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:12] local.INFO: Model: Journal  
[2026-07-28 20:19:12] local.INFO: Data received: {"id":"0dac0432-0d82-4d52-9831-9f3e3b1cb4ce","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"10.000000","narrative":"Gain on TR-3587-2026","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 20:19:12] local.INFO: ID present? YES  
[2026-07-28 20:19:12] local.INFO: ID value: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 20:19:12] local.INFO: ID empty? NO  
[2026-07-28 20:19:12] local.INFO: Attempting to find record with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 20:19:12] local.INFO: Record not found, creating new with ID: 0dac0432-0d82-4d52-9831-9f3e3b1cb4ce  
[2026-07-28 20:19:12] local.INFO: Created record: {"id":"0dac0432-0d82-4d52-9831-9f3e3b1cb4ce","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"10.000000","narrative":"Gain on TR-3587-2026","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:12.000000Z","created_at":"2026-07-28T17:19:12.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-80864.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":88064.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:13] local.INFO: Model: Journal  
[2026-07-28 20:19:13] local.INFO: Data received: {"id":"0ec347bb-595a-4a1a-a038-5409cd11e95b","type":"Credit","amount":"192750.00","rate":"128.500000","lcy_amount":"192750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:40","updated_at":"2026-07-26 11:54:40"} 
[2026-07-28 20:19:13] local.INFO: ID present? YES  
[2026-07-28 20:19:13] local.INFO: ID value: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 20:19:13] local.INFO: ID empty? NO  
[2026-07-28 20:19:13] local.INFO: Attempting to find record with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 20:19:13] local.INFO: Record not found, creating new with ID: 0ec347bb-595a-4a1a-a038-5409cd11e95b  
[2026-07-28 20:19:13] local.INFO: Created record: {"id":"0ec347bb-595a-4a1a-a038-5409cd11e95b","type":"Credit","amount":"192750.00","rate":"128.500000","lcy_amount":"192750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:13.000000Z","created_at":"2026-07-28T17:19:13.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1063321.5,"debit_total":"16884677.30","credit_total":15821355.8000000007450580596923828125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:15] local.INFO: Model: Journal  
[2026-07-28 20:19:15] local.INFO: Data received: {"id":"0ee056da-4c78-42be-baab-5947136f619b","type":"Credit","amount":"100.00","rate":null,"lcy_amount":"17345.000000","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 17:28:12","updated_at":"2026-07-28 19:06:02"} 
[2026-07-28 20:19:15] local.INFO: ID present? YES  
[2026-07-28 20:19:15] local.INFO: ID value: 0ee056da-4c78-42be-baab-5947136f619b  
[2026-07-28 20:19:15] local.INFO: ID empty? NO  
[2026-07-28 20:19:15] local.INFO: Attempting to find record with ID: 0ee056da-4c78-42be-baab-5947136f619b  
[2026-07-28 20:19:15] local.INFO: Record found, updating...  
[2026-07-28 20:19:15] local.INFO: Before update: {"id":"0ee056da-4c78-42be-baab-5947136f619b","type":"Credit","amount":"100.00","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","rate":null,"lcy_amount":"17345.000000","fx_category":"Withdrawal","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:06:02.000000Z","updated_at":"2026-07-28T16:06:02.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:19:15] local.INFO: After update: {"id":"0ee056da-4c78-42be-baab-5947136f619b","type":"Credit","amount":"100.00","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","rate":null,"lcy_amount":"17345.000000","fx_category":"Withdrawal","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:06:02.000000Z","updated_at":"2026-07-28T16:06:02.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:19:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:16] local.INFO: Model: Journal  
[2026-07-28 20:19:16] local.INFO: Data received: {"id":"0f76a4e8-9f54-4a3e-b9d0-544e3caae19a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3549-2026","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:19:16] local.INFO: ID present? YES  
[2026-07-28 20:19:16] local.INFO: ID value: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 20:19:16] local.INFO: ID empty? NO  
[2026-07-28 20:19:16] local.INFO: Attempting to find record with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 20:19:16] local.INFO: Record not found, creating new with ID: 0f76a4e8-9f54-4a3e-b9d0-544e3caae19a  
[2026-07-28 20:19:16] local.INFO: Created record: {"id":"0f76a4e8-9f54-4a3e-b9d0-544e3caae19a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3549-2026","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:16.000000Z","created_at":"2026-07-28T17:19:16.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-83344.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":90544.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:17] local.INFO: Model: Journal  
[2026-07-28 20:19:17] local.INFO: Data received: {"id":"0faf2e06-8733-4383-a0f4-0626a5796989","type":"Debit","amount":"2600.00","rate":"130.000000","lcy_amount":"2600.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 20:19:17] local.INFO: ID present? YES  
[2026-07-28 20:19:17] local.INFO: ID value: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 20:19:17] local.INFO: ID empty? NO  
[2026-07-28 20:19:17] local.INFO: Attempting to find record with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 20:19:17] local.INFO: Record not found, creating new with ID: 0faf2e06-8733-4383-a0f4-0626a5796989  
[2026-07-28 20:19:17] local.INFO: Created record: {"id":"0faf2e06-8733-4383-a0f4-0626a5796989","type":"Debit","amount":"2600.00","rate":"130.000000","lcy_amount":"2600.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:17.000000Z","created_at":"2026-07-28T17:19:17.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1065921.5,"debit_total":16887277.3000000007450580596923828125,"credit_total":"15821355.80","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:13.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:19] local.INFO: Model: Journal  
[2026-07-28 20:19:19] local.INFO: Data received: {"id":"10212f22-fb5b-4959-8797-b884ed693c80","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3557-2026","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 20:19:19] local.INFO: ID present? YES  
[2026-07-28 20:19:19] local.INFO: ID value: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 20:19:19] local.INFO: ID empty? NO  
[2026-07-28 20:19:19] local.INFO: Attempting to find record with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 20:19:19] local.INFO: Record not found, creating new with ID: 10212f22-fb5b-4959-8797-b884ed693c80  
[2026-07-28 20:19:19] local.INFO: Created record: {"id":"10212f22-fb5b-4959-8797-b884ed693c80","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3557-2026","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:19.000000Z","created_at":"2026-07-28T17:19:19.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-84584.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":91784.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:20] local.INFO: Model: Journal  
[2026-07-28 20:19:20] local.INFO: Data received: {"id":"11324ac2-76ff-4fd7-899f-807506fee8c8","type":"Credit","amount":"220.00","rate":null,"lcy_amount":"28380.000000","narrative":"USD WITHDRAWAL","uniqid":"a5c4fd2a-98c6-4f83-b9f8-cc454709e00d","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 18:42:26","updated_at":"2026-07-24 02:23:01"} 
[2026-07-28 20:19:20] local.INFO: ID present? YES  
[2026-07-28 20:19:20] local.INFO: ID value: 11324ac2-76ff-4fd7-899f-807506fee8c8  
[2026-07-28 20:19:20] local.INFO: ID empty? NO  
[2026-07-28 20:19:20] local.INFO: Attempting to find record with ID: 11324ac2-76ff-4fd7-899f-807506fee8c8  
[2026-07-28 20:19:20] local.INFO: Record not found, creating new with ID: 11324ac2-76ff-4fd7-899f-807506fee8c8  
[2026-07-28 20:19:20] local.INFO: Created record: {"id":"11324ac2-76ff-4fd7-899f-807506fee8c8","type":"Credit","amount":"220.00","rate":null,"lcy_amount":"28380.000000","narrative":"USD WITHDRAWAL","uniqid":"a5c4fd2a-98c6-4f83-b9f8-cc454709e00d","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:19:20.000000Z","created_at":"2026-07-28T17:19:20.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-3531.88999999999987267074175179004669189453125,"debit_total":"56152.11","credit_total":59684.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:21] local.INFO: Model: Journal  
[2026-07-28 20:19:21] local.INFO: Data received: {"id":"1323e1bd-ed8c-49cd-9451-f9cc961e0bed","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3568-2026","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 20:19:21] local.INFO: ID present? YES  
[2026-07-28 20:19:21] local.INFO: ID value: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 20:19:21] local.INFO: ID empty? NO  
[2026-07-28 20:19:21] local.INFO: Attempting to find record with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 20:19:21] local.INFO: Record not found, creating new with ID: 1323e1bd-ed8c-49cd-9451-f9cc961e0bed  
[2026-07-28 20:19:21] local.INFO: Created record: {"id":"1323e1bd-ed8c-49cd-9451-f9cc961e0bed","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3568-2026","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:21.000000Z","created_at":"2026-07-28T17:19:21.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-85514.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":92714.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:19.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:22] local.INFO: Model: Journal  
[2026-07-28 20:19:22] local.INFO: Data received: {"id":"133b606f-2394-4b43-bce5-abe3dbbe559a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3573-2026","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 20:19:22] local.INFO: ID present? YES  
[2026-07-28 20:19:22] local.INFO: ID value: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 20:19:22] local.INFO: ID empty? NO  
[2026-07-28 20:19:22] local.INFO: Attempting to find record with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 20:19:22] local.INFO: Record not found, creating new with ID: 133b606f-2394-4b43-bce5-abe3dbbe559a  
[2026-07-28 20:19:22] local.INFO: Created record: {"id":"133b606f-2394-4b43-bce5-abe3dbbe559a","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3573-2026","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:22.000000Z","created_at":"2026-07-28T17:19:22.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-87994.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":95194.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:24] local.INFO: Model: Journal  
[2026-07-28 20:19:24] local.INFO: Data received: {"id":"135ccdb0-0d9f-4aea-8e4c-ba187a825179","type":"Debit","amount":"33907.50","rate":"150.700000","lcy_amount":"33907.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:19:24] local.INFO: ID present? YES  
[2026-07-28 20:19:24] local.INFO: ID value: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 20:19:24] local.INFO: ID empty? NO  
[2026-07-28 20:19:24] local.INFO: Attempting to find record with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 20:19:24] local.INFO: Record not found, creating new with ID: 135ccdb0-0d9f-4aea-8e4c-ba187a825179  
[2026-07-28 20:19:24] local.INFO: Created record: {"id":"135ccdb0-0d9f-4aea-8e4c-ba187a825179","type":"Debit","amount":"33907.50","rate":"150.700000","lcy_amount":"33907.500000","narrative":"Selling TX: Funds into cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:24.000000Z","created_at":"2026-07-28T17:19:24.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1099829.0,"debit_total":16921184.8000000007450580596923828125,"credit_total":"15821355.80","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:17.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:25] local.INFO: Model: Journal  
[2026-07-28 20:19:25] local.INFO: Data received: {"id":"139eaf42-d550-4a8c-9699-071374c70e4f","type":"Credit","amount":"115207.40","rate":null,"lcy_amount":"115207.400000","narrative":"KES ADDITION","uniqid":"d6504d33-d65c-41b3-bbd0-4feaf835ed2c","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 10:39:16","updated_at":"2026-07-28 10:55:32"} 
[2026-07-28 20:19:25] local.INFO: ID present? YES  
[2026-07-28 20:19:25] local.INFO: ID value: 139eaf42-d550-4a8c-9699-071374c70e4f  
[2026-07-28 20:19:25] local.INFO: ID empty? NO  
[2026-07-28 20:19:25] local.INFO: Attempting to find record with ID: 139eaf42-d550-4a8c-9699-071374c70e4f  
[2026-07-28 20:19:25] local.INFO: Record not found, creating new with ID: 139eaf42-d550-4a8c-9699-071374c70e4f  
[2026-07-28 20:19:25] local.INFO: Created record: {"id":"139eaf42-d550-4a8c-9699-071374c70e4f","type":"Credit","amount":"115207.40","rate":null,"lcy_amount":"115207.400000","narrative":"KES ADDITION","uniqid":"d6504d33-d65c-41b3-bbd0-4feaf835ed2c","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:25.000000Z","created_at":"2026-07-28T17:19:25.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":1112990.6000000000931322574615478515625,"debit_total":"5931971.30","credit_total":4818980.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T09:51:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:26] local.INFO: Model: Journal  
[2026-07-28 20:19:26] local.INFO: Data received: {"id":"13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3574-2026","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 20:19:26] local.INFO: ID present? YES  
[2026-07-28 20:19:26] local.INFO: ID value: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 20:19:26] local.INFO: ID empty? NO  
[2026-07-28 20:19:26] local.INFO: Attempting to find record with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 20:19:26] local.INFO: Record not found, creating new with ID: 13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4  
[2026-07-28 20:19:26] local.INFO: Created record: {"id":"13c23f6b-76d1-4802-9bd5-cf9c5f3d39a4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3574-2026","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:26.000000Z","created_at":"2026-07-28T17:19:26.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-88144.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":95344.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:22.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:27] local.INFO: Model: Journal  
[2026-07-28 20:19:27] local.INFO: Data received: {"id":"14651e8c-b497-4fc6-a40e-178fe97117fc","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3586-2026","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 20:19:27] local.INFO: ID present? YES  
[2026-07-28 20:19:27] local.INFO: ID value: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 20:19:27] local.INFO: ID empty? NO  
[2026-07-28 20:19:27] local.INFO: Attempting to find record with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 20:19:27] local.INFO: Record not found, creating new with ID: 14651e8c-b497-4fc6-a40e-178fe97117fc  
[2026-07-28 20:19:27] local.INFO: Created record: {"id":"14651e8c-b497-4fc6-a40e-178fe97117fc","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3586-2026","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:27.000000Z","created_at":"2026-07-28T17:19:27.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-88294.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":95494.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:26.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:29] local.INFO: Model: Journal  
[2026-07-28 20:19:29] local.INFO: Data received: {"id":"1536d91e-bf4b-4f2d-b6b1-283b25b8884e","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3559-2026","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:19:29] local.INFO: ID present? YES  
[2026-07-28 20:19:29] local.INFO: ID value: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 20:19:29] local.INFO: ID empty? NO  
[2026-07-28 20:19:29] local.INFO: Attempting to find record with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 20:19:29] local.INFO: Record not found, creating new with ID: 1536d91e-bf4b-4f2d-b6b1-283b25b8884e  
[2026-07-28 20:19:29] local.INFO: Created record: {"id":"1536d91e-bf4b-4f2d-b6b1-283b25b8884e","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3559-2026","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:29.000000Z","created_at":"2026-07-28T17:19:29.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-90154.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":97354.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:30] local.INFO: Model: Journal  
[2026-07-28 20:19:30] local.INFO: Data received: {"id":"15f3060a-0161-4f33-93ba-4fe15a5931fd","type":"Credit","amount":"445220.00","rate":null,"lcy_amount":"445220.000000","narrative":"MPESA DEPOSIT","uniqid":"2f761c7e-627a-4abf-b725-8a89887693f7","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 19:07:01","updated_at":"2026-07-25 09:54:34"} 
[2026-07-28 20:19:30] local.INFO: ID present? YES  
[2026-07-28 20:19:30] local.INFO: ID value: 15f3060a-0161-4f33-93ba-4fe15a5931fd  
[2026-07-28 20:19:30] local.INFO: ID empty? NO  
[2026-07-28 20:19:30] local.INFO: Attempting to find record with ID: 15f3060a-0161-4f33-93ba-4fe15a5931fd  
[2026-07-28 20:19:30] local.INFO: Record not found, creating new with ID: 15f3060a-0161-4f33-93ba-4fe15a5931fd  
[2026-07-28 20:19:30] local.INFO: Created record: {"id":"15f3060a-0161-4f33-93ba-4fe15a5931fd","type":"Credit","amount":"445220.00","rate":null,"lcy_amount":"445220.000000","narrative":"MPESA DEPOSIT","uniqid":"2f761c7e-627a-4abf-b725-8a89887693f7","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:30.000000Z","created_at":"2026-07-28T17:19:30.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2676989.0,"debit_total":"3759990.00","credit_total":6436979.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T17:19:03.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:31] local.INFO: Model: Journal  
[2026-07-28 20:19:31] local.INFO: Data received: {"id":"1606089b-6a66-4e66-a0a9-0ecadd2bb962","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 20:19:31] local.INFO: ID present? YES  
[2026-07-28 20:19:31] local.INFO: ID value: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 20:19:31] local.INFO: ID empty? NO  
[2026-07-28 20:19:31] local.INFO: Attempting to find record with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 20:19:31] local.INFO: Record not found, creating new with ID: 1606089b-6a66-4e66-a0a9-0ecadd2bb962  
[2026-07-28 20:19:31] local.INFO: Created record: {"id":"1606089b-6a66-4e66-a0a9-0ecadd2bb962","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:19:31.000000Z","created_at":"2026-07-28T17:19:31.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-3331.88999999999987267074175179004669189453125,"debit_total":56352.110000000000582076609134674072265625,"credit_total":"59684.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:20.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:33] local.INFO: Model: Journal  
[2026-07-28 20:19:33] local.INFO: Data received: {"id":"160e8618-3052-4cbc-b3e8-8ff2d7543aac","type":"Credit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"f1d40ee0-0782-46eb-afbe-61c93e8a2e6b","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:11:35","updated_at":"2026-07-25 12:50:11"} 
[2026-07-28 20:19:33] local.INFO: ID present? YES  
[2026-07-28 20:19:33] local.INFO: ID value: 160e8618-3052-4cbc-b3e8-8ff2d7543aac  
[2026-07-28 20:19:33] local.INFO: ID empty? NO  
[2026-07-28 20:19:33] local.INFO: Attempting to find record with ID: 160e8618-3052-4cbc-b3e8-8ff2d7543aac  
[2026-07-28 20:19:33] local.INFO: Record not found, creating new with ID: 160e8618-3052-4cbc-b3e8-8ff2d7543aac  
[2026-07-28 20:19:33] local.INFO: Created record: {"id":"160e8618-3052-4cbc-b3e8-8ff2d7543aac","type":"Credit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"f1d40ee0-0782-46eb-afbe-61c93e8a2e6b","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:33.000000Z","created_at":"2026-07-28T17:19:33.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":912990.6000000000931322574615478515625,"debit_total":"5931971.30","credit_total":5018980.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:34] local.INFO: Model: Journal  
[2026-07-28 20:19:34] local.INFO: Data received: {"id":"16ee6438-9a2e-4efa-92ed-c841e5d1e52c","type":"Credit","amount":"700.00","rate":null,"lcy_amount":"105840.000000","narrative":"EUR WITHDRAWAL","uniqid":"9ff13fe0-18e0-47ee-a571-65d820b11efb","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 18:56:39","updated_at":"2026-07-25 09:54:55"} 
[2026-07-28 20:19:34] local.INFO: ID present? YES  
[2026-07-28 20:19:34] local.INFO: ID value: 16ee6438-9a2e-4efa-92ed-c841e5d1e52c  
[2026-07-28 20:19:34] local.INFO: ID empty? NO  
[2026-07-28 20:19:34] local.INFO: Attempting to find record with ID: 16ee6438-9a2e-4efa-92ed-c841e5d1e52c  
[2026-07-28 20:19:34] local.INFO: Record not found, creating new with ID: 16ee6438-9a2e-4efa-92ed-c841e5d1e52c  
[2026-07-28 20:19:34] local.INFO: Created record: {"id":"16ee6438-9a2e-4efa-92ed-c841e5d1e52c","type":"Credit","amount":"700.00","rate":null,"lcy_amount":"105840.000000","narrative":"EUR WITHDRAWAL","uniqid":"9ff13fe0-18e0-47ee-a571-65d820b11efb","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:19:34.000000Z","created_at":"2026-07-28T17:19:34.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3985.0,"debit_total":"15910.00","credit_total":19895.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:08.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:35] local.INFO: Model: Journal  
[2026-07-28 20:19:35] local.INFO: Data received: {"id":"1781d866-6c0b-4163-8c9b-244798a0ad42","type":"Credit","amount":"254.40","rate":null,"lcy_amount":"254.400000","narrative":"KES WITHDRAWAL","uniqid":"539ef6a6-b972-46e7-9e99-ec56f5e646ef","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 18:41:09","updated_at":"2026-07-24 02:32:02"} 
[2026-07-28 20:19:35] local.INFO: ID present? YES  
[2026-07-28 20:19:35] local.INFO: ID value: 1781d866-6c0b-4163-8c9b-244798a0ad42  
[2026-07-28 20:19:35] local.INFO: ID empty? NO  
[2026-07-28 20:19:35] local.INFO: Attempting to find record with ID: 1781d866-6c0b-4163-8c9b-244798a0ad42  
[2026-07-28 20:19:35] local.INFO: Record not found, creating new with ID: 1781d866-6c0b-4163-8c9b-244798a0ad42  
[2026-07-28 20:19:35] local.INFO: Created record: {"id":"1781d866-6c0b-4163-8c9b-244798a0ad42","type":"Credit","amount":"254.40","rate":null,"lcy_amount":"254.400000","narrative":"KES WITHDRAWAL","uniqid":"539ef6a6-b972-46e7-9e99-ec56f5e646ef","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:35.000000Z","created_at":"2026-07-28T17:19:35.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1099574.6000000000931322574615478515625,"debit_total":"16921184.80","credit_total":15821610.20000000111758708953857421875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:24.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:36] local.INFO: Model: Journal  
[2026-07-28 20:19:36] local.INFO: Data received: {"id":"179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3570-2026","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 20:19:36] local.INFO: ID present? YES  
[2026-07-28 20:19:36] local.INFO: ID value: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 20:19:36] local.INFO: ID empty? NO  
[2026-07-28 20:19:36] local.INFO: Attempting to find record with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 20:19:36] local.INFO: Record not found, creating new with ID: 179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053  
[2026-07-28 20:19:36] local.INFO: Created record: {"id":"179b0f8a-b2ee-4f83-a8bc-f8a4d2b75053","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3570-2026","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:36.000000Z","created_at":"2026-07-28T17:19:36.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-90464.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":97664.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:29.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:38] local.INFO: Model: Journal  
[2026-07-28 20:19:38] local.INFO: Data received: {"id":"1b991610-bacb-4777-9656-7a7cc6a4c167","type":"Debit","amount":"445220.00","rate":null,"lcy_amount":"445220.000000","narrative":"MPESA DEPOSIT","uniqid":"2f761c7e-627a-4abf-b725-8a89887693f7","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 19:07:01","updated_at":"2026-07-25 09:54:56"} 
[2026-07-28 20:19:38] local.INFO: ID present? YES  
[2026-07-28 20:19:38] local.INFO: ID value: 1b991610-bacb-4777-9656-7a7cc6a4c167  
[2026-07-28 20:19:38] local.INFO: ID empty? NO  
[2026-07-28 20:19:38] local.INFO: Attempting to find record with ID: 1b991610-bacb-4777-9656-7a7cc6a4c167  
[2026-07-28 20:19:38] local.INFO: Record not found, creating new with ID: 1b991610-bacb-4777-9656-7a7cc6a4c167  
[2026-07-28 20:19:38] local.INFO: Created record: {"id":"1b991610-bacb-4777-9656-7a7cc6a4c167","type":"Debit","amount":"445220.00","rate":null,"lcy_amount":"445220.000000","narrative":"MPESA DEPOSIT","uniqid":"2f761c7e-627a-4abf-b725-8a89887693f7","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:38.000000Z","created_at":"2026-07-28T17:19:38.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1544794.6000000000931322574615478515625,"debit_total":17366404.8000000007450580596923828125,"credit_total":"15821610.20","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:39] local.INFO: Model: Journal  
[2026-07-28 20:19:39] local.INFO: Data received: {"id":"1bf254f0-680a-43ec-aae8-4edb1d2454bc","type":"Credit","amount":"17850.00","rate":"127.500000","lcy_amount":"17850.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 20:19:39] local.INFO: ID present? YES  
[2026-07-28 20:19:39] local.INFO: ID value: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 20:19:39] local.INFO: ID empty? NO  
[2026-07-28 20:19:39] local.INFO: Attempting to find record with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 20:19:39] local.INFO: Record not found, creating new with ID: 1bf254f0-680a-43ec-aae8-4edb1d2454bc  
[2026-07-28 20:19:39] local.INFO: Created record: {"id":"1bf254f0-680a-43ec-aae8-4edb1d2454bc","type":"Credit","amount":"17850.00","rate":"127.500000","lcy_amount":"17850.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:39.000000Z","created_at":"2026-07-28T17:19:39.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1526944.6000000000931322574615478515625,"debit_total":"17366404.80","credit_total":15839460.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:38.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:40] local.INFO: Model: Journal  
[2026-07-28 20:19:40] local.INFO: Data received: {"id":"1c037b93-2ddf-42b8-ae58-a4621d0edcb3","type":"Credit","amount":"435.00","rate":"127.500000","lcy_amount":"435.000000","narrative":"Gain on TR-3589-2026","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 20:19:40] local.INFO: ID present? YES  
[2026-07-28 20:19:40] local.INFO: ID value: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 20:19:40] local.INFO: ID empty? NO  
[2026-07-28 20:19:40] local.INFO: Attempting to find record with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 20:19:40] local.INFO: Record not found, creating new with ID: 1c037b93-2ddf-42b8-ae58-a4621d0edcb3  
[2026-07-28 20:19:40] local.INFO: Created record: {"id":"1c037b93-2ddf-42b8-ae58-a4621d0edcb3","type":"Credit","amount":"435.00","rate":"127.500000","lcy_amount":"435.000000","narrative":"Gain on TR-3589-2026","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:40.000000Z","created_at":"2026-07-28T17:19:40.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-90899.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":98099.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:41] local.INFO: Model: Journal  
[2026-07-28 20:19:41] local.INFO: Data received: {"id":"1c1ed15f-5304-4d89-ab6f-8d93748bd627","type":"Credit","amount":"36975.00","rate":"127.500000","lcy_amount":"36975.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 20:19:41] local.INFO: ID present? YES  
[2026-07-28 20:19:41] local.INFO: ID value: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 20:19:41] local.INFO: ID empty? NO  
[2026-07-28 20:19:41] local.INFO: Attempting to find record with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 20:19:41] local.INFO: Record not found, creating new with ID: 1c1ed15f-5304-4d89-ab6f-8d93748bd627  
[2026-07-28 20:19:41] local.INFO: Created record: {"id":"1c1ed15f-5304-4d89-ab6f-8d93748bd627","type":"Credit","amount":"36975.00","rate":"127.500000","lcy_amount":"36975.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:41.000000Z","created_at":"2026-07-28T17:19:41.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1489969.6000000000931322574615478515625,"debit_total":"17366404.80","credit_total":15876435.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:39.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:43] local.INFO: Model: Journal  
[2026-07-28 20:19:43] local.INFO: Data received: {"id":"1c1f580a-7df7-4af0-bc00-bde585f370d7","type":"Debit","amount":"700.00","rate":null,"lcy_amount":"105840.000000","narrative":"EUR WITHDRAWAL","uniqid":"9ff13fe0-18e0-47ee-a571-65d820b11efb","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 18:56:39","updated_at":"2026-07-25 09:54:58"} 
[2026-07-28 20:19:43] local.INFO: ID present? YES  
[2026-07-28 20:19:43] local.INFO: ID value: 1c1f580a-7df7-4af0-bc00-bde585f370d7  
[2026-07-28 20:19:43] local.INFO: ID empty? NO  
[2026-07-28 20:19:43] local.INFO: Attempting to find record with ID: 1c1f580a-7df7-4af0-bc00-bde585f370d7  
[2026-07-28 20:19:43] local.INFO: Record not found, creating new with ID: 1c1f580a-7df7-4af0-bc00-bde585f370d7  
[2026-07-28 20:19:43] local.INFO: Created record: {"id":"1c1f580a-7df7-4af0-bc00-bde585f370d7","type":"Debit","amount":"700.00","rate":null,"lcy_amount":"105840.000000","narrative":"EUR WITHDRAWAL","uniqid":"9ff13fe0-18e0-47ee-a571-65d820b11efb","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:19:43.000000Z","created_at":"2026-07-28T17:19:43.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":7395.0,"debit_total":13735.0,"credit_total":"6340.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T16:38:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:44] local.INFO: Model: Journal  
[2026-07-28 20:19:44] local.INFO: Data received: {"id":"1c89e46d-0dde-4c77-8620-88d088c70a4c","type":"Credit","amount":"1600.00","rate":null,"lcy_amount":"206400.000000","narrative":"USD WITHDRAWAL","uniqid":"32abc67f-70ee-43fd-a668-b0ca5e7a6654","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 18:35:52","updated_at":"2026-07-26 18:04:45"} 
[2026-07-28 20:19:44] local.INFO: ID present? YES  
[2026-07-28 20:19:44] local.INFO: ID value: 1c89e46d-0dde-4c77-8620-88d088c70a4c  
[2026-07-28 20:19:44] local.INFO: ID empty? NO  
[2026-07-28 20:19:44] local.INFO: Attempting to find record with ID: 1c89e46d-0dde-4c77-8620-88d088c70a4c  
[2026-07-28 20:19:44] local.INFO: Record not found, creating new with ID: 1c89e46d-0dde-4c77-8620-88d088c70a4c  
[2026-07-28 20:19:44] local.INFO: Created record: {"id":"1c89e46d-0dde-4c77-8620-88d088c70a4c","type":"Credit","amount":"1600.00","rate":null,"lcy_amount":"206400.000000","narrative":"USD WITHDRAWAL","uniqid":"32abc67f-70ee-43fd-a668-b0ca5e7a6654","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:19:44.000000Z","created_at":"2026-07-28T17:19:44.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-4931.889999999999417923390865325927734375,"debit_total":"56352.11","credit_total":61284.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:45] local.INFO: Model: Journal  
[2026-07-28 20:19:45] local.INFO: Data received: {"id":"1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9","type":"Debit","amount":"60.00","rate":"145.000000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 20:19:45] local.INFO: ID present? YES  
[2026-07-28 20:19:45] local.INFO: ID value: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 20:19:45] local.INFO: ID empty? NO  
[2026-07-28 20:19:45] local.INFO: Attempting to find record with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 20:19:45] local.INFO: Record not found, creating new with ID: 1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9  
[2026-07-28 20:19:45] local.INFO: Created record: {"id":"1cd3aa1a-b078-4a55-9bfd-7e32daa7a0b9","type":"Debit","amount":"60.00","rate":"145.000000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:19:45.000000Z","created_at":"2026-07-28T17:19:45.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3925.0,"debit_total":15970.0,"credit_total":"19895.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:46] local.INFO: Model: Journal  
[2026-07-28 20:19:46] local.INFO: Data received: {"id":"1d0e772b-b470-4047-9db8-7b205e2b8f63","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 20:19:46] local.INFO: ID present? YES  
[2026-07-28 20:19:46] local.INFO: ID value: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 20:19:46] local.INFO: ID empty? NO  
[2026-07-28 20:19:46] local.INFO: Attempting to find record with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 20:19:46] local.INFO: Record not found, creating new with ID: 1d0e772b-b470-4047-9db8-7b205e2b8f63  
[2026-07-28 20:19:46] local.INFO: Created record: {"id":"1d0e772b-b470-4047-9db8-7b205e2b8f63","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:19:46.000000Z","created_at":"2026-07-28T17:19:46.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3725.0,"debit_total":16170.0,"credit_total":"19895.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:48] local.INFO: Model: Journal  
[2026-07-28 20:19:48] local.INFO: Data received: {"id":"1e38c8bf-957c-4ff6-b83a-661cd7c27d3e","type":"Debit","amount":"90330.00","rate":null,"lcy_amount":"90330.000000","narrative":"KES ADDITION","uniqid":"76823ca4-e598-4f82-a1a4-e4fc5da49d6a","date":"2026-07-27","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 18:38:10","updated_at":"2026-07-28 10:58:55"} 
[2026-07-28 20:19:48] local.INFO: ID present? YES  
[2026-07-28 20:19:48] local.INFO: ID value: 1e38c8bf-957c-4ff6-b83a-661cd7c27d3e  
[2026-07-28 20:19:48] local.INFO: ID empty? NO  
[2026-07-28 20:19:48] local.INFO: Attempting to find record with ID: 1e38c8bf-957c-4ff6-b83a-661cd7c27d3e  
[2026-07-28 20:19:48] local.INFO: Record not found, creating new with ID: 1e38c8bf-957c-4ff6-b83a-661cd7c27d3e  
[2026-07-28 20:19:48] local.INFO: Created record: {"id":"1e38c8bf-957c-4ff6-b83a-661cd7c27d3e","type":"Debit","amount":"90330.00","rate":null,"lcy_amount":"90330.000000","narrative":"KES ADDITION","uniqid":"76823ca4-e598-4f82-a1a4-e4fc5da49d6a","date":"2026-07-27","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:48.000000Z","created_at":"2026-07-28T17:19:48.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1580299.6000000000931322574615478515625,"debit_total":17456734.8000000007450580596923828125,"credit_total":"15876435.20","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:41.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:49] local.INFO: Model: Journal  
[2026-07-28 20:19:49] local.INFO: Data received: {"id":"1f829bf2-779d-407e-8045-2e200052e7cf","type":"Debit","amount":"60.00","rate":"144.500000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:19:49] local.INFO: ID present? YES  
[2026-07-28 20:19:49] local.INFO: ID value: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 20:19:49] local.INFO: ID empty? NO  
[2026-07-28 20:19:49] local.INFO: Attempting to find record with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 20:19:49] local.INFO: Record not found, creating new with ID: 1f829bf2-779d-407e-8045-2e200052e7cf  
[2026-07-28 20:19:49] local.INFO: Created record: {"id":"1f829bf2-779d-407e-8045-2e200052e7cf","type":"Debit","amount":"60.00","rate":"144.500000","lcy_amount":"9072.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:19:49.000000Z","created_at":"2026-07-28T17:19:49.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3665.0,"debit_total":16230.0,"credit_total":"19895.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:19:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:50] local.INFO: Model: Journal  
[2026-07-28 20:19:50] local.INFO: Data received: {"id":"204a6653-c08c-42ae-af2e-b4a9385c96a4","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3560-2026","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 20:19:50] local.INFO: ID present? YES  
[2026-07-28 20:19:50] local.INFO: ID value: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 20:19:50] local.INFO: ID empty? NO  
[2026-07-28 20:19:50] local.INFO: Attempting to find record with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 20:19:50] local.INFO: Record not found, creating new with ID: 204a6653-c08c-42ae-af2e-b4a9385c96a4  
[2026-07-28 20:19:50] local.INFO: Created record: {"id":"204a6653-c08c-42ae-af2e-b4a9385c96a4","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3560-2026","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:50.000000Z","created_at":"2026-07-28T17:19:50.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-91147.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":98347.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:19:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:19:58] local.INFO: Model: Journal  
[2026-07-28 20:19:58] local.INFO: Data received: {"id":"20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4","type":"Credit","amount":"465.00","rate":"145.000000","lcy_amount":"465.000000","narrative":"Gain on TR-3572-2026","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 20:19:58] local.INFO: ID present? YES  
[2026-07-28 20:19:58] local.INFO: ID value: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 20:19:58] local.INFO: ID empty? NO  
[2026-07-28 20:19:58] local.INFO: Attempting to find record with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 20:19:58] local.INFO: Record not found, creating new with ID: 20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4  
[2026-07-28 20:19:59] local.INFO: Created record: {"id":"20c5aa6f-37b3-4402-a4f8-7a6a6e615dc4","type":"Credit","amount":"465.00","rate":"145.000000","lcy_amount":"465.000000","narrative":"Gain on TR-3572-2026","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:19:58.000000Z","created_at":"2026-07-28T17:19:58.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-91612.1900000000023283064365386962890625,"debit_total":"7200.00","credit_total":98812.1900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:00] local.INFO: Model: Journal  
[2026-07-28 20:20:00] local.INFO: Data received: {"id":"213ea3aa-0259-4f0f-897c-f9c42149e91c","type":"Credit","amount":"4350.00","rate":"145.000000","lcy_amount":"4350.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 20:20:00] local.INFO: ID present? YES  
[2026-07-28 20:20:00] local.INFO: ID value: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 20:20:00] local.INFO: ID empty? NO  
[2026-07-28 20:20:00] local.INFO: Attempting to find record with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 20:20:00] local.INFO: Record not found, creating new with ID: 213ea3aa-0259-4f0f-897c-f9c42149e91c  
[2026-07-28 20:20:00] local.INFO: Created record: {"id":"213ea3aa-0259-4f0f-897c-f9c42149e91c","type":"Credit","amount":"4350.00","rate":"145.000000","lcy_amount":"4350.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:00.000000Z","created_at":"2026-07-28T17:20:00.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1575949.6000000000931322574615478515625,"debit_total":"17456734.80","credit_total":15880785.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:01] local.INFO: Model: Journal  
[2026-07-28 20:20:01] local.INFO: Data received: {"id":"21cca327-7a78-4e70-a9a1-a554ff3c9f75","type":"Credit","amount":"292.50","rate":"127.500000","lcy_amount":"292.500000","narrative":"Gain on TR-3548-2026","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:20:01] local.INFO: ID present? YES  
[2026-07-28 20:20:01] local.INFO: ID value: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 20:20:01] local.INFO: ID empty? NO  
[2026-07-28 20:20:01] local.INFO: Attempting to find record with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 20:20:01] local.INFO: Record not found, creating new with ID: 21cca327-7a78-4e70-a9a1-a554ff3c9f75  
[2026-07-28 20:20:01] local.INFO: Created record: {"id":"21cca327-7a78-4e70-a9a1-a554ff3c9f75","type":"Credit","amount":"292.50","rate":"127.500000","lcy_amount":"292.500000","narrative":"Gain on TR-3548-2026","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:01.000000Z","created_at":"2026-07-28T17:20:01.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-91904.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":99104.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:59.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:02] local.INFO: Model: Journal  
[2026-07-28 20:20:02] local.INFO: Data received: {"id":"22338910-de8a-4f40-ab7a-3c4b4888fd7d","type":"Credit","amount":"89950.00","rate":"128.500000","lcy_amount":"89950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 20:20:02] local.INFO: ID present? YES  
[2026-07-28 20:20:02] local.INFO: ID value: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 20:20:02] local.INFO: ID empty? NO  
[2026-07-28 20:20:02] local.INFO: Attempting to find record with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 20:20:02] local.INFO: Record not found, creating new with ID: 22338910-de8a-4f40-ab7a-3c4b4888fd7d  
[2026-07-28 20:20:02] local.INFO: Created record: {"id":"22338910-de8a-4f40-ab7a-3c4b4888fd7d","type":"Credit","amount":"89950.00","rate":"128.500000","lcy_amount":"89950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:02.000000Z","created_at":"2026-07-28T17:20:02.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1485999.6000000000931322574615478515625,"debit_total":"17456734.80","credit_total":15970735.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:00.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:04] local.INFO: Model: Journal  
[2026-07-28 20:20:04] local.INFO: Data received: {"id":"22ea230c-9942-4adf-86ec-6e1ecb10d68d","type":"Debit","amount":"254.40","rate":null,"lcy_amount":"254.400000","narrative":"KES WITHDRAWAL","uniqid":"539ef6a6-b972-46e7-9e99-ec56f5e646ef","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 18:41:09","updated_at":"2026-07-24 02:49:52"} 
[2026-07-28 20:20:04] local.INFO: ID present? YES  
[2026-07-28 20:20:04] local.INFO: ID value: 22ea230c-9942-4adf-86ec-6e1ecb10d68d  
[2026-07-28 20:20:04] local.INFO: ID empty? NO  
[2026-07-28 20:20:04] local.INFO: Attempting to find record with ID: 22ea230c-9942-4adf-86ec-6e1ecb10d68d  
[2026-07-28 20:20:04] local.INFO: Record not found, creating new with ID: 22ea230c-9942-4adf-86ec-6e1ecb10d68d  
[2026-07-28 20:20:04] local.INFO: Created record: {"id":"22ea230c-9942-4adf-86ec-6e1ecb10d68d","type":"Debit","amount":"254.40","rate":null,"lcy_amount":"254.400000","narrative":"KES WITHDRAWAL","uniqid":"539ef6a6-b972-46e7-9e99-ec56f5e646ef","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:04.000000Z","created_at":"2026-07-28T17:20:04.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":913245.0,"debit_total":5932225.700000000186264514923095703125,"credit_total":"5018980.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:05] local.INFO: Model: Journal  
[2026-07-28 20:20:05] local.INFO: Data received: {"id":"2340bdf1-2e7e-4484-a595-e45958499124","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 20:20:05] local.INFO: ID present? YES  
[2026-07-28 20:20:05] local.INFO: ID value: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 20:20:05] local.INFO: ID empty? NO  
[2026-07-28 20:20:05] local.INFO: Attempting to find record with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 20:20:05] local.INFO: Record not found, creating new with ID: 2340bdf1-2e7e-4484-a595-e45958499124  
[2026-07-28 20:20:05] local.INFO: Created record: {"id":"2340bdf1-2e7e-4484-a595-e45958499124","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:05.000000Z","created_at":"2026-07-28T17:20:05.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1460499.6000000000931322574615478515625,"debit_total":"17456734.80","credit_total":15996235.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:06] local.INFO: Model: Journal  
[2026-07-28 20:20:06] local.INFO: Data received: {"id":"2433014b-92d5-495d-b5c1-0dbb3a1c03fb","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"739ce1be-ad88-4481-8f8c-4d0226c97408","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 11:24:03","updated_at":"2026-07-24 13:50:20"} 
[2026-07-28 20:20:06] local.INFO: ID present? YES  
[2026-07-28 20:20:06] local.INFO: ID value: 2433014b-92d5-495d-b5c1-0dbb3a1c03fb  
[2026-07-28 20:20:06] local.INFO: ID empty? NO  
[2026-07-28 20:20:06] local.INFO: Attempting to find record with ID: 2433014b-92d5-495d-b5c1-0dbb3a1c03fb  
[2026-07-28 20:20:06] local.INFO: Record not found, creating new with ID: 2433014b-92d5-495d-b5c1-0dbb3a1c03fb  
[2026-07-28 20:20:06] local.INFO: Created record: {"id":"2433014b-92d5-495d-b5c1-0dbb3a1c03fb","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"739ce1be-ad88-4481-8f8c-4d0226c97408","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:06.000000Z","created_at":"2026-07-28T17:20:06.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1460440.6000000000931322574615478515625,"debit_total":"17456734.80","credit_total":15996294.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:08] local.INFO: Model: Journal  
[2026-07-28 20:20:08] local.INFO: Data received: {"id":"24f9d7f5-6579-448f-90ae-a3f0d9777721","type":"Debit","amount":"1300.00","rate":"130.000000","lcy_amount":"1300.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 20:20:08] local.INFO: ID present? YES  
[2026-07-28 20:20:08] local.INFO: ID value: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 20:20:08] local.INFO: ID empty? NO  
[2026-07-28 20:20:08] local.INFO: Attempting to find record with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 20:20:08] local.INFO: Record not found, creating new with ID: 24f9d7f5-6579-448f-90ae-a3f0d9777721  
[2026-07-28 20:20:08] local.INFO: Created record: {"id":"24f9d7f5-6579-448f-90ae-a3f0d9777721","type":"Debit","amount":"1300.00","rate":"130.000000","lcy_amount":"1300.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:08.000000Z","created_at":"2026-07-28T17:20:08.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1461740.6000000000931322574615478515625,"debit_total":17458034.8000000007450580596923828125,"credit_total":"15996294.20","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:09] local.INFO: Model: Journal  
[2026-07-28 20:20:09] local.INFO: Data received: {"id":"279a2b71-85bb-4bb3-a1c5-a109a87aac47","type":"Debit","amount":"160.00","rate":null,"lcy_amount":"24192.000000","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:27:23","updated_at":"2026-07-28 19:14:36"} 
[2026-07-28 20:20:09] local.INFO: ID present? YES  
[2026-07-28 20:20:09] local.INFO: ID value: 279a2b71-85bb-4bb3-a1c5-a109a87aac47  
[2026-07-28 20:20:09] local.INFO: ID empty? NO  
[2026-07-28 20:20:09] local.INFO: Attempting to find record with ID: 279a2b71-85bb-4bb3-a1c5-a109a87aac47  
[2026-07-28 20:20:09] local.INFO: Record found, updating...  
[2026-07-28 20:20:09] local.INFO: Before update: {"id":"279a2b71-85bb-4bb3-a1c5-a109a87aac47","type":"Debit","amount":"160.00","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","rate":null,"lcy_amount":"24192.000000","fx_category":"Funding","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:14:36.000000Z","updated_at":"2026-07-28T16:14:36.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:20:09] local.INFO: After update: {"id":"279a2b71-85bb-4bb3-a1c5-a109a87aac47","type":"Debit","amount":"160.00","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","rate":null,"lcy_amount":"24192.000000","fx_category":"Funding","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:14:36.000000Z","updated_at":"2026-07-28T16:14:36.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:20:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:10] local.INFO: Model: Journal  
[2026-07-28 20:20:10] local.INFO: Data received: {"id":"27edc7e7-7fad-43ca-9217-56393b8e0635","type":"Credit","amount":"27720.00","rate":null,"lcy_amount":"27720.000000","narrative":"KES ADDITION","uniqid":"25455311-acc1-4896-ab85-6487bb8ad65a","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:21:34","updated_at":"2026-07-24 02:56:37"} 
[2026-07-28 20:20:10] local.INFO: ID present? YES  
[2026-07-28 20:20:10] local.INFO: ID value: 27edc7e7-7fad-43ca-9217-56393b8e0635  
[2026-07-28 20:20:10] local.INFO: ID empty? NO  
[2026-07-28 20:20:10] local.INFO: Attempting to find record with ID: 27edc7e7-7fad-43ca-9217-56393b8e0635  
[2026-07-28 20:20:10] local.INFO: Record not found, creating new with ID: 27edc7e7-7fad-43ca-9217-56393b8e0635  
[2026-07-28 20:20:10] local.INFO: Created record: {"id":"27edc7e7-7fad-43ca-9217-56393b8e0635","type":"Credit","amount":"27720.00","rate":null,"lcy_amount":"27720.000000","narrative":"KES ADDITION","uniqid":"25455311-acc1-4896-ab85-6487bb8ad65a","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:10.000000Z","created_at":"2026-07-28T17:20:10.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":885525.0,"debit_total":"5932225.70","credit_total":5046700.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:11] local.INFO: Model: Journal  
[2026-07-28 20:20:11] local.INFO: Data received: {"id":"28047399-5fda-4e64-ab13-82cedde98054","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 20:20:11] local.INFO: ID present? YES  
[2026-07-28 20:20:11] local.INFO: ID value: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 20:20:11] local.INFO: ID empty? NO  
[2026-07-28 20:20:11] local.INFO: Attempting to find record with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 20:20:11] local.INFO: Record not found, creating new with ID: 28047399-5fda-4e64-ab13-82cedde98054  
[2026-07-28 20:20:11] local.INFO: Created record: {"id":"28047399-5fda-4e64-ab13-82cedde98054","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:11.000000Z","created_at":"2026-07-28T17:20:11.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1448990.6000000000931322574615478515625,"debit_total":"17458034.80","credit_total":16009044.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:08.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:13] local.INFO: Model: Journal  
[2026-07-28 20:20:13] local.INFO: Data received: {"id":"29a2669d-c139-4294-b7ca-3612cb1a6db6","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:38:26","updated_at":"2026-07-26 16:38:26"} 
[2026-07-28 20:20:13] local.INFO: ID present? YES  
[2026-07-28 20:20:13] local.INFO: ID value: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 20:20:13] local.INFO: ID empty? NO  
[2026-07-28 20:20:13] local.INFO: Attempting to find record with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 20:20:13] local.INFO: Record not found, creating new with ID: 29a2669d-c139-4294-b7ca-3612cb1a6db6  
[2026-07-28 20:20:13] local.INFO: Created record: {"id":"29a2669d-c139-4294-b7ca-3612cb1a6db6","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"75747995-714d-4b5e-9a73-1b71a84c99b5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"75747995-714d-4b5e-9a73-1b71a84c99b5","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:13.000000Z","created_at":"2026-07-28T17:20:13.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1436240.6000000000931322574615478515625,"debit_total":"17458034.80","credit_total":16021794.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:14] local.INFO: Model: Journal  
[2026-07-28 20:20:14] local.INFO: Data received: {"id":"2b21f972-8f9c-41a5-9ef7-0eea20027815","type":"Credit","amount":"161379.00","rate":null,"lcy_amount":"161379.000000","narrative":"WU PAID OUT 21-7-2026","uniqid":"2733be25-47ac-4e99-b314-c63e4a3b9589","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 18:41:19","updated_at":"2026-07-24 03:01:28"} 
[2026-07-28 20:20:14] local.INFO: ID present? YES  
[2026-07-28 20:20:14] local.INFO: ID value: 2b21f972-8f9c-41a5-9ef7-0eea20027815  
[2026-07-28 20:20:14] local.INFO: ID empty? NO  
[2026-07-28 20:20:14] local.INFO: Attempting to find record with ID: 2b21f972-8f9c-41a5-9ef7-0eea20027815  
[2026-07-28 20:20:14] local.INFO: Record not found, creating new with ID: 2b21f972-8f9c-41a5-9ef7-0eea20027815  
[2026-07-28 20:20:14] local.INFO: Created record: {"id":"2b21f972-8f9c-41a5-9ef7-0eea20027815","type":"Credit","amount":"161379.00","rate":null,"lcy_amount":"161379.000000","narrative":"WU PAID OUT 21-7-2026","uniqid":"2733be25-47ac-4e99-b314-c63e4a3b9589","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:14.000000Z","created_at":"2026-07-28T17:20:14.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1274861.6000000000931322574615478515625,"debit_total":"17458034.80","credit_total":16183173.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:13.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:15] local.INFO: Model: Journal  
[2026-07-28 20:20:15] local.INFO: Data received: {"id":"2cbd2ec0-31bd-4a90-96cd-d4f17287dc56","type":"Credit","amount":"51200.00","rate":"128.000000","lcy_amount":"51200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 20:20:15] local.INFO: ID present? YES  
[2026-07-28 20:20:15] local.INFO: ID value: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 20:20:15] local.INFO: ID empty? NO  
[2026-07-28 20:20:15] local.INFO: Attempting to find record with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 20:20:15] local.INFO: Record not found, creating new with ID: 2cbd2ec0-31bd-4a90-96cd-d4f17287dc56  
[2026-07-28 20:20:15] local.INFO: Created record: {"id":"2cbd2ec0-31bd-4a90-96cd-d4f17287dc56","type":"Credit","amount":"51200.00","rate":"128.000000","lcy_amount":"51200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:15.000000Z","created_at":"2026-07-28T17:20:15.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1223661.6000000000931322574615478515625,"debit_total":"17458034.80","credit_total":16234373.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:14.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:16] local.INFO: Model: Journal  
[2026-07-28 20:20:16] local.INFO: Data received: {"id":"2d4762a9-ad36-4946-80db-309b05f9ced7","type":"Debit","amount":"670000.00","rate":null,"lcy_amount":"670000.000000","narrative":"KES WITHDRAWAL","uniqid":"051b5707-a030-4dd3-b3cf-3344d58cda73","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:24:28","updated_at":"2026-07-24 03:04:26"} 
[2026-07-28 20:20:16] local.INFO: ID present? YES  
[2026-07-28 20:20:16] local.INFO: ID value: 2d4762a9-ad36-4946-80db-309b05f9ced7  
[2026-07-28 20:20:16] local.INFO: ID empty? NO  
[2026-07-28 20:20:16] local.INFO: Attempting to find record with ID: 2d4762a9-ad36-4946-80db-309b05f9ced7  
[2026-07-28 20:20:16] local.INFO: Record not found, creating new with ID: 2d4762a9-ad36-4946-80db-309b05f9ced7  
[2026-07-28 20:20:16] local.INFO: Created record: {"id":"2d4762a9-ad36-4946-80db-309b05f9ced7","type":"Debit","amount":"670000.00","rate":null,"lcy_amount":"670000.000000","narrative":"KES WITHDRAWAL","uniqid":"051b5707-a030-4dd3-b3cf-3344d58cda73","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:16.000000Z","created_at":"2026-07-28T17:20:16.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":1555525.0,"debit_total":6602225.700000000186264514923095703125,"credit_total":"5046700.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:18] local.INFO: Model: Journal  
[2026-07-28 20:20:18] local.INFO: Data received: {"id":"2e3e1fc1-73c9-4f4f-80ef-1da7af94d2b1","type":"Debit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"1b8d7017-54b9-458c-931c-e0687497bedf","date":"2026-07-27","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 18:37:34","updated_at":"2026-07-28 11:02:57"} 
[2026-07-28 20:20:18] local.INFO: ID present? YES  
[2026-07-28 20:20:18] local.INFO: ID value: 2e3e1fc1-73c9-4f4f-80ef-1da7af94d2b1  
[2026-07-28 20:20:18] local.INFO: ID empty? NO  
[2026-07-28 20:20:18] local.INFO: Attempting to find record with ID: 2e3e1fc1-73c9-4f4f-80ef-1da7af94d2b1  
[2026-07-28 20:20:18] local.INFO: Record not found, creating new with ID: 2e3e1fc1-73c9-4f4f-80ef-1da7af94d2b1  
[2026-07-28 20:20:18] local.INFO: Created record: {"id":"2e3e1fc1-73c9-4f4f-80ef-1da7af94d2b1","type":"Debit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"1b8d7017-54b9-458c-931c-e0687497bedf","date":"2026-07-27","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:20:18.000000Z","created_at":"2026-07-28T17:20:18.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":7595.0,"debit_total":13935.0,"credit_total":"6340.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:19:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:19] local.INFO: Model: Journal  
[2026-07-28 20:20:19] local.INFO: Data received: {"id":"2fabffa1-32f3-4dad-8c7e-2b954417d1c7","type":"Credit","amount":"350.00","rate":"128.500000","lcy_amount":"350.000000","narrative":"Gain on TR-3591-2026","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 20:20:19] local.INFO: ID present? YES  
[2026-07-28 20:20:19] local.INFO: ID value: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 20:20:19] local.INFO: ID empty? NO  
[2026-07-28 20:20:19] local.INFO: Attempting to find record with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 20:20:19] local.INFO: Record not found, creating new with ID: 2fabffa1-32f3-4dad-8c7e-2b954417d1c7  
[2026-07-28 20:20:19] local.INFO: Created record: {"id":"2fabffa1-32f3-4dad-8c7e-2b954417d1c7","type":"Credit","amount":"350.00","rate":"128.500000","lcy_amount":"350.000000","narrative":"Gain on TR-3591-2026","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:19.000000Z","created_at":"2026-07-28T17:20:19.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-92254.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":99454.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:01.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:20] local.INFO: Model: Journal  
[2026-07-28 20:20:20] local.INFO: Data received: {"id":"312d3329-355a-418b-84a9-cec20f71466d","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 20:20:20] local.INFO: ID present? YES  
[2026-07-28 20:20:20] local.INFO: ID value: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 20:20:20] local.INFO: ID empty? NO  
[2026-07-28 20:20:20] local.INFO: Attempting to find record with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 20:20:20] local.INFO: Record not found, creating new with ID: 312d3329-355a-418b-84a9-cec20f71466d  
[2026-07-28 20:20:20] local.INFO: Created record: {"id":"312d3329-355a-418b-84a9-cec20f71466d","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:20:20.000000Z","created_at":"2026-07-28T17:20:20.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3265.0,"debit_total":16630.0,"credit_total":"19895.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:49.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:21] local.INFO: Model: Journal  
[2026-07-28 20:20:21] local.INFO: Data received: {"id":"31503650-4256-41f8-b1b4-8c215574f45f","type":"Credit","amount":"186.00","rate":"145.000000","lcy_amount":"186.000000","narrative":"Gain on TR-3583-2026","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 20:20:21] local.INFO: ID present? YES  
[2026-07-28 20:20:21] local.INFO: ID value: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 20:20:21] local.INFO: ID empty? NO  
[2026-07-28 20:20:21] local.INFO: Attempting to find record with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 20:20:21] local.INFO: Record not found, creating new with ID: 31503650-4256-41f8-b1b4-8c215574f45f  
[2026-07-28 20:20:22] local.INFO: Created record: {"id":"31503650-4256-41f8-b1b4-8c215574f45f","type":"Credit","amount":"186.00","rate":"145.000000","lcy_amount":"186.000000","narrative":"Gain on TR-3583-2026","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:21.000000Z","created_at":"2026-07-28T17:20:21.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-92440.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":99640.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:19.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:23] local.INFO: Model: Journal  
[2026-07-28 20:20:23] local.INFO: Data received: {"id":"321e2704-bd53-404f-a18e-c3aeeedf48f8","type":"Credit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI& KCB BANK","uniqid":"a3ec63a2-b560-476c-82db-26e0ad589f7a","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 11:22:05","updated_at":"2026-07-28 12:20:24"} 
[2026-07-28 20:20:23] local.INFO: ID present? YES  
[2026-07-28 20:20:23] local.INFO: ID value: 321e2704-bd53-404f-a18e-c3aeeedf48f8  
[2026-07-28 20:20:23] local.INFO: ID empty? NO  
[2026-07-28 20:20:23] local.INFO: Attempting to find record with ID: 321e2704-bd53-404f-a18e-c3aeeedf48f8  
[2026-07-28 20:20:23] local.INFO: Record not found, creating new with ID: 321e2704-bd53-404f-a18e-c3aeeedf48f8  
[2026-07-28 20:20:23] local.INFO: Created record: {"id":"321e2704-bd53-404f-a18e-c3aeeedf48f8","type":"Credit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI& KCB BANK","uniqid":"a3ec63a2-b560-476c-82db-26e0ad589f7a","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:23.000000Z","created_at":"2026-07-28T17:20:23.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1222661.6000000000931322574615478515625,"debit_total":"17458034.80","credit_total":16235373.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:15.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:24] local.INFO: Model: Journal  
[2026-07-28 20:20:24] local.INFO: Data received: {"id":"32e34415-36af-458a-86d4-26a5f8829bec","type":"Debit","amount":"850.00","rate":"6.000000","lcy_amount":"7225.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 20:20:24] local.INFO: ID present? YES  
[2026-07-28 20:20:24] local.INFO: ID value: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 20:20:24] local.INFO: ID empty? NO  
[2026-07-28 20:20:24] local.INFO: Attempting to find record with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 20:20:24] local.INFO: Record not found, creating new with ID: 32e34415-36af-458a-86d4-26a5f8829bec  
[2026-07-28 20:20:24] local.INFO: Created record: {"id":"32e34415-36af-458a-86d4-26a5f8829bec","type":"Debit","amount":"850.00","rate":"6.000000","lcy_amount":"7225.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","updated_at":"2026-07-28T17:20:24.000000Z","created_at":"2026-07-28T17:20:24.000000Z","account":{"id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","name":"ZAR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-ZAR-000002","is_fx_account":"1","balance":0.0,"debit_total":850.0,"credit_total":"850.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"ea84bb13-6151-47f9-a162-08395f5e44cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-27T07:27:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:25] local.INFO: Model: Journal  
[2026-07-28 20:20:25] local.INFO: Data received: {"id":"38d7705d-9eef-40b1-bff6-d9644291ad57","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 20:20:25] local.INFO: ID present? YES  
[2026-07-28 20:20:25] local.INFO: ID value: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 20:20:25] local.INFO: ID empty? NO  
[2026-07-28 20:20:25] local.INFO: Attempting to find record with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 20:20:25] local.INFO: Record not found, creating new with ID: 38d7705d-9eef-40b1-bff6-d9644291ad57  
[2026-07-28 20:20:25] local.INFO: Created record: {"id":"38d7705d-9eef-40b1-bff6-d9644291ad57","type":"Debit","amount":"300.00","rate":"127.500000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:20:25.000000Z","created_at":"2026-07-28T17:20:25.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-4631.8900000000003274180926382541656494140625,"debit_total":56652.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:19:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:27] local.INFO: Model: Journal  
[2026-07-28 20:20:27] local.INFO: Data received: {"id":"39f55527-5998-416f-bca0-eede548cc293","type":"Debit","amount":"647000.00","rate":null,"lcy_amount":"647000.000000","narrative":"USD SOLD TO SISI FOREX 24-7-2026","uniqid":"465789b0-22e1-4a9c-be08-73e5cbf6c077","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:58:26","updated_at":"2026-07-24 14:23:27"} 
[2026-07-28 20:20:27] local.INFO: ID present? YES  
[2026-07-28 20:20:27] local.INFO: ID value: 39f55527-5998-416f-bca0-eede548cc293  
[2026-07-28 20:20:27] local.INFO: ID empty? NO  
[2026-07-28 20:20:27] local.INFO: Attempting to find record with ID: 39f55527-5998-416f-bca0-eede548cc293  
[2026-07-28 20:20:27] local.INFO: Record not found, creating new with ID: 39f55527-5998-416f-bca0-eede548cc293  
[2026-07-28 20:20:27] local.INFO: Created record: {"id":"39f55527-5998-416f-bca0-eede548cc293","type":"Debit","amount":"647000.00","rate":null,"lcy_amount":"647000.000000","narrative":"USD SOLD TO SISI FOREX 24-7-2026","uniqid":"465789b0-22e1-4a9c-be08-73e5cbf6c077","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:27.000000Z","created_at":"2026-07-28T17:20:27.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":1137362.0,"debit_total":72811377.0,"credit_total":"71674015.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-28T16:45:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-28 20:20:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:28] local.INFO: Model: Journal  
[2026-07-28 20:20:28] local.INFO: Data received: {"id":"3a8797a9-8076-4ce3-b75b-8c30b5985513","type":"Credit","amount":"90.00","rate":null,"lcy_amount":"2893.500000","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":null,"customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:27:01","updated_at":"2026-07-28 19:17:38"} 
[2026-07-28 20:20:28] local.INFO: ID present? YES  
[2026-07-28 20:20:28] local.INFO: ID value: 3a8797a9-8076-4ce3-b75b-8c30b5985513  
[2026-07-28 20:20:28] local.INFO: ID empty? NO  
[2026-07-28 20:20:28] local.INFO: Attempting to find record with ID: 3a8797a9-8076-4ce3-b75b-8c30b5985513  
[2026-07-28 20:20:28] local.INFO: Record found, updating...  
[2026-07-28 20:20:28] local.INFO: Before update: {"id":"3a8797a9-8076-4ce3-b75b-8c30b5985513","type":"Credit","amount":"90.00","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","rate":null,"lcy_amount":"2893.500000","fx_category":"Withdrawal","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:17:38.000000Z","updated_at":"2026-07-28T16:17:38.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:20:28] local.INFO: After update: {"id":"3a8797a9-8076-4ce3-b75b-8c30b5985513","type":"Credit","amount":"90.00","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","rate":null,"lcy_amount":"2893.500000","fx_category":"Withdrawal","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:17:38.000000Z","updated_at":"2026-07-28T16:17:38.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:20:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:29] local.INFO: Model: Journal  
[2026-07-28 20:20:29] local.INFO: Data received: {"id":"3c8c03a8-e189-4c04-9c70-a1b53b7b295f","type":"Debit","amount":"1500.00","rate":"128.500000","lcy_amount":"193500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 20:20:29] local.INFO: ID present? YES  
[2026-07-28 20:20:29] local.INFO: ID value: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 20:20:29] local.INFO: ID empty? NO  
[2026-07-28 20:20:29] local.INFO: Attempting to find record with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 20:20:29] local.INFO: Record not found, creating new with ID: 3c8c03a8-e189-4c04-9c70-a1b53b7b295f  
[2026-07-28 20:20:29] local.INFO: Created record: {"id":"3c8c03a8-e189-4c04-9c70-a1b53b7b295f","type":"Debit","amount":"1500.00","rate":"128.500000","lcy_amount":"193500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:20:29.000000Z","created_at":"2026-07-28T17:20:29.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-3131.8900000000003274180926382541656494140625,"debit_total":58152.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:30] local.INFO: Model: Journal  
[2026-07-28 20:20:30] local.INFO: Data received: {"id":"3d1d07d7-7f23-467f-af7f-c107f9caa392","type":"Credit","amount":"30.00","rate":"127.500000","lcy_amount":"30.000000","narrative":"Gain on TR-3563-2026","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:20:30] local.INFO: ID present? YES  
[2026-07-28 20:20:30] local.INFO: ID value: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 20:20:30] local.INFO: ID empty? NO  
[2026-07-28 20:20:30] local.INFO: Attempting to find record with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 20:20:30] local.INFO: Record not found, creating new with ID: 3d1d07d7-7f23-467f-af7f-c107f9caa392  
[2026-07-28 20:20:30] local.INFO: Created record: {"id":"3d1d07d7-7f23-467f-af7f-c107f9caa392","type":"Credit","amount":"30.00","rate":"127.500000","lcy_amount":"30.000000","narrative":"Gain on TR-3563-2026","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:30.000000Z","created_at":"2026-07-28T17:20:30.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-92470.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":99670.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:22.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:32] local.INFO: Model: Journal  
[2026-07-28 20:20:32] local.INFO: Data received: {"id":"3e120f50-eea2-471f-a513-c12f9a4c0ff6","type":"Debit","amount":"1600.00","rate":null,"lcy_amount":"206400.000000","narrative":"USD WITHDRAWAL","uniqid":"32abc67f-70ee-43fd-a668-b0ca5e7a6654","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 18:35:52","updated_at":"2026-07-26 18:11:14"} 
[2026-07-28 20:20:32] local.INFO: ID present? YES  
[2026-07-28 20:20:32] local.INFO: ID value: 3e120f50-eea2-471f-a513-c12f9a4c0ff6  
[2026-07-28 20:20:32] local.INFO: ID empty? NO  
[2026-07-28 20:20:32] local.INFO: Attempting to find record with ID: 3e120f50-eea2-471f-a513-c12f9a4c0ff6  
[2026-07-28 20:20:32] local.INFO: Record not found, creating new with ID: 3e120f50-eea2-471f-a513-c12f9a4c0ff6  
[2026-07-28 20:20:32] local.INFO: Created record: {"id":"3e120f50-eea2-471f-a513-c12f9a4c0ff6","type":"Debit","amount":"1600.00","rate":null,"lcy_amount":"206400.000000","narrative":"USD WITHDRAWAL","uniqid":"32abc67f-70ee-43fd-a668-b0ca5e7a6654","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:20:32.000000Z","created_at":"2026-07-28T17:20:32.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":5864.0,"debit_total":30854.0,"credit_total":"24990.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T16:57:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:33] local.INFO: Model: Journal  
[2026-07-28 20:20:33] local.INFO: Data received: {"id":"3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3580-2026","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:20:33] local.INFO: ID present? YES  
[2026-07-28 20:20:33] local.INFO: ID value: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 20:20:33] local.INFO: ID empty? NO  
[2026-07-28 20:20:33] local.INFO: Attempting to find record with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 20:20:33] local.INFO: Record not found, creating new with ID: 3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4  
[2026-07-28 20:20:33] local.INFO: Created record: {"id":"3e4e5c64-ee0a-4f43-a39b-20f5aa9168b4","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3580-2026","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:33.000000Z","created_at":"2026-07-28T17:20:33.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-92620.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":99820.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:30.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:34] local.INFO: Model: Journal  
[2026-07-28 20:20:34] local.INFO: Data received: {"id":"405d88b6-403e-413f-8532-a73585e3182e","type":"Debit","amount":"700.00","rate":"128.500000","lcy_amount":"90300.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:11","updated_at":"2026-07-27 11:43:11"} 
[2026-07-28 20:20:34] local.INFO: ID present? YES  
[2026-07-28 20:20:34] local.INFO: ID value: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 20:20:34] local.INFO: ID empty? NO  
[2026-07-28 20:20:34] local.INFO: Attempting to find record with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 20:20:34] local.INFO: Record not found, creating new with ID: 405d88b6-403e-413f-8532-a73585e3182e  
[2026-07-28 20:20:34] local.INFO: Created record: {"id":"405d88b6-403e-413f-8532-a73585e3182e","type":"Debit","amount":"700.00","rate":"128.500000","lcy_amount":"90300.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ee6e82b6-e8a2-46b1-afeb-af77d8c09184","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:20:34.000000Z","created_at":"2026-07-28T17:20:34.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-2431.88999999999987267074175179004669189453125,"debit_total":58852.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:29.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:35] local.INFO: Model: Journal  
[2026-07-28 20:20:35] local.INFO: Data received: {"id":"418d63f2-b7a4-4038-98b3-faa4757d5b68","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"04d2e29a-62b8-4ed8-adb3-50884ee32f29","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:22:31","updated_at":"2026-07-24 03:33:39"} 
[2026-07-28 20:20:35] local.INFO: ID present? YES  
[2026-07-28 20:20:35] local.INFO: ID value: 418d63f2-b7a4-4038-98b3-faa4757d5b68  
[2026-07-28 20:20:35] local.INFO: ID empty? NO  
[2026-07-28 20:20:35] local.INFO: Attempting to find record with ID: 418d63f2-b7a4-4038-98b3-faa4757d5b68  
[2026-07-28 20:20:35] local.INFO: Record not found, creating new with ID: 418d63f2-b7a4-4038-98b3-faa4757d5b68  
[2026-07-28 20:20:35] local.INFO: Created record: {"id":"418d63f2-b7a4-4038-98b3-faa4757d5b68","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"04d2e29a-62b8-4ed8-adb3-50884ee32f29","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:35.000000Z","created_at":"2026-07-28T17:20:35.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5033.0,"debit_total":5033.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T09:48:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:37] local.INFO: Model: Journal  
[2026-07-28 20:20:37] local.INFO: Data received: {"id":"42e66a89-ff91-4f58-84cb-97ed4cdb090c","type":"Credit","amount":"16950.00","rate":"169.500000","lcy_amount":"16950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:20:37] local.INFO: ID present? YES  
[2026-07-28 20:20:37] local.INFO: ID value: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 20:20:37] local.INFO: ID empty? NO  
[2026-07-28 20:20:37] local.INFO: Attempting to find record with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 20:20:37] local.INFO: Record not found, creating new with ID: 42e66a89-ff91-4f58-84cb-97ed4cdb090c  
[2026-07-28 20:20:37] local.INFO: Created record: {"id":"42e66a89-ff91-4f58-84cb-97ed4cdb090c","type":"Credit","amount":"16950.00","rate":"169.500000","lcy_amount":"16950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:37.000000Z","created_at":"2026-07-28T17:20:37.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1205711.6000000000931322574615478515625,"debit_total":"17458034.80","credit_total":16252323.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:23.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:38] local.INFO: Model: Journal  
[2026-07-28 20:20:38] local.INFO: Data received: {"id":"435c6a51-2ac0-4cc0-8bab-15205f8ce501","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"c495bd8d-51dd-4b0f-835f-489115c81aeb","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 10:35:37","updated_at":"2026-07-25 12:03:36"} 
[2026-07-28 20:20:38] local.INFO: ID present? YES  
[2026-07-28 20:20:38] local.INFO: ID value: 435c6a51-2ac0-4cc0-8bab-15205f8ce501  
[2026-07-28 20:20:38] local.INFO: ID empty? NO  
[2026-07-28 20:20:38] local.INFO: Attempting to find record with ID: 435c6a51-2ac0-4cc0-8bab-15205f8ce501  
[2026-07-28 20:20:38] local.INFO: Record not found, creating new with ID: 435c6a51-2ac0-4cc0-8bab-15205f8ce501  
[2026-07-28 20:20:38] local.INFO: Created record: {"id":"435c6a51-2ac0-4cc0-8bab-15205f8ce501","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"c495bd8d-51dd-4b0f-835f-489115c81aeb","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:38.000000Z","created_at":"2026-07-28T17:20:38.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5092.0,"debit_total":5092.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:39] local.INFO: Model: Journal  
[2026-07-28 20:20:39] local.INFO: Data received: {"id":"478efa6c-7e3d-4932-a9c2-a45d66586eb7","type":"Credit","amount":"321250.00","rate":"128.500000","lcy_amount":"321250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 20:20:39] local.INFO: ID present? YES  
[2026-07-28 20:20:39] local.INFO: ID value: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 20:20:39] local.INFO: ID empty? NO  
[2026-07-28 20:20:39] local.INFO: Attempting to find record with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 20:20:39] local.INFO: Record not found, creating new with ID: 478efa6c-7e3d-4932-a9c2-a45d66586eb7  
[2026-07-28 20:20:39] local.INFO: Created record: {"id":"478efa6c-7e3d-4932-a9c2-a45d66586eb7","type":"Credit","amount":"321250.00","rate":"128.500000","lcy_amount":"321250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:39.000000Z","created_at":"2026-07-28T17:20:39.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":884461.6000000000931322574615478515625,"debit_total":"17458034.80","credit_total":16573573.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:40] local.INFO: Model: Journal  
[2026-07-28 20:20:40] local.INFO: Data received: {"id":"4792d172-391f-4a93-8610-1aea8137a350","type":"Credit","amount":"421045.00","rate":null,"lcy_amount":"421045.000000","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 18:44:29","updated_at":"2026-07-28 19:20:00"} 
[2026-07-28 20:20:40] local.INFO: ID present? YES  
[2026-07-28 20:20:40] local.INFO: ID value: 4792d172-391f-4a93-8610-1aea8137a350  
[2026-07-28 20:20:40] local.INFO: ID empty? NO  
[2026-07-28 20:20:40] local.INFO: Attempting to find record with ID: 4792d172-391f-4a93-8610-1aea8137a350  
[2026-07-28 20:20:40] local.INFO: Record found, updating...  
[2026-07-28 20:20:40] local.INFO: Before update: {"id":"4792d172-391f-4a93-8610-1aea8137a350","type":"Credit","amount":"421045.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"421045.000000","fx_category":null,"narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:20:00.000000Z","updated_at":"2026-07-28T16:20:00.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:20:40] local.INFO: After update: {"id":"4792d172-391f-4a93-8610-1aea8137a350","type":"Credit","amount":"421045.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"421045.000000","fx_category":null,"narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:20:00.000000Z","updated_at":"2026-07-28T16:20:00.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:20:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:42] local.INFO: Model: Journal  
[2026-07-28 20:20:42] local.INFO: Data received: {"id":"47ec4225-c00c-4f93-adf0-e2b5965ab4ed","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 20:20:42] local.INFO: ID present? YES  
[2026-07-28 20:20:42] local.INFO: ID value: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 20:20:42] local.INFO: ID empty? NO  
[2026-07-28 20:20:42] local.INFO: Attempting to find record with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 20:20:42] local.INFO: Record not found, creating new with ID: 47ec4225-c00c-4f93-adf0-e2b5965ab4ed  
[2026-07-28 20:20:42] local.INFO: Created record: {"id":"47ec4225-c00c-4f93-adf0-e2b5965ab4ed","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:42.000000Z","created_at":"2026-07-28T17:20:42.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":858961.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16599073.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:39.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:43] local.INFO: Model: Journal  
[2026-07-28 20:20:43] local.INFO: Data received: {"id":"4860b015-7ba4-45d7-9c2f-9c4243ec0209","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 20:20:43] local.INFO: ID present? YES  
[2026-07-28 20:20:43] local.INFO: ID value: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 20:20:43] local.INFO: ID empty? NO  
[2026-07-28 20:20:43] local.INFO: Attempting to find record with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 20:20:43] local.INFO: Record not found, creating new with ID: 4860b015-7ba4-45d7-9c2f-9c4243ec0209  
[2026-07-28 20:20:43] local.INFO: Created record: {"id":"4860b015-7ba4-45d7-9c2f-9c4243ec0209","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:43.000000Z","created_at":"2026-07-28T17:20:43.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":837211.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16620823.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:42.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:44] local.INFO: Model: Journal  
[2026-07-28 20:20:44] local.INFO: Data received: {"id":"48be2068-2886-4af6-b0b5-57f9019eeb0d","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 20:20:44] local.INFO: ID present? YES  
[2026-07-28 20:20:44] local.INFO: ID value: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 20:20:44] local.INFO: ID empty? NO  
[2026-07-28 20:20:44] local.INFO: Attempting to find record with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 20:20:44] local.INFO: Record not found, creating new with ID: 48be2068-2886-4af6-b0b5-57f9019eeb0d  
[2026-07-28 20:20:44] local.INFO: Created record: {"id":"48be2068-2886-4af6-b0b5-57f9019eeb0d","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:20:44.000000Z","created_at":"2026-07-28T17:20:44.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3065.0,"debit_total":16830.0,"credit_total":"19895.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:20.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:46] local.INFO: Model: Journal  
[2026-07-28 20:20:46] local.INFO: Data received: {"id":"4c1967e5-b90b-4ff9-b98d-1ddb9f520711","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3590-2026","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 20:20:46] local.INFO: ID present? YES  
[2026-07-28 20:20:46] local.INFO: ID value: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 20:20:46] local.INFO: ID empty? NO  
[2026-07-28 20:20:46] local.INFO: Attempting to find record with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 20:20:46] local.INFO: Record not found, creating new with ID: 4c1967e5-b90b-4ff9-b98d-1ddb9f520711  
[2026-07-28 20:20:46] local.INFO: Created record: {"id":"4c1967e5-b90b-4ff9-b98d-1ddb9f520711","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3590-2026","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:46.000000Z","created_at":"2026-07-28T17:20:46.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-92920.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":100120.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:47] local.INFO: Model: Journal  
[2026-07-28 20:20:47] local.INFO: Data received: {"id":"4c6c52b7-3e35-4b60-9344-a9c578beab75","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 20:20:47] local.INFO: ID present? YES  
[2026-07-28 20:20:47] local.INFO: ID value: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 20:20:47] local.INFO: ID empty? NO  
[2026-07-28 20:20:47] local.INFO: Attempting to find record with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 20:20:47] local.INFO: Record not found, creating new with ID: 4c6c52b7-3e35-4b60-9344-a9c578beab75  
[2026-07-28 20:20:47] local.INFO: Created record: {"id":"4c6c52b7-3e35-4b60-9344-a9c578beab75","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:47.000000Z","created_at":"2026-07-28T17:20:47.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":822711.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16635323.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:48] local.INFO: Model: Journal  
[2026-07-28 20:20:48] local.INFO: Data received: {"id":"4e99a3c3-1734-411e-9f69-59eab563758c","type":"Credit","amount":"40.00","rate":null,"lcy_amount":"6938.000000","narrative":"GBP WITHDRAWAL","uniqid":"19fa898d-64b9-4c30-a953-b49f69e9e5e9","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-21 18:42:47","updated_at":"2026-07-24 03:53:23"} 
[2026-07-28 20:20:48] local.INFO: ID present? YES  
[2026-07-28 20:20:48] local.INFO: ID value: 4e99a3c3-1734-411e-9f69-59eab563758c  
[2026-07-28 20:20:48] local.INFO: ID empty? NO  
[2026-07-28 20:20:48] local.INFO: Attempting to find record with ID: 4e99a3c3-1734-411e-9f69-59eab563758c  
[2026-07-28 20:20:48] local.INFO: Record not found, creating new with ID: 4e99a3c3-1734-411e-9f69-59eab563758c  
[2026-07-28 20:20:48] local.INFO: Created record: {"id":"4e99a3c3-1734-411e-9f69-59eab563758c","type":"Credit","amount":"40.00","rate":null,"lcy_amount":"6938.000000","narrative":"GBP WITHDRAWAL","uniqid":"19fa898d-64b9-4c30-a953-b49f69e9e5e9","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","updated_at":"2026-07-28T17:20:48.000000Z","created_at":"2026-07-28T17:20:48.000000Z","account":{"id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","name":"GBP-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-GBP-000002","is_fx_account":"1","balance":-140.0,"debit_total":"1110.00","credit_total":1250.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d7b87b04-d19c-4bed-9d3c-115c07257649","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:06:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:49] local.INFO: Model: Journal  
[2026-07-28 20:20:49] local.INFO: Data received: {"id":"4f517894-0bb6-44c7-b991-0c87c9820dad","type":"Debit","amount":"70448.00","rate":null,"lcy_amount":"70448.000000","narrative":"RIA PAID OUT 21-07-2026","uniqid":"37212d46-4655-486b-8fb2-895c873716ca","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"bfe34ee3-d75c-4edd-814e-874d462fbd9c","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 18:41:44","updated_at":"2026-07-24 03:54:34"} 
[2026-07-28 20:20:49] local.INFO: ID present? YES  
[2026-07-28 20:20:49] local.INFO: ID value: 4f517894-0bb6-44c7-b991-0c87c9820dad  
[2026-07-28 20:20:49] local.INFO: ID empty? NO  
[2026-07-28 20:20:49] local.INFO: Attempting to find record with ID: 4f517894-0bb6-44c7-b991-0c87c9820dad  
[2026-07-28 20:20:49] local.INFO: Record not found, creating new with ID: 4f517894-0bb6-44c7-b991-0c87c9820dad  
[2026-07-28 20:20:49] local.INFO: Created record: {"id":"4f517894-0bb6-44c7-b991-0c87c9820dad","type":"Debit","amount":"70448.00","rate":null,"lcy_amount":"70448.000000","narrative":"RIA PAID OUT 21-07-2026","uniqid":"37212d46-4655-486b-8fb2-895c873716ca","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"bfe34ee3-d75c-4edd-814e-874d462fbd9c","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:49.000000Z","created_at":"2026-07-28T17:20:49.000000Z","account":{"id":"bfe34ee3-d75c-4edd-814e-874d462fbd9c","name":"RIA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000008","is_fx_account":null,"balance":211344.0,"debit_total":211344.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"1721c853-d955-416f-a57c-da41340ea16e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:25:45.000000Z","updated_at":"2026-07-24T00:54:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:51] local.INFO: Model: Journal  
[2026-07-28 20:20:51] local.INFO: Data received: {"id":"4f68c6c9-0c12-4c4b-b534-d0607dd0e879","type":"Credit","amount":"10875.00","rate":"145.000000","lcy_amount":"10875.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 20:20:51] local.INFO: ID present? YES  
[2026-07-28 20:20:51] local.INFO: ID value: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 20:20:51] local.INFO: ID empty? NO  
[2026-07-28 20:20:51] local.INFO: Attempting to find record with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 20:20:51] local.INFO: Record not found, creating new with ID: 4f68c6c9-0c12-4c4b-b534-d0607dd0e879  
[2026-07-28 20:20:51] local.INFO: Created record: {"id":"4f68c6c9-0c12-4c4b-b534-d0607dd0e879","type":"Credit","amount":"10875.00","rate":"145.000000","lcy_amount":"10875.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:51.000000Z","created_at":"2026-07-28T17:20:51.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":811836.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16646198.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:52] local.INFO: Model: Journal  
[2026-07-28 20:20:52] local.INFO: Data received: {"id":"4fae9cb3-2525-470f-b79b-5bfbd2b58550","type":"Credit","amount":"76550.00","rate":null,"lcy_amount":"76550.000000","narrative":"MPESA DEPOSIT 25-07-2026","uniqid":"1281cf62-90d1-4c39-b0ac-e48b99eee0de","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:45:19","updated_at":"2026-07-26 18:13:16"} 
[2026-07-28 20:20:52] local.INFO: ID present? YES  
[2026-07-28 20:20:52] local.INFO: ID value: 4fae9cb3-2525-470f-b79b-5bfbd2b58550  
[2026-07-28 20:20:52] local.INFO: ID empty? NO  
[2026-07-28 20:20:52] local.INFO: Attempting to find record with ID: 4fae9cb3-2525-470f-b79b-5bfbd2b58550  
[2026-07-28 20:20:52] local.INFO: Record not found, creating new with ID: 4fae9cb3-2525-470f-b79b-5bfbd2b58550  
[2026-07-28 20:20:52] local.INFO: Created record: {"id":"4fae9cb3-2525-470f-b79b-5bfbd2b58550","type":"Credit","amount":"76550.00","rate":null,"lcy_amount":"76550.000000","narrative":"MPESA DEPOSIT 25-07-2026","uniqid":"1281cf62-90d1-4c39-b0ac-e48b99eee0de","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:52.000000Z","created_at":"2026-07-28T17:20:52.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2753539.0,"debit_total":"3759990.00","credit_total":6513529.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T17:19:30.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:20:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:53] local.INFO: Model: Journal  
[2026-07-28 20:20:53] local.INFO: Data received: {"id":"5036b749-1858-4694-872b-c52ffd1dbe65","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 20:20:53] local.INFO: ID present? YES  
[2026-07-28 20:20:53] local.INFO: ID value: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 20:20:53] local.INFO: ID empty? NO  
[2026-07-28 20:20:53] local.INFO: Attempting to find record with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 20:20:53] local.INFO: Record not found, creating new with ID: 5036b749-1858-4694-872b-c52ffd1dbe65  
[2026-07-28 20:20:53] local.INFO: Created record: {"id":"5036b749-1858-4694-872b-c52ffd1dbe65","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:53.000000Z","created_at":"2026-07-28T17:20:53.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":797336.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16660698.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:54] local.INFO: Model: Journal  
[2026-07-28 20:20:54] local.INFO: Data received: {"id":"50af9eea-fd7b-4837-a0e9-585ac27849d5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:20:54] local.INFO: ID present? YES  
[2026-07-28 20:20:54] local.INFO: ID value: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 20:20:54] local.INFO: ID empty? NO  
[2026-07-28 20:20:54] local.INFO: Attempting to find record with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 20:20:54] local.INFO: Record not found, creating new with ID: 50af9eea-fd7b-4837-a0e9-585ac27849d5  
[2026-07-28 20:20:54] local.INFO: Created record: {"id":"50af9eea-fd7b-4837-a0e9-585ac27849d5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:54.000000Z","created_at":"2026-07-28T17:20:54.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":784586.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16673448.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:53.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:56] local.INFO: Model: Journal  
[2026-07-28 20:20:56] local.INFO: Data received: {"id":"51c58281-3e98-4ad4-8f6c-e7007cc9b3ec","type":"Debit","amount":"290.00","rate":"127.500000","lcy_amount":"37410.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 10:43:46","updated_at":"2026-07-27 10:43:46"} 
[2026-07-28 20:20:56] local.INFO: ID present? YES  
[2026-07-28 20:20:56] local.INFO: ID value: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 20:20:56] local.INFO: ID empty? NO  
[2026-07-28 20:20:56] local.INFO: Attempting to find record with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 20:20:56] local.INFO: Record not found, creating new with ID: 51c58281-3e98-4ad4-8f6c-e7007cc9b3ec  
[2026-07-28 20:20:56] local.INFO: Created record: {"id":"51c58281-3e98-4ad4-8f6c-e7007cc9b3ec","type":"Debit","amount":"290.00","rate":"127.500000","lcy_amount":"37410.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"efbbbe8d-bb62-4338-9108-12af159bf67c","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"efbbbe8d-bb62-4338-9108-12af159bf67c","customer_id":"71fb0471-7101-4317-9dae-49c8f7cc08af","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:20:56.000000Z","created_at":"2026-07-28T17:20:56.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-2141.88999999999987267074175179004669189453125,"debit_total":59142.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:57] local.INFO: Model: Journal  
[2026-07-28 20:20:57] local.INFO: Data received: {"id":"5203e0e6-2cae-46f2-801c-233c677b914f","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 20:20:57] local.INFO: ID present? YES  
[2026-07-28 20:20:57] local.INFO: ID value: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 20:20:57] local.INFO: ID empty? NO  
[2026-07-28 20:20:57] local.INFO: Attempting to find record with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 20:20:57] local.INFO: Record not found, creating new with ID: 5203e0e6-2cae-46f2-801c-233c677b914f  
[2026-07-28 20:20:57] local.INFO: Created record: {"id":"5203e0e6-2cae-46f2-801c-233c677b914f","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:20:57.000000Z","created_at":"2026-07-28T17:20:57.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-2041.88999999999987267074175179004669189453125,"debit_total":59242.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:58] local.INFO: Model: Journal  
[2026-07-28 20:20:58] local.INFO: Data received: {"id":"5215bd58-772b-493e-bb67-4ef87c41ed8a","type":"Credit","amount":"83116.00","rate":null,"lcy_amount":"83116.000000","narrative":"KES ADDITION","uniqid":"3fd4eaca-6e9c-464b-9d33-ccc7931c4c36","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 10:01:06","updated_at":"2026-07-24 03:58:36"} 
[2026-07-28 20:20:58] local.INFO: ID present? YES  
[2026-07-28 20:20:58] local.INFO: ID value: 5215bd58-772b-493e-bb67-4ef87c41ed8a  
[2026-07-28 20:20:58] local.INFO: ID empty? NO  
[2026-07-28 20:20:58] local.INFO: Attempting to find record with ID: 5215bd58-772b-493e-bb67-4ef87c41ed8a  
[2026-07-28 20:20:58] local.INFO: Record not found, creating new with ID: 5215bd58-772b-493e-bb67-4ef87c41ed8a  
[2026-07-28 20:20:58] local.INFO: Created record: {"id":"5215bd58-772b-493e-bb67-4ef87c41ed8a","type":"Credit","amount":"83116.00","rate":null,"lcy_amount":"83116.000000","narrative":"KES ADDITION","uniqid":"3fd4eaca-6e9c-464b-9d33-ccc7931c4c36","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:20:58.000000Z","created_at":"2026-07-28T17:20:58.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":1472409.0,"debit_total":"6602225.70","credit_total":5129816.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:20:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:20:59] local.INFO: Model: Journal  
[2026-07-28 20:20:59] local.INFO: Data received: {"id":"532c9e6d-13e3-4e71-8a42-e1b817b0150f","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 20:20:59] local.INFO: ID present? YES  
[2026-07-28 20:20:59] local.INFO: ID value: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 20:20:59] local.INFO: ID empty? NO  
[2026-07-28 20:20:59] local.INFO: Attempting to find record with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 20:20:59] local.INFO: Record not found, creating new with ID: 532c9e6d-13e3-4e71-8a42-e1b817b0150f  
[2026-07-28 20:20:59] local.INFO: Created record: {"id":"532c9e6d-13e3-4e71-8a42-e1b817b0150f","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:20:59.000000Z","created_at":"2026-07-28T17:20:59.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1841.890000000000100044417195022106170654296875,"debit_total":59442.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:01] local.INFO: Model: Journal  
[2026-07-28 20:21:01] local.INFO: Data received: {"id":"53a689f5-4ac3-459a-8283-c0fde1a27d58","type":"Credit","amount":"154200.00","rate":"128.500000","lcy_amount":"154200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 20:21:01] local.INFO: ID present? YES  
[2026-07-28 20:21:01] local.INFO: ID value: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 20:21:01] local.INFO: ID empty? NO  
[2026-07-28 20:21:01] local.INFO: Attempting to find record with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 20:21:01] local.INFO: Record not found, creating new with ID: 53a689f5-4ac3-459a-8283-c0fde1a27d58  
[2026-07-28 20:21:01] local.INFO: Created record: {"id":"53a689f5-4ac3-459a-8283-c0fde1a27d58","type":"Credit","amount":"154200.00","rate":"128.500000","lcy_amount":"154200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:01.000000Z","created_at":"2026-07-28T17:21:01.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":630386.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16827648.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:54.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:02] local.INFO: Model: Journal  
[2026-07-28 20:21:02] local.INFO: Data received: {"id":"544fd1cd-b55d-4e7c-bafb-a72ed17be958","type":"Debit","amount":"100.00","rate":"128.000000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 20:21:02] local.INFO: ID present? YES  
[2026-07-28 20:21:02] local.INFO: ID value: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 20:21:02] local.INFO: ID empty? NO  
[2026-07-28 20:21:02] local.INFO: Attempting to find record with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 20:21:02] local.INFO: Record not found, creating new with ID: 544fd1cd-b55d-4e7c-bafb-a72ed17be958  
[2026-07-28 20:21:02] local.INFO: Created record: {"id":"544fd1cd-b55d-4e7c-bafb-a72ed17be958","type":"Debit","amount":"100.00","rate":"128.000000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:21:02.000000Z","created_at":"2026-07-28T17:21:02.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1741.890000000000100044417195022106170654296875,"debit_total":59542.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:59.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:03] local.INFO: Model: Journal  
[2026-07-28 20:21:03] local.INFO: Data received: {"id":"5501bb96-740a-4df5-92df-8c8fbb7f37b4","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 20:21:03] local.INFO: ID present? YES  
[2026-07-28 20:21:03] local.INFO: ID value: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 20:21:03] local.INFO: ID empty? NO  
[2026-07-28 20:21:03] local.INFO: Attempting to find record with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 20:21:03] local.INFO: Record not found, creating new with ID: 5501bb96-740a-4df5-92df-8c8fbb7f37b4  
[2026-07-28 20:21:03] local.INFO: Created record: {"id":"5501bb96-740a-4df5-92df-8c8fbb7f37b4","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:21:03.000000Z","created_at":"2026-07-28T17:21:03.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1641.890000000000100044417195022106170654296875,"debit_total":59642.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:05] local.INFO: Model: Journal  
[2026-07-28 20:21:05] local.INFO: Data received: {"id":"562a916c-59cd-4f26-9834-9f429446e1c6","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3592-2026","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 20:21:05] local.INFO: ID present? YES  
[2026-07-28 20:21:05] local.INFO: ID value: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 20:21:05] local.INFO: ID empty? NO  
[2026-07-28 20:21:05] local.INFO: Attempting to find record with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 20:21:05] local.INFO: Record not found, creating new with ID: 562a916c-59cd-4f26-9834-9f429446e1c6  
[2026-07-28 20:21:05] local.INFO: Created record: {"id":"562a916c-59cd-4f26-9834-9f429446e1c6","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3592-2026","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:05.000000Z","created_at":"2026-07-28T17:21:05.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-93220.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":100420.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:06] local.INFO: Model: Journal  
[2026-07-28 20:21:06] local.INFO: Data received: {"id":"562dcef1-abe1-40df-80b1-dc5fbca94a2b","type":"Debit","amount":"400.00","rate":"128.000000","lcy_amount":"51600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 20:21:06] local.INFO: ID present? YES  
[2026-07-28 20:21:06] local.INFO: ID value: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 20:21:06] local.INFO: ID empty? NO  
[2026-07-28 20:21:06] local.INFO: Attempting to find record with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 20:21:06] local.INFO: Record not found, creating new with ID: 562dcef1-abe1-40df-80b1-dc5fbca94a2b  
[2026-07-28 20:21:06] local.INFO: Created record: {"id":"562dcef1-abe1-40df-80b1-dc5fbca94a2b","type":"Debit","amount":"400.00","rate":"128.000000","lcy_amount":"51600.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:21:06.000000Z","created_at":"2026-07-28T17:21:06.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1241.890000000000100044417195022106170654296875,"debit_total":60042.110000000000582076609134674072265625,"credit_total":"61284.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:03.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:07] local.INFO: Model: Journal  
[2026-07-28 20:21:07] local.INFO: Data received: {"id":"573f0050-40d2-45d5-a01c-d887bff6c85d","type":"Credit","amount":"180.00","rate":"127.500000","lcy_amount":"180.000000","narrative":"Gain on TR-3553-2026","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 20:21:07] local.INFO: ID present? YES  
[2026-07-28 20:21:07] local.INFO: ID value: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 20:21:07] local.INFO: ID empty? NO  
[2026-07-28 20:21:07] local.INFO: Attempting to find record with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 20:21:07] local.INFO: Record not found, creating new with ID: 573f0050-40d2-45d5-a01c-d887bff6c85d  
[2026-07-28 20:21:07] local.INFO: Created record: {"id":"573f0050-40d2-45d5-a01c-d887bff6c85d","type":"Credit","amount":"180.00","rate":"127.500000","lcy_amount":"180.000000","narrative":"Gain on TR-3553-2026","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:07.000000Z","created_at":"2026-07-28T17:21:07.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-93400.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":100600.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:09] local.INFO: Model: Journal  
[2026-07-28 20:21:09] local.INFO: Data received: {"id":"578dd5f8-c934-456d-90e6-03d9c5b2211e","type":"Credit","amount":"825.00","rate":null,"lcy_amount":"124740.000000","narrative":"EUR WITHDRAWAL","uniqid":"7813113c-20c7-4498-b15b-435fa79d6450","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 18:37:15","updated_at":"2026-07-27 10:01:21"} 
[2026-07-28 20:21:09] local.INFO: ID present? YES  
[2026-07-28 20:21:09] local.INFO: ID value: 578dd5f8-c934-456d-90e6-03d9c5b2211e  
[2026-07-28 20:21:09] local.INFO: ID empty? NO  
[2026-07-28 20:21:09] local.INFO: Attempting to find record with ID: 578dd5f8-c934-456d-90e6-03d9c5b2211e  
[2026-07-28 20:21:09] local.INFO: Record not found, creating new with ID: 578dd5f8-c934-456d-90e6-03d9c5b2211e  
[2026-07-28 20:21:09] local.INFO: Created record: {"id":"578dd5f8-c934-456d-90e6-03d9c5b2211e","type":"Credit","amount":"825.00","rate":null,"lcy_amount":"124740.000000","narrative":"EUR WITHDRAWAL","uniqid":"7813113c-20c7-4498-b15b-435fa79d6450","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:21:09.000000Z","created_at":"2026-07-28T17:21:09.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3890.0,"debit_total":"16830.00","credit_total":20720.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:10] local.INFO: Model: Journal  
[2026-07-28 20:21:10] local.INFO: Data received: {"id":"5792b84f-e720-411a-9819-e9dabbfe09fb","type":"Debit","amount":"1650.00","rate":null,"lcy_amount":"1650.000000","narrative":"MPESA WITHDRAWAL","uniqid":"c9ab6561-00d9-4d54-92a6-56e45426c6c4","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 18:57:46","updated_at":"2026-07-25 09:59:46"} 
[2026-07-28 20:21:10] local.INFO: ID present? YES  
[2026-07-28 20:21:10] local.INFO: ID value: 5792b84f-e720-411a-9819-e9dabbfe09fb  
[2026-07-28 20:21:10] local.INFO: ID empty? NO  
[2026-07-28 20:21:10] local.INFO: Attempting to find record with ID: 5792b84f-e720-411a-9819-e9dabbfe09fb  
[2026-07-28 20:21:10] local.INFO: Record not found, creating new with ID: 5792b84f-e720-411a-9819-e9dabbfe09fb  
[2026-07-28 20:21:10] local.INFO: Created record: {"id":"5792b84f-e720-411a-9819-e9dabbfe09fb","type":"Debit","amount":"1650.00","rate":null,"lcy_amount":"1650.000000","narrative":"MPESA WITHDRAWAL","uniqid":"c9ab6561-00d9-4d54-92a6-56e45426c6c4","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:10.000000Z","created_at":"2026-07-28T17:21:10.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2751889.0,"debit_total":3761640.0,"credit_total":"6513529.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T17:20:52.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:11] local.INFO: Model: Journal  
[2026-07-28 20:21:11] local.INFO: Data received: {"id":"59300551-4688-4b28-b392-2620761374bf","type":"Credit","amount":"6760.00","rate":"169.000000","lcy_amount":"6760.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 20:21:11] local.INFO: ID present? YES  
[2026-07-28 20:21:11] local.INFO: ID value: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 20:21:11] local.INFO: ID empty? NO  
[2026-07-28 20:21:11] local.INFO: Attempting to find record with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 20:21:11] local.INFO: Record not found, creating new with ID: 59300551-4688-4b28-b392-2620761374bf  
[2026-07-28 20:21:11] local.INFO: Created record: {"id":"59300551-4688-4b28-b392-2620761374bf","type":"Credit","amount":"6760.00","rate":"169.000000","lcy_amount":"6760.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:11.000000Z","created_at":"2026-07-28T17:21:11.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":623626.599999999976716935634613037109375,"debit_total":"17458034.80","credit_total":16834408.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:01.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:12] local.INFO: Model: Journal  
[2026-07-28 20:21:12] local.INFO: Data received: {"id":"5cb5e512-11c4-4207-9e21-4c33dd8421b5","type":"Credit","amount":"195.00","rate":null,"lcy_amount":"25155.000000","narrative":"USD WITHDRAWAL","uniqid":"6d5014ec-31b5-4aac-aae5-4a15d21f1a3c","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-20 18:43:08","updated_at":"2026-07-24 04:14:42"} 
[2026-07-28 20:21:12] local.INFO: ID present? YES  
[2026-07-28 20:21:12] local.INFO: ID value: 5cb5e512-11c4-4207-9e21-4c33dd8421b5  
[2026-07-28 20:21:12] local.INFO: ID empty? NO  
[2026-07-28 20:21:12] local.INFO: Attempting to find record with ID: 5cb5e512-11c4-4207-9e21-4c33dd8421b5  
[2026-07-28 20:21:12] local.INFO: Record not found, creating new with ID: 5cb5e512-11c4-4207-9e21-4c33dd8421b5  
[2026-07-28 20:21:12] local.INFO: Created record: {"id":"5cb5e512-11c4-4207-9e21-4c33dd8421b5","type":"Credit","amount":"195.00","rate":null,"lcy_amount":"25155.000000","narrative":"USD WITHDRAWAL","uniqid":"6d5014ec-31b5-4aac-aae5-4a15d21f1a3c","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:21:12.000000Z","created_at":"2026-07-28T17:21:12.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1436.890000000000100044417195022106170654296875,"debit_total":"60042.11","credit_total":61479.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:14] local.INFO: Model: Journal  
[2026-07-28 20:21:14] local.INFO: Data received: {"id":"5d39cfc0-3376-46f4-981d-6183b8eda509","type":"Debit","amount":"27720.00","rate":null,"lcy_amount":"27720.000000","narrative":"KES ADDITION","uniqid":"25455311-acc1-4896-ab85-6487bb8ad65a","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:21:34","updated_at":"2026-07-24 04:15:31"} 
[2026-07-28 20:21:14] local.INFO: ID present? YES  
[2026-07-28 20:21:14] local.INFO: ID value: 5d39cfc0-3376-46f4-981d-6183b8eda509  
[2026-07-28 20:21:14] local.INFO: ID empty? NO  
[2026-07-28 20:21:14] local.INFO: Attempting to find record with ID: 5d39cfc0-3376-46f4-981d-6183b8eda509  
[2026-07-28 20:21:14] local.INFO: Record not found, creating new with ID: 5d39cfc0-3376-46f4-981d-6183b8eda509  
[2026-07-28 20:21:14] local.INFO: Created record: {"id":"5d39cfc0-3376-46f4-981d-6183b8eda509","type":"Debit","amount":"27720.00","rate":null,"lcy_amount":"27720.000000","narrative":"KES ADDITION","uniqid":"25455311-acc1-4896-ab85-6487bb8ad65a","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:14.000000Z","created_at":"2026-07-28T17:21:14.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":651346.599999999976716935634613037109375,"debit_total":17485754.8000000007450580596923828125,"credit_total":"16834408.20","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:15] local.INFO: Model: Journal  
[2026-07-28 20:21:15] local.INFO: Data received: {"id":"5d6ca16d-d005-41aa-856b-b064676f0b62","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 20:21:15] local.INFO: ID present? YES  
[2026-07-28 20:21:15] local.INFO: ID value: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 20:21:15] local.INFO: ID empty? NO  
[2026-07-28 20:21:15] local.INFO: Attempting to find record with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 20:21:15] local.INFO: Record not found, creating new with ID: 5d6ca16d-d005-41aa-856b-b064676f0b62  
[2026-07-28 20:21:15] local.INFO: Created record: {"id":"5d6ca16d-d005-41aa-856b-b064676f0b62","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:21:15.000000Z","created_at":"2026-07-28T17:21:15.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3840.0,"debit_total":16880.0,"credit_total":"20720.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:16] local.INFO: Model: Journal  
[2026-07-28 20:21:16] local.INFO: Data received: {"id":"5dacc382-6b5e-4600-91f8-6e4140a0cda5","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 20:21:16] local.INFO: ID present? YES  
[2026-07-28 20:21:16] local.INFO: ID value: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 20:21:16] local.INFO: ID empty? NO  
[2026-07-28 20:21:16] local.INFO: Attempting to find record with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 20:21:16] local.INFO: Record not found, creating new with ID: 5dacc382-6b5e-4600-91f8-6e4140a0cda5  
[2026-07-28 20:21:16] local.INFO: Created record: {"id":"5dacc382-6b5e-4600-91f8-6e4140a0cda5","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:16.000000Z","created_at":"2026-07-28T17:21:16.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":593346.599999999976716935634613037109375,"debit_total":"17485754.80","credit_total":16892408.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:14.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:17] local.INFO: Model: Journal  
[2026-07-28 20:21:17] local.INFO: Data received: {"id":"5e64d274-c8d3-4ba4-a931-3d3494d3e3b4","type":"Debit","amount":"120000.00","rate":"0.040000","lcy_amount":"7200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 20:21:17] local.INFO: ID present? YES  
[2026-07-28 20:21:17] local.INFO: ID value: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 20:21:17] local.INFO: ID empty? NO  
[2026-07-28 20:21:17] local.INFO: Attempting to find record with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 20:21:17] local.INFO: Record not found, creating new with ID: 5e64d274-c8d3-4ba4-a931-3d3494d3e3b4  
[2026-07-28 20:21:17] local.INFO: Created record: {"id":"5e64d274-c8d3-4ba4-a931-3d3494d3e3b4","type":"Debit","amount":"120000.00","rate":"0.040000","lcy_amount":"7200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","updated_at":"2026-07-28T17:21:17.000000Z","created_at":"2026-07-28T17:21:17.000000Z","account":{"id":"8df29516-125f-421a-9545-6cf63ea60c7c","name":"TZS-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-TZS-000002","is_fx_account":"1","balance":0.0,"debit_total":131000.0,"credit_total":"131000.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"7a9f62d2-7f4d-45fe-9858-1cc080648691","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T16:38:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:19] local.INFO: Model: Journal  
[2026-07-28 20:21:19] local.INFO: Data received: {"id":"5e756bfd-a98f-4833-9482-6e6f4a6fe69a","type":"Debit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 26-07-2026","uniqid":"176125ef-9510-4a31-a396-78e22cae57de","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:11:49","updated_at":"2026-07-26 18:18:09"} 
[2026-07-28 20:21:19] local.INFO: ID present? YES  
[2026-07-28 20:21:19] local.INFO: ID value: 5e756bfd-a98f-4833-9482-6e6f4a6fe69a  
[2026-07-28 20:21:19] local.INFO: ID empty? NO  
[2026-07-28 20:21:19] local.INFO: Attempting to find record with ID: 5e756bfd-a98f-4833-9482-6e6f4a6fe69a  
[2026-07-28 20:21:19] local.INFO: Record not found, creating new with ID: 5e756bfd-a98f-4833-9482-6e6f4a6fe69a  
[2026-07-28 20:21:19] local.INFO: Created record: {"id":"5e756bfd-a98f-4833-9482-6e6f4a6fe69a","type":"Debit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 26-07-2026","uniqid":"176125ef-9510-4a31-a396-78e22cae57de","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:19.000000Z","created_at":"2026-07-28T17:21:19.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2351889.0,"debit_total":4161640.0,"credit_total":"6513529.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T17:21:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:20] local.INFO: Model: Journal  
[2026-07-28 20:21:20] local.INFO: Data received: {"id":"5eb94b6d-59ac-4116-8218-ce8e53cec021","type":"Debit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:28:37","updated_at":"2026-07-28 19:28:03"} 
[2026-07-28 20:21:20] local.INFO: ID present? YES  
[2026-07-28 20:21:20] local.INFO: ID value: 5eb94b6d-59ac-4116-8218-ce8e53cec021  
[2026-07-28 20:21:20] local.INFO: ID empty? NO  
[2026-07-28 20:21:20] local.INFO: Attempting to find record with ID: 5eb94b6d-59ac-4116-8218-ce8e53cec021  
[2026-07-28 20:21:20] local.INFO: Record found, updating...  
[2026-07-28 20:21:20] local.INFO: Before update: {"id":"5eb94b6d-59ac-4116-8218-ce8e53cec021","type":"Debit","amount":"400000.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"400000.000000","fx_category":null,"narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:28:03.000000Z","updated_at":"2026-07-28T16:28:03.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:21:20] local.INFO: After update: {"id":"5eb94b6d-59ac-4116-8218-ce8e53cec021","type":"Debit","amount":"400000.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"400000.000000","fx_category":null,"narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:28:03.000000Z","updated_at":"2026-07-28T16:28:03.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:21:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:21] local.INFO: Model: Journal  
[2026-07-28 20:21:21] local.INFO: Data received: {"id":"5fec7fa7-81d8-4b98-a368-a2b5a8b0f011","type":"Debit","amount":"220.00","rate":null,"lcy_amount":"28380.000000","narrative":"USD WITHDRAWAL","uniqid":"a5c4fd2a-98c6-4f83-b9f8-cc454709e00d","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 18:42:26","updated_at":"2026-07-24 04:20:06"} 
[2026-07-28 20:21:21] local.INFO: ID present? YES  
[2026-07-28 20:21:21] local.INFO: ID value: 5fec7fa7-81d8-4b98-a368-a2b5a8b0f011  
[2026-07-28 20:21:21] local.INFO: ID empty? NO  
[2026-07-28 20:21:21] local.INFO: Attempting to find record with ID: 5fec7fa7-81d8-4b98-a368-a2b5a8b0f011  
[2026-07-28 20:21:21] local.INFO: Record not found, creating new with ID: 5fec7fa7-81d8-4b98-a368-a2b5a8b0f011  
[2026-07-28 20:21:21] local.INFO: Created record: {"id":"5fec7fa7-81d8-4b98-a368-a2b5a8b0f011","type":"Debit","amount":"220.00","rate":null,"lcy_amount":"28380.000000","narrative":"USD WITHDRAWAL","uniqid":"a5c4fd2a-98c6-4f83-b9f8-cc454709e00d","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:21:21.000000Z","created_at":"2026-07-28T17:21:21.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":6084.0,"debit_total":31074.0,"credit_total":"24990.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:32.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:22] local.INFO: Model: Journal  
[2026-07-28 20:21:22] local.INFO: Data received: {"id":"6294b2a5-c3e1-4677-b13c-2e5b5d2918b8","type":"Debit","amount":"485.00","rate":null,"lcy_amount":"73332.000000","narrative":"EUR WITHDRAWAL","uniqid":"2b9a2f0d-6825-47f3-ac07-963a0224d645","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:36:09","updated_at":"2026-07-26 18:18:10"} 
[2026-07-28 20:21:22] local.INFO: ID present? YES  
[2026-07-28 20:21:22] local.INFO: ID value: 6294b2a5-c3e1-4677-b13c-2e5b5d2918b8  
[2026-07-28 20:21:22] local.INFO: ID empty? NO  
[2026-07-28 20:21:22] local.INFO: Attempting to find record with ID: 6294b2a5-c3e1-4677-b13c-2e5b5d2918b8  
[2026-07-28 20:21:22] local.INFO: Record not found, creating new with ID: 6294b2a5-c3e1-4677-b13c-2e5b5d2918b8  
[2026-07-28 20:21:22] local.INFO: Created record: {"id":"6294b2a5-c3e1-4677-b13c-2e5b5d2918b8","type":"Debit","amount":"485.00","rate":null,"lcy_amount":"73332.000000","narrative":"EUR WITHDRAWAL","uniqid":"2b9a2f0d-6825-47f3-ac07-963a0224d645","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:21:22.000000Z","created_at":"2026-07-28T17:21:22.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":8080.0,"debit_total":14420.0,"credit_total":"6340.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:24] local.INFO: Model: Journal  
[2026-07-28 20:21:24] local.INFO: Data received: {"id":"63ae216a-a2a7-4de7-bdcd-91e90458889e","type":"Credit","amount":"647000.00","rate":null,"lcy_amount":"647000.000000","narrative":"USD SOLD TO SISI FOREX 24-7-2026","uniqid":"465789b0-22e1-4a9c-be08-73e5cbf6c077","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:58:26","updated_at":"2026-07-24 14:26:31"} 
[2026-07-28 20:21:24] local.INFO: ID present? YES  
[2026-07-28 20:21:24] local.INFO: ID value: 63ae216a-a2a7-4de7-bdcd-91e90458889e  
[2026-07-28 20:21:24] local.INFO: ID empty? NO  
[2026-07-28 20:21:24] local.INFO: Attempting to find record with ID: 63ae216a-a2a7-4de7-bdcd-91e90458889e  
[2026-07-28 20:21:24] local.INFO: Record not found, creating new with ID: 63ae216a-a2a7-4de7-bdcd-91e90458889e  
[2026-07-28 20:21:24] local.INFO: Created record: {"id":"63ae216a-a2a7-4de7-bdcd-91e90458889e","type":"Credit","amount":"647000.00","rate":null,"lcy_amount":"647000.000000","narrative":"USD SOLD TO SISI FOREX 24-7-2026","uniqid":"465789b0-22e1-4a9c-be08-73e5cbf6c077","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:24.000000Z","created_at":"2026-07-28T17:21:24.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-53653.400000000023283064365386962890625,"debit_total":"17485754.80","credit_total":17539408.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:25] local.INFO: Model: Journal  
[2026-07-28 20:21:25] local.INFO: Data received: {"id":"646c2c01-475a-4770-8e05-7263464923a6","type":"Debit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH 21-7-2026","uniqid":"afa8e887-eae8-4530-b725-fbcb99d9c1b6","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:23:04","updated_at":"2026-07-24 04:26:42"} 
[2026-07-28 20:21:25] local.INFO: ID present? YES  
[2026-07-28 20:21:25] local.INFO: ID value: 646c2c01-475a-4770-8e05-7263464923a6  
[2026-07-28 20:21:25] local.INFO: ID empty? NO  
[2026-07-28 20:21:25] local.INFO: Attempting to find record with ID: 646c2c01-475a-4770-8e05-7263464923a6  
[2026-07-28 20:21:25] local.INFO: Record not found, creating new with ID: 646c2c01-475a-4770-8e05-7263464923a6  
[2026-07-28 20:21:25] local.INFO: Created record: {"id":"646c2c01-475a-4770-8e05-7263464923a6","type":"Debit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH 21-7-2026","uniqid":"afa8e887-eae8-4530-b725-fbcb99d9c1b6","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:25.000000Z","created_at":"2026-07-28T17:21:25.000000Z","account":{"id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","name":"Travel Expense[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000019","is_fx_account":null,"balance":12050.0,"debit_total":12050.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb16c45e-e5d7-4c6d-9fa2-51cb3e635477","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T09:50:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:26] local.INFO: Model: Journal  
[2026-07-28 20:21:26] local.INFO: Data received: {"id":"64bc826f-8267-487b-b415-8e25bba47067","type":"Credit","amount":"2000.00","rate":"129.400000","lcy_amount":"2000.000000","narrative":"Gain on TR-3556-2026","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 20:21:26] local.INFO: ID present? YES  
[2026-07-28 20:21:26] local.INFO: ID value: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 20:21:26] local.INFO: ID empty? NO  
[2026-07-28 20:21:26] local.INFO: Attempting to find record with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 20:21:26] local.INFO: Record not found, creating new with ID: 64bc826f-8267-487b-b415-8e25bba47067  
[2026-07-28 20:21:26] local.INFO: Created record: {"id":"64bc826f-8267-487b-b415-8e25bba47067","type":"Credit","amount":"2000.00","rate":"129.400000","lcy_amount":"2000.000000","narrative":"Gain on TR-3556-2026","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:26.000000Z","created_at":"2026-07-28T17:21:26.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-95400.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":102600.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:27] local.INFO: Model: Journal  
[2026-07-28 20:21:27] local.INFO: Data received: {"id":"664779cb-040e-4546-9aff-21691784903c","type":"Credit","amount":"4800.00","rate":"0.040000","lcy_amount":"4800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:27","updated_at":"2026-07-28 12:28:27"} 
[2026-07-28 20:21:27] local.INFO: ID present? YES  
[2026-07-28 20:21:27] local.INFO: ID value: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 20:21:27] local.INFO: ID empty? NO  
[2026-07-28 20:21:27] local.INFO: Attempting to find record with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 20:21:27] local.INFO: Record not found, creating new with ID: 664779cb-040e-4546-9aff-21691784903c  
[2026-07-28 20:21:27] local.INFO: Created record: {"id":"664779cb-040e-4546-9aff-21691784903c","type":"Credit","amount":"4800.00","rate":"0.040000","lcy_amount":"4800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:27.000000Z","created_at":"2026-07-28T17:21:27.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-58453.4000000000014551915228366851806640625,"debit_total":"17485754.80","credit_total":17544208.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:24.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:29] local.INFO: Model: Journal  
[2026-07-28 20:21:29] local.INFO: Data received: {"id":"6678c0bc-974e-4c2e-a4bd-50f112af191b","type":"Credit","amount":"1500.00","rate":null,"lcy_amount":"1500.000000","narrative":"MPESA WITHDRAWAL 25-07-2026","uniqid":"59587642-e940-4446-8af7-1261ca69b2b1","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:36:34","updated_at":"2026-07-26 18:18:32"} 
[2026-07-28 20:21:29] local.INFO: ID present? YES  
[2026-07-28 20:21:29] local.INFO: ID value: 6678c0bc-974e-4c2e-a4bd-50f112af191b  
[2026-07-28 20:21:29] local.INFO: ID empty? NO  
[2026-07-28 20:21:29] local.INFO: Attempting to find record with ID: 6678c0bc-974e-4c2e-a4bd-50f112af191b  
[2026-07-28 20:21:29] local.INFO: Record not found, creating new with ID: 6678c0bc-974e-4c2e-a4bd-50f112af191b  
[2026-07-28 20:21:29] local.INFO: Created record: {"id":"6678c0bc-974e-4c2e-a4bd-50f112af191b","type":"Credit","amount":"1500.00","rate":null,"lcy_amount":"1500.000000","narrative":"MPESA WITHDRAWAL 25-07-2026","uniqid":"59587642-e940-4446-8af7-1261ca69b2b1","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:29.000000Z","created_at":"2026-07-28T17:21:29.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-59953.4000000000014551915228366851806640625,"debit_total":"17485754.80","credit_total":17545708.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:30] local.INFO: Model: Journal  
[2026-07-28 20:21:30] local.INFO: Data received: {"id":"672769fa-359a-45b1-a708-53bc7a4c0cf0","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 20:21:30] local.INFO: ID present? YES  
[2026-07-28 20:21:30] local.INFO: ID value: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 20:21:30] local.INFO: ID empty? NO  
[2026-07-28 20:21:30] local.INFO: Attempting to find record with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 20:21:30] local.INFO: Record not found, creating new with ID: 672769fa-359a-45b1-a708-53bc7a4c0cf0  
[2026-07-28 20:21:30] local.INFO: Created record: {"id":"672769fa-359a-45b1-a708-53bc7a4c0cf0","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"491a309a-b5f8-4fff-87b1-9e3d6d442967","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"491a309a-b5f8-4fff-87b1-9e3d6d442967","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:30.000000Z","created_at":"2026-07-28T17:21:30.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-117953.39999999999417923390865325927734375,"debit_total":"17485754.80","credit_total":17603708.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:29.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:31] local.INFO: Model: Journal  
[2026-07-28 20:21:31] local.INFO: Data received: {"id":"694e2718-aca8-49f9-bb3c-619db1b7f421","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 20:21:31] local.INFO: ID present? YES  
[2026-07-28 20:21:31] local.INFO: ID value: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 20:21:31] local.INFO: ID empty? NO  
[2026-07-28 20:21:31] local.INFO: Attempting to find record with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 20:21:31] local.INFO: Record not found, creating new with ID: 694e2718-aca8-49f9-bb3c-619db1b7f421  
[2026-07-28 20:21:31] local.INFO: Created record: {"id":"694e2718-aca8-49f9-bb3c-619db1b7f421","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:31.000000Z","created_at":"2026-07-28T17:21:31.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-121578.39999999999417923390865325927734375,"debit_total":"17485754.80","credit_total":17607333.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:30.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:33] local.INFO: Model: Journal  
[2026-07-28 20:21:33] local.INFO: Data received: {"id":"696b953f-fca9-4f7d-ae46-b792e8294c42","type":"Credit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"1b8d7017-54b9-458c-931c-e0687497bedf","date":"2026-07-27","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-27 18:37:34","updated_at":"2026-07-28 11:16:00"} 
[2026-07-28 20:21:33] local.INFO: ID present? YES  
[2026-07-28 20:21:33] local.INFO: ID value: 696b953f-fca9-4f7d-ae46-b792e8294c42  
[2026-07-28 20:21:33] local.INFO: ID empty? NO  
[2026-07-28 20:21:33] local.INFO: Attempting to find record with ID: 696b953f-fca9-4f7d-ae46-b792e8294c42  
[2026-07-28 20:21:33] local.INFO: Record not found, creating new with ID: 696b953f-fca9-4f7d-ae46-b792e8294c42  
[2026-07-28 20:21:33] local.INFO: Created record: {"id":"696b953f-fca9-4f7d-ae46-b792e8294c42","type":"Credit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"1b8d7017-54b9-458c-931c-e0687497bedf","date":"2026-07-27","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:21:33.000000Z","created_at":"2026-07-28T17:21:33.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-4040.0,"debit_total":"16880.00","credit_total":20920.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:15.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:34] local.INFO: Model: Journal  
[2026-07-28 20:21:34] local.INFO: Data received: {"id":"6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 20:21:34] local.INFO: ID present? YES  
[2026-07-28 20:21:34] local.INFO: ID value: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 20:21:34] local.INFO: ID empty? NO  
[2026-07-28 20:21:34] local.INFO: Attempting to find record with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 20:21:34] local.INFO: Record not found, creating new with ID: 6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9  
[2026-07-28 20:21:34] local.INFO: Created record: {"id":"6a49730b-bc5b-44a0-8b3b-dc1f4ef97bf9","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:21:34.000000Z","created_at":"2026-07-28T17:21:34.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3990.0,"debit_total":16930.0,"credit_total":"20920.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:35] local.INFO: Model: Journal  
[2026-07-28 20:21:35] local.INFO: Data received: {"id":"6aa66b8c-d511-472b-b97f-da594ca4797a","type":"Debit","amount":"300000.00","rate":null,"lcy_amount":"300000.000000","narrative":"KES WITHDRAWAL","uniqid":"89f6bd53-b5bb-433a-b797-af7733fa5a14","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 19:07:21","updated_at":"2026-07-25 10:02:12"} 
[2026-07-28 20:21:35] local.INFO: ID present? YES  
[2026-07-28 20:21:35] local.INFO: ID value: 6aa66b8c-d511-472b-b97f-da594ca4797a  
[2026-07-28 20:21:35] local.INFO: ID empty? NO  
[2026-07-28 20:21:35] local.INFO: Attempting to find record with ID: 6aa66b8c-d511-472b-b97f-da594ca4797a  
[2026-07-28 20:21:35] local.INFO: Record not found, creating new with ID: 6aa66b8c-d511-472b-b97f-da594ca4797a  
[2026-07-28 20:21:35] local.INFO: Created record: {"id":"6aa66b8c-d511-472b-b97f-da594ca4797a","type":"Debit","amount":"300000.00","rate":null,"lcy_amount":"300000.000000","narrative":"KES WITHDRAWAL","uniqid":"89f6bd53-b5bb-433a-b797-af7733fa5a14","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:35.000000Z","created_at":"2026-07-28T17:21:35.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":1772409.0,"debit_total":6902225.700000000186264514923095703125,"credit_total":"5129816.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:36] local.INFO: Model: Journal  
[2026-07-28 20:21:36] local.INFO: Data received: {"id":"6addec2a-ae52-4db3-a45b-3e5c8a5f059b","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"20.000000","narrative":"Gain on TR-3561-2026","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 20:21:36] local.INFO: ID present? YES  
[2026-07-28 20:21:36] local.INFO: ID value: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 20:21:36] local.INFO: ID empty? NO  
[2026-07-28 20:21:36] local.INFO: Attempting to find record with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 20:21:36] local.INFO: Record not found, creating new with ID: 6addec2a-ae52-4db3-a45b-3e5c8a5f059b  
[2026-07-28 20:21:36] local.INFO: Created record: {"id":"6addec2a-ae52-4db3-a45b-3e5c8a5f059b","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"20.000000","narrative":"Gain on TR-3561-2026","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:36.000000Z","created_at":"2026-07-28T17:21:36.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-95420.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":102620.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:26.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:38] local.INFO: Model: Journal  
[2026-07-28 20:21:38] local.INFO: Data received: {"id":"6c69bc84-d229-47af-869d-562d0fc1ed8d","type":"Credit","amount":"1250.00","rate":"128.500000","lcy_amount":"1250.000000","narrative":"Gain on TR-3597-2026","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 20:21:38] local.INFO: ID present? YES  
[2026-07-28 20:21:38] local.INFO: ID value: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 20:21:38] local.INFO: ID empty? NO  
[2026-07-28 20:21:38] local.INFO: Attempting to find record with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 20:21:38] local.INFO: Record not found, creating new with ID: 6c69bc84-d229-47af-869d-562d0fc1ed8d  
[2026-07-28 20:21:38] local.INFO: Created record: {"id":"6c69bc84-d229-47af-869d-562d0fc1ed8d","type":"Credit","amount":"1250.00","rate":"128.500000","lcy_amount":"1250.000000","narrative":"Gain on TR-3597-2026","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:38.000000Z","created_at":"2026-07-28T17:21:38.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-96670.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":103870.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:39] local.INFO: Model: Journal  
[2026-07-28 20:21:39] local.INFO: Data received: {"id":"6d90c15e-e180-4040-8c12-bb3f7f797150","type":"Credit","amount":"770000.00","rate":null,"lcy_amount":"770000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 21-7-2026","uniqid":"9bfab276-0028-4b5a-9cab-353ea3781d54","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:24:03","updated_at":"2026-07-24 04:40:10"} 
[2026-07-28 20:21:39] local.INFO: ID present? YES  
[2026-07-28 20:21:39] local.INFO: ID value: 6d90c15e-e180-4040-8c12-bb3f7f797150  
[2026-07-28 20:21:39] local.INFO: ID empty? NO  
[2026-07-28 20:21:39] local.INFO: Attempting to find record with ID: 6d90c15e-e180-4040-8c12-bb3f7f797150  
[2026-07-28 20:21:39] local.INFO: Record not found, creating new with ID: 6d90c15e-e180-4040-8c12-bb3f7f797150  
[2026-07-28 20:21:39] local.INFO: Created record: {"id":"6d90c15e-e180-4040-8c12-bb3f7f797150","type":"Credit","amount":"770000.00","rate":null,"lcy_amount":"770000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 21-7-2026","uniqid":"9bfab276-0028-4b5a-9cab-353ea3781d54","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:39.000000Z","created_at":"2026-07-28T17:21:39.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":367362.0,"debit_total":"72811377.00","credit_total":72444015.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-28T17:20:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-28 20:21:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:40] local.INFO: Model: Journal  
[2026-07-28 20:21:40] local.INFO: Data received: {"id":"701f2bb0-6361-41f0-94de-f369a95d2089","type":"Debit","amount":"100.00","rate":"169.500000","lcy_amount":"17345.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:21:40] local.INFO: ID present? YES  
[2026-07-28 20:21:40] local.INFO: ID value: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 20:21:40] local.INFO: ID empty? NO  
[2026-07-28 20:21:40] local.INFO: Attempting to find record with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 20:21:40] local.INFO: Record not found, creating new with ID: 701f2bb0-6361-41f0-94de-f369a95d2089  
[2026-07-28 20:21:40] local.INFO: Created record: {"id":"701f2bb0-6361-41f0-94de-f369a95d2089","type":"Debit","amount":"100.00","rate":"169.500000","lcy_amount":"17345.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","updated_at":"2026-07-28T17:21:40.000000Z","created_at":"2026-07-28T17:21:40.000000Z","account":{"id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","name":"GBP-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-GBP-000002","is_fx_account":"1","balance":-40.0,"debit_total":1210.0,"credit_total":"1250.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d7b87b04-d19c-4bed-9d3c-115c07257649","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:42] local.INFO: Model: Journal  
[2026-07-28 20:21:42] local.INFO: Data received: {"id":"7043a07f-53e3-425c-b734-ae98e8c13524","type":"Credit","amount":"100.00","rate":"128.000000","lcy_amount":"100.000000","narrative":"Gain on TR-3579-2026","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:46","updated_at":"2026-07-26 12:21:46"} 
[2026-07-28 20:21:42] local.INFO: ID present? YES  
[2026-07-28 20:21:42] local.INFO: ID value: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 20:21:42] local.INFO: ID empty? NO  
[2026-07-28 20:21:42] local.INFO: Attempting to find record with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 20:21:42] local.INFO: Record not found, creating new with ID: 7043a07f-53e3-425c-b734-ae98e8c13524  
[2026-07-28 20:21:42] local.INFO: Created record: {"id":"7043a07f-53e3-425c-b734-ae98e8c13524","type":"Credit","amount":"100.00","rate":"128.000000","lcy_amount":"100.000000","narrative":"Gain on TR-3579-2026","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:42.000000Z","created_at":"2026-07-28T17:21:42.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-96770.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":103970.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:38.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:43] local.INFO: Model: Journal  
[2026-07-28 20:21:43] local.INFO: Data received: {"id":"70b55abd-cd57-4b70-bab9-02a99a56aa28","type":"Debit","amount":"70.00","rate":"145.000000","lcy_amount":"10584.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 20:21:43] local.INFO: ID present? YES  
[2026-07-28 20:21:43] local.INFO: ID value: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 20:21:43] local.INFO: ID empty? NO  
[2026-07-28 20:21:43] local.INFO: Attempting to find record with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 20:21:43] local.INFO: Record not found, creating new with ID: 70b55abd-cd57-4b70-bab9-02a99a56aa28  
[2026-07-28 20:21:43] local.INFO: Created record: {"id":"70b55abd-cd57-4b70-bab9-02a99a56aa28","type":"Debit","amount":"70.00","rate":"145.000000","lcy_amount":"10584.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:21:43.000000Z","created_at":"2026-07-28T17:21:43.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3920.0,"debit_total":17000.0,"credit_total":"20920.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:44] local.INFO: Model: Journal  
[2026-07-28 20:21:44] local.INFO: Data received: {"id":"70eb245a-3da8-4b98-a4c2-2c231ea2ac32","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"c495bd8d-51dd-4b0f-835f-489115c81aeb","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 10:35:37","updated_at":"2026-07-25 12:09:21"} 
[2026-07-28 20:21:44] local.INFO: ID present? YES  
[2026-07-28 20:21:44] local.INFO: ID value: 70eb245a-3da8-4b98-a4c2-2c231ea2ac32  
[2026-07-28 20:21:44] local.INFO: ID empty? NO  
[2026-07-28 20:21:44] local.INFO: Attempting to find record with ID: 70eb245a-3da8-4b98-a4c2-2c231ea2ac32  
[2026-07-28 20:21:44] local.INFO: Record not found, creating new with ID: 70eb245a-3da8-4b98-a4c2-2c231ea2ac32  
[2026-07-28 20:21:44] local.INFO: Created record: {"id":"70eb245a-3da8-4b98-a4c2-2c231ea2ac32","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"c495bd8d-51dd-4b0f-835f-489115c81aeb","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:44.000000Z","created_at":"2026-07-28T17:21:44.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-121637.39999999999417923390865325927734375,"debit_total":"17485754.80","credit_total":17607392.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:45] local.INFO: Model: Journal  
[2026-07-28 20:21:45] local.INFO: Data received: {"id":"717615ca-8ff0-4278-9f68-e4592d3391ae","type":"Debit","amount":"1200.00","rate":"128.500000","lcy_amount":"154800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 20:21:45] local.INFO: ID present? YES  
[2026-07-28 20:21:45] local.INFO: ID value: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 20:21:45] local.INFO: ID empty? NO  
[2026-07-28 20:21:45] local.INFO: Attempting to find record with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 20:21:45] local.INFO: Record not found, creating new with ID: 717615ca-8ff0-4278-9f68-e4592d3391ae  
[2026-07-28 20:21:45] local.INFO: Created record: {"id":"717615ca-8ff0-4278-9f68-e4592d3391ae","type":"Debit","amount":"1200.00","rate":"128.500000","lcy_amount":"154800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:21:45.000000Z","created_at":"2026-07-28T17:21:45.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-236.890000000000100044417195022106170654296875,"debit_total":61242.110000000000582076609134674072265625,"credit_total":"61479.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:47] local.INFO: Model: Journal  
[2026-07-28 20:21:47] local.INFO: Data received: {"id":"71c8c9b3-076f-4a7a-9e74-3ed20addc4e7","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 20:21:47] local.INFO: ID present? YES  
[2026-07-28 20:21:47] local.INFO: ID value: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 20:21:47] local.INFO: ID empty? NO  
[2026-07-28 20:21:47] local.INFO: Attempting to find record with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 20:21:47] local.INFO: Record not found, creating new with ID: 71c8c9b3-076f-4a7a-9e74-3ed20addc4e7  
[2026-07-28 20:21:47] local.INFO: Created record: {"id":"71c8c9b3-076f-4a7a-9e74-3ed20addc4e7","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:47.000000Z","created_at":"2026-07-28T17:21:47.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-134387.39999999999417923390865325927734375,"debit_total":"17485754.80","credit_total":17620142.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:48] local.INFO: Model: Journal  
[2026-07-28 20:21:48] local.INFO: Data received: {"id":"72204a5a-2f6f-4428-bacd-3d19012438a2","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 20:21:48] local.INFO: ID present? YES  
[2026-07-28 20:21:48] local.INFO: ID value: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 20:21:48] local.INFO: ID empty? NO  
[2026-07-28 20:21:48] local.INFO: Attempting to find record with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 20:21:48] local.INFO: Record not found, creating new with ID: 72204a5a-2f6f-4428-bacd-3d19012438a2  
[2026-07-28 20:21:48] local.INFO: Created record: {"id":"72204a5a-2f6f-4428-bacd-3d19012438a2","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:21:48.000000Z","created_at":"2026-07-28T17:21:48.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3895.0,"debit_total":17025.0,"credit_total":"20920.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:49] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:49] local.INFO: Model: Journal  
[2026-07-28 20:21:49] local.INFO: Data received: {"id":"7268be57-e38b-42cd-bb4f-9baf0337c809","type":"Debit","amount":"200.00","rate":null,"lcy_amount":"200.000000","narrative":"REFILING OF WATER PLUS TRANSPORT 25-07-2026","uniqid":"51f0bf4c-8b7e-4c59-8aec-ddc023797654","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 15:30:47","updated_at":"2026-07-25 16:35:34"} 
[2026-07-28 20:21:49] local.INFO: ID present? YES  
[2026-07-28 20:21:49] local.INFO: ID value: 7268be57-e38b-42cd-bb4f-9baf0337c809  
[2026-07-28 20:21:49] local.INFO: ID empty? NO  
[2026-07-28 20:21:49] local.INFO: Attempting to find record with ID: 7268be57-e38b-42cd-bb4f-9baf0337c809  
[2026-07-28 20:21:49] local.INFO: Record not found, creating new with ID: 7268be57-e38b-42cd-bb4f-9baf0337c809  
[2026-07-28 20:21:49] local.INFO: Created record: {"id":"7268be57-e38b-42cd-bb4f-9baf0337c809","type":"Debit","amount":"200.00","rate":null,"lcy_amount":"200.000000","narrative":"REFILING OF WATER PLUS TRANSPORT 25-07-2026","uniqid":"51f0bf4c-8b7e-4c59-8aec-ddc023797654","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:49.000000Z","created_at":"2026-07-28T17:21:49.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5292.0,"debit_total":5292.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:20:38.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:50] local.INFO: Model: Journal  
[2026-07-28 20:21:50] local.INFO: Data received: {"id":"72f5efdc-b242-4abb-a686-4f922d8b37ea","type":"Debit","amount":"161379.00","rate":null,"lcy_amount":"161379.000000","narrative":"WU PAID OUT 21-7-2026","uniqid":"2733be25-47ac-4e99-b314-c63e4a3b9589","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 18:41:19","updated_at":"2026-07-24 04:47:15"} 
[2026-07-28 20:21:50] local.INFO: ID present? YES  
[2026-07-28 20:21:50] local.INFO: ID value: 72f5efdc-b242-4abb-a686-4f922d8b37ea  
[2026-07-28 20:21:50] local.INFO: ID empty? NO  
[2026-07-28 20:21:50] local.INFO: Attempting to find record with ID: 72f5efdc-b242-4abb-a686-4f922d8b37ea  
[2026-07-28 20:21:50] local.INFO: Record not found, creating new with ID: 72f5efdc-b242-4abb-a686-4f922d8b37ea  
[2026-07-28 20:21:51] local.INFO: Created record: {"id":"72f5efdc-b242-4abb-a686-4f922d8b37ea","type":"Debit","amount":"161379.00","rate":null,"lcy_amount":"161379.000000","narrative":"WU PAID OUT 21-7-2026","uniqid":"2733be25-47ac-4e99-b314-c63e4a3b9589","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:50.000000Z","created_at":"2026-07-28T17:21:50.000000Z","account":{"id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","name":"Western Union - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000006","is_fx_account":null,"balance":1124644.0,"debit_total":1150244.0,"credit_total":"25600.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"a28afc38-859b-4f22-9bf4-1b0809adf602","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:24:54.000000Z","updated_at":"2026-07-24T01:47:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:52] local.INFO: Model: Journal  
[2026-07-28 20:21:52] local.INFO: Data received: {"id":"73411c2a-eea8-4785-83ac-1d4a3012dd9e","type":"Credit","amount":"10150.00","rate":"145.000000","lcy_amount":"10150.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 20:21:52] local.INFO: ID present? YES  
[2026-07-28 20:21:52] local.INFO: ID value: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 20:21:52] local.INFO: ID empty? NO  
[2026-07-28 20:21:52] local.INFO: Attempting to find record with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 20:21:52] local.INFO: Record not found, creating new with ID: 73411c2a-eea8-4785-83ac-1d4a3012dd9e  
[2026-07-28 20:21:52] local.INFO: Created record: {"id":"73411c2a-eea8-4785-83ac-1d4a3012dd9e","type":"Credit","amount":"10150.00","rate":"145.000000","lcy_amount":"10150.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:52.000000Z","created_at":"2026-07-28T17:21:52.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-144537.39999999999417923390865325927734375,"debit_total":"17485754.80","credit_total":17630292.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:53] local.INFO: Model: Journal  
[2026-07-28 20:21:53] local.INFO: Data received: {"id":"7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc","type":"Credit","amount":"750.00","rate":"128.500000","lcy_amount":"750.000000","narrative":"Gain on TR-3577-2026","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:54:41","updated_at":"2026-07-26 11:54:41"} 
[2026-07-28 20:21:53] local.INFO: ID present? YES  
[2026-07-28 20:21:53] local.INFO: ID value: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 20:21:53] local.INFO: ID empty? NO  
[2026-07-28 20:21:53] local.INFO: Attempting to find record with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 20:21:53] local.INFO: Record not found, creating new with ID: 7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc  
[2026-07-28 20:21:53] local.INFO: Created record: {"id":"7398e0e3-7f6e-4a14-9bb6-5ce00ffbeafc","type":"Credit","amount":"750.00","rate":"128.500000","lcy_amount":"750.000000","narrative":"Gain on TR-3577-2026","uniqid":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aeee902c-dbf4-45dd-94bf-7d7fdc5585e7","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:53.000000Z","created_at":"2026-07-28T17:21:53.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-97520.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":104720.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:42.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:54] local.INFO: Model: Journal  
[2026-07-28 20:21:54] local.INFO: Data received: {"id":"749907db-dfd9-4e72-bb34-e3d9c657edec","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 20:21:54] local.INFO: ID present? YES  
[2026-07-28 20:21:54] local.INFO: ID value: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 20:21:54] local.INFO: ID empty? NO  
[2026-07-28 20:21:54] local.INFO: Attempting to find record with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 20:21:54] local.INFO: Record not found, creating new with ID: 749907db-dfd9-4e72-bb34-e3d9c657edec  
[2026-07-28 20:21:54] local.INFO: Created record: {"id":"749907db-dfd9-4e72-bb34-e3d9c657edec","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:54.000000Z","created_at":"2026-07-28T17:21:54.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-151787.39999999999417923390865325927734375,"debit_total":"17485754.80","credit_total":17637542.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:52.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:56] local.INFO: Model: Journal  
[2026-07-28 20:21:56] local.INFO: Data received: {"id":"7692045d-b900-4a78-a5fa-04b2d130325d","type":"Credit","amount":"15300.00","rate":"127.500000","lcy_amount":"15300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 20:21:56] local.INFO: ID present? YES  
[2026-07-28 20:21:56] local.INFO: ID value: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 20:21:56] local.INFO: ID empty? NO  
[2026-07-28 20:21:56] local.INFO: Attempting to find record with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 20:21:56] local.INFO: Record not found, creating new with ID: 7692045d-b900-4a78-a5fa-04b2d130325d  
[2026-07-28 20:21:56] local.INFO: Created record: {"id":"7692045d-b900-4a78-a5fa-04b2d130325d","type":"Credit","amount":"15300.00","rate":"127.500000","lcy_amount":"15300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:56.000000Z","created_at":"2026-07-28T17:21:56.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-167087.39999999999417923390865325927734375,"debit_total":"17485754.80","credit_total":17652842.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:54.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:57] local.INFO: Model: Journal  
[2026-07-28 20:21:57] local.INFO: Data received: {"id":"7819714e-39d6-4000-b7e8-601874eb0d07","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3550-2026","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 15:55:05","updated_at":"2026-07-21 15:55:05"} 
[2026-07-28 20:21:57] local.INFO: ID present? YES  
[2026-07-28 20:21:57] local.INFO: ID value: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 20:21:57] local.INFO: ID empty? NO  
[2026-07-28 20:21:57] local.INFO: Attempting to find record with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 20:21:57] local.INFO: Record not found, creating new with ID: 7819714e-39d6-4000-b7e8-601874eb0d07  
[2026-07-28 20:21:57] local.INFO: Created record: {"id":"7819714e-39d6-4000-b7e8-601874eb0d07","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3550-2026","uniqid":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ef52c646-0b38-4749-9bb4-08e4d4ee58de","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:57.000000Z","created_at":"2026-07-28T17:21:57.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-97670.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":104870.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:53.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:21:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:58] local.INFO: Model: Journal  
[2026-07-28 20:21:58] local.INFO: Data received: {"id":"791c03fe-5454-40c5-9921-8515caa4b16d","type":"Debit","amount":"76550.00","rate":null,"lcy_amount":"76550.000000","narrative":"MPESA DEPOSIT 25-07-2026","uniqid":"1281cf62-90d1-4c39-b0ac-e48b99eee0de","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:45:19","updated_at":"2026-07-26 18:25:05"} 
[2026-07-28 20:21:58] local.INFO: ID present? YES  
[2026-07-28 20:21:58] local.INFO: ID value: 791c03fe-5454-40c5-9921-8515caa4b16d  
[2026-07-28 20:21:58] local.INFO: ID empty? NO  
[2026-07-28 20:21:58] local.INFO: Attempting to find record with ID: 791c03fe-5454-40c5-9921-8515caa4b16d  
[2026-07-28 20:21:58] local.INFO: Record not found, creating new with ID: 791c03fe-5454-40c5-9921-8515caa4b16d  
[2026-07-28 20:21:58] local.INFO: Created record: {"id":"791c03fe-5454-40c5-9921-8515caa4b16d","type":"Debit","amount":"76550.00","rate":null,"lcy_amount":"76550.000000","narrative":"MPESA DEPOSIT 25-07-2026","uniqid":"1281cf62-90d1-4c39-b0ac-e48b99eee0de","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:21:58.000000Z","created_at":"2026-07-28T17:21:58.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-90537.39999999999417923390865325927734375,"debit_total":17562304.8000000007450580596923828125,"credit_total":"17652842.20","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:21:59] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:21:59] local.INFO: Model: Journal  
[2026-07-28 20:21:59] local.INFO: Data received: {"id":"7b75dae8-400e-4ecf-b8aa-b38b7c30f988","type":"Debit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD WITHDRAWL","uniqid":"b9172735-06cb-45c1-b9d8-6cdaface3013","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 18:57:21","updated_at":"2026-07-25 10:04:37"} 
[2026-07-28 20:21:59] local.INFO: ID present? YES  
[2026-07-28 20:21:59] local.INFO: ID value: 7b75dae8-400e-4ecf-b8aa-b38b7c30f988  
[2026-07-28 20:21:59] local.INFO: ID empty? NO  
[2026-07-28 20:21:59] local.INFO: Attempting to find record with ID: 7b75dae8-400e-4ecf-b8aa-b38b7c30f988  
[2026-07-28 20:21:59] local.INFO: Record not found, creating new with ID: 7b75dae8-400e-4ecf-b8aa-b38b7c30f988  
[2026-07-28 20:21:59] local.INFO: Created record: {"id":"7b75dae8-400e-4ecf-b8aa-b38b7c30f988","type":"Debit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD WITHDRAWL","uniqid":"b9172735-06cb-45c1-b9d8-6cdaface3013","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:21:59.000000Z","created_at":"2026-07-28T17:21:59.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":6104.0,"debit_total":31094.0,"credit_total":"24990.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:01] local.INFO: Model: Journal  
[2026-07-28 20:22:01] local.INFO: Data received: {"id":"7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72","type":"Debit","amount":"120000.00","rate":null,"lcy_amount":"7200.000000","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f","transaction_id":null,"customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 17:27:45","updated_at":"2026-07-28 19:35:48"} 
[2026-07-28 20:22:01] local.INFO: ID present? YES  
[2026-07-28 20:22:01] local.INFO: ID value: 7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72  
[2026-07-28 20:22:01] local.INFO: ID empty? NO  
[2026-07-28 20:22:01] local.INFO: Attempting to find record with ID: 7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72  
[2026-07-28 20:22:01] local.INFO: Record found, updating...  
[2026-07-28 20:22:01] local.INFO: Before update: {"id":"7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72","type":"Debit","amount":"120000.00","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","rate":null,"lcy_amount":"7200.000000","fx_category":"Funding","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:35:48.000000Z","updated_at":"2026-07-28T16:35:48.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:01] local.INFO: After update: {"id":"7bf60a22-e7d2-4ecb-b0f0-ec2d684f1d72","type":"Debit","amount":"120000.00","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","rate":null,"lcy_amount":"7200.000000","fx_category":"Funding","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:35:48.000000Z","updated_at":"2026-07-28T16:35:48.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:02] local.INFO: Model: Journal  
[2026-07-28 20:22:02] local.INFO: Data received: {"id":"7c5f6b97-eadd-4b35-a625-b14202e23e6a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 11:43:31","updated_at":"2026-07-27 11:43:31"} 
[2026-07-28 20:22:02] local.INFO: ID present? YES  
[2026-07-28 20:22:02] local.INFO: ID value: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 20:22:02] local.INFO: ID empty? NO  
[2026-07-28 20:22:02] local.INFO: Attempting to find record with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 20:22:02] local.INFO: Record not found, creating new with ID: 7c5f6b97-eadd-4b35-a625-b14202e23e6a  
[2026-07-28 20:22:02] local.INFO: Created record: {"id":"7c5f6b97-eadd-4b35-a625-b14202e23e6a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9ea1d2f4-d33c-4fb2-b56e-c2323582f359","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:02.000000Z","created_at":"2026-07-28T17:22:02.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-116037.39999999999417923390865325927734375,"debit_total":"17562304.80","credit_total":17678342.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:03] local.INFO: Model: Journal  
[2026-07-28 20:22:03] local.INFO: Data received: {"id":"7cd7f9a1-a08b-4000-8ce0-357414e2574c","type":"Credit","amount":"210.00","rate":"127.500000","lcy_amount":"210.000000","narrative":"Gain on TR-3575-2026","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:13:59","updated_at":"2026-07-26 11:13:59"} 
[2026-07-28 20:22:03] local.INFO: ID present? YES  
[2026-07-28 20:22:03] local.INFO: ID value: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 20:22:03] local.INFO: ID empty? NO  
[2026-07-28 20:22:03] local.INFO: Attempting to find record with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 20:22:03] local.INFO: Record not found, creating new with ID: 7cd7f9a1-a08b-4000-8ce0-357414e2574c  
[2026-07-28 20:22:03] local.INFO: Created record: {"id":"7cd7f9a1-a08b-4000-8ce0-357414e2574c","type":"Credit","amount":"210.00","rate":"127.500000","lcy_amount":"210.000000","narrative":"Gain on TR-3575-2026","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:03.000000Z","created_at":"2026-07-28T17:22:03.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-97880.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":105080.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:22:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:04] local.INFO: Model: Journal  
[2026-07-28 20:22:04] local.INFO: Data received: {"id":"7cdcec7d-1748-40b8-a94b-0b4dcddb5ff4","type":"Credit","amount":"112656.00","rate":null,"lcy_amount":"112656.000000","narrative":"KES ADDITION","uniqid":"9adf6d81-c052-4a89-95ce-401413173783","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 10:14:26","updated_at":"2026-07-24 13:56:46"} 
[2026-07-28 20:22:04] local.INFO: ID present? YES  
[2026-07-28 20:22:04] local.INFO: ID value: 7cdcec7d-1748-40b8-a94b-0b4dcddb5ff4  
[2026-07-28 20:22:04] local.INFO: ID empty? NO  
[2026-07-28 20:22:04] local.INFO: Attempting to find record with ID: 7cdcec7d-1748-40b8-a94b-0b4dcddb5ff4  
[2026-07-28 20:22:04] local.INFO: Record not found, creating new with ID: 7cdcec7d-1748-40b8-a94b-0b4dcddb5ff4  
[2026-07-28 20:22:04] local.INFO: Created record: {"id":"7cdcec7d-1748-40b8-a94b-0b4dcddb5ff4","type":"Credit","amount":"112656.00","rate":null,"lcy_amount":"112656.000000","narrative":"KES ADDITION","uniqid":"9adf6d81-c052-4a89-95ce-401413173783","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:04.000000Z","created_at":"2026-07-28T17:22:04.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":1659753.0,"debit_total":"6902225.70","credit_total":5242472.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:06] local.INFO: Model: Journal  
[2026-07-28 20:22:06] local.INFO: Data received: {"id":"7ed62258-e86b-4f86-8c8d-726b3f6299a5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 20:22:06] local.INFO: ID present? YES  
[2026-07-28 20:22:06] local.INFO: ID value: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 20:22:06] local.INFO: ID empty? NO  
[2026-07-28 20:22:06] local.INFO: Attempting to find record with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 20:22:06] local.INFO: Record not found, creating new with ID: 7ed62258-e86b-4f86-8c8d-726b3f6299a5  
[2026-07-28 20:22:06] local.INFO: Created record: {"id":"7ed62258-e86b-4f86-8c8d-726b3f6299a5","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:06.000000Z","created_at":"2026-07-28T17:22:06.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-128787.39999999999417923390865325927734375,"debit_total":"17562304.80","credit_total":17691092.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:07] local.INFO: Model: Journal  
[2026-07-28 20:22:07] local.INFO: Data received: {"id":"80c81563-b39e-496a-8a72-2d428d22404c","type":"Credit","amount":"2750.00","rate":null,"lcy_amount":"354750.000000","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 18:36:03","updated_at":"2026-07-28 19:36:50"} 
[2026-07-28 20:22:07] local.INFO: ID present? YES  
[2026-07-28 20:22:07] local.INFO: ID value: 80c81563-b39e-496a-8a72-2d428d22404c  
[2026-07-28 20:22:07] local.INFO: ID empty? NO  
[2026-07-28 20:22:07] local.INFO: Attempting to find record with ID: 80c81563-b39e-496a-8a72-2d428d22404c  
[2026-07-28 20:22:07] local.INFO: Record found, updating...  
[2026-07-28 20:22:07] local.INFO: Before update: {"id":"80c81563-b39e-496a-8a72-2d428d22404c","type":"Credit","amount":"2750.00","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","rate":null,"lcy_amount":"354750.000000","fx_category":"Withdrawal","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:36:50.000000Z","updated_at":"2026-07-28T16:36:50.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:07] local.INFO: After update: {"id":"80c81563-b39e-496a-8a72-2d428d22404c","type":"Credit","amount":"2750.00","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","rate":null,"lcy_amount":"354750.000000","fx_category":"Withdrawal","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:36:50.000000Z","updated_at":"2026-07-28T16:36:50.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:08] local.INFO: Model: Journal  
[2026-07-28 20:22:08] local.INFO: Data received: {"id":"80f0d72d-5f60-4ada-8095-fcf569baeeb6","type":"Credit","amount":"5000.00","rate":"129.400000","lcy_amount":"645000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 20:22:08] local.INFO: ID present? YES  
[2026-07-28 20:22:08] local.INFO: ID value: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 20:22:08] local.INFO: ID empty? NO  
[2026-07-28 20:22:08] local.INFO: Attempting to find record with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 20:22:08] local.INFO: Record not found, creating new with ID: 80f0d72d-5f60-4ada-8095-fcf569baeeb6  
[2026-07-28 20:22:08] local.INFO: Created record: {"id":"80f0d72d-5f60-4ada-8095-fcf569baeeb6","type":"Credit","amount":"5000.00","rate":"129.400000","lcy_amount":"645000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:22:08.000000Z","created_at":"2026-07-28T17:22:08.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-5236.8900000000003274180926382541656494140625,"debit_total":"61242.11","credit_total":66479.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:09] local.INFO: Model: Journal  
[2026-07-28 20:22:09] local.INFO: Data received: {"id":"84ca5c79-939f-4fad-af03-e0c7e5aa48e4","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 20:22:09] local.INFO: ID present? YES  
[2026-07-28 20:22:09] local.INFO: ID value: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 20:22:09] local.INFO: ID empty? NO  
[2026-07-28 20:22:09] local.INFO: Attempting to find record with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 20:22:09] local.INFO: Record not found, creating new with ID: 84ca5c79-939f-4fad-af03-e0c7e5aa48e4  
[2026-07-28 20:22:09] local.INFO: Created record: {"id":"84ca5c79-939f-4fad-af03-e0c7e5aa48e4","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:22:09.000000Z","created_at":"2026-07-28T17:22:09.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3795.0,"debit_total":17125.0,"credit_total":"20920.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:11] local.INFO: Model: Journal  
[2026-07-28 20:22:11] local.INFO: Data received: {"id":"858740ec-2cb2-4aab-b7a9-0029dad75440","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3585-2026","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:37:16","updated_at":"2026-07-26 16:37:16"} 
[2026-07-28 20:22:11] local.INFO: ID present? YES  
[2026-07-28 20:22:11] local.INFO: ID value: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 20:22:11] local.INFO: ID empty? NO  
[2026-07-28 20:22:11] local.INFO: Attempting to find record with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 20:22:11] local.INFO: Record not found, creating new with ID: 858740ec-2cb2-4aab-b7a9-0029dad75440  
[2026-07-28 20:22:11] local.INFO: Created record: {"id":"858740ec-2cb2-4aab-b7a9-0029dad75440","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3585-2026","uniqid":"37c8e497-806e-48db-81fb-af483f7431cd","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37c8e497-806e-48db-81fb-af483f7431cd","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:11.000000Z","created_at":"2026-07-28T17:22:11.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-98030.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":105230.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:03.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:22:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:12] local.INFO: Model: Journal  
[2026-07-28 20:22:12] local.INFO: Data received: {"id":"87162659-78aa-48f1-9ef1-e3744015325d","type":"Credit","amount":"120000.00","rate":null,"lcy_amount":"7200.000000","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":null,"customer_id":null,"currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","status":"Posted","created_at":"2026-07-28 17:27:45","updated_at":"2026-07-28 19:38:33"} 
[2026-07-28 20:22:12] local.INFO: ID present? YES  
[2026-07-28 20:22:12] local.INFO: ID value: 87162659-78aa-48f1-9ef1-e3744015325d  
[2026-07-28 20:22:12] local.INFO: ID empty? NO  
[2026-07-28 20:22:12] local.INFO: Attempting to find record with ID: 87162659-78aa-48f1-9ef1-e3744015325d  
[2026-07-28 20:22:12] local.INFO: Record found, updating...  
[2026-07-28 20:22:12] local.INFO: Before update: {"id":"87162659-78aa-48f1-9ef1-e3744015325d","type":"Credit","amount":"120000.00","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","rate":null,"lcy_amount":"7200.000000","fx_category":"Withdrawal","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:38:33.000000Z","updated_at":"2026-07-28T16:38:33.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:12] local.INFO: After update: {"id":"87162659-78aa-48f1-9ef1-e3744015325d","type":"Credit","amount":"120000.00","currency_id":"48891bea-a095-48e8-8ce9-bdd3e5c5696e","rate":null,"lcy_amount":"7200.000000","fx_category":"Withdrawal","narrative":"TSH WITHDRAWAL","uniqid":"dedbd896-bad4-41d5-8066-6b04f6c4cc38","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"8df29516-125f-421a-9545-6cf63ea60c7c","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:38:33.000000Z","updated_at":"2026-07-28T16:38:33.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:13] local.INFO: Model: Journal  
[2026-07-28 20:22:13] local.INFO: Data received: {"id":"87b6e3ad-4f55-4c87-a64e-85acfe87a610","type":"Debit","amount":"309871.00","rate":null,"lcy_amount":"309871.000000","narrative":"MPESA DEPOSIT 26-07-2026","uniqid":"2e3d9be2-f34a-4df4-8146-aea9ec4b7595","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 18:50:19","updated_at":"2026-07-27 10:12:12"} 
[2026-07-28 20:22:13] local.INFO: ID present? YES  
[2026-07-28 20:22:13] local.INFO: ID value: 87b6e3ad-4f55-4c87-a64e-85acfe87a610  
[2026-07-28 20:22:13] local.INFO: ID empty? NO  
[2026-07-28 20:22:13] local.INFO: Attempting to find record with ID: 87b6e3ad-4f55-4c87-a64e-85acfe87a610  
[2026-07-28 20:22:13] local.INFO: Record not found, creating new with ID: 87b6e3ad-4f55-4c87-a64e-85acfe87a610  
[2026-07-28 20:22:13] local.INFO: Created record: {"id":"87b6e3ad-4f55-4c87-a64e-85acfe87a610","type":"Debit","amount":"309871.00","rate":null,"lcy_amount":"309871.000000","narrative":"MPESA DEPOSIT 26-07-2026","uniqid":"2e3d9be2-f34a-4df4-8146-aea9ec4b7595","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:13.000000Z","created_at":"2026-07-28T17:22:13.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":181083.60000000000582076609134674072265625,"debit_total":17872175.8000000007450580596923828125,"credit_total":"17691092.20","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:15] local.INFO: Model: Journal  
[2026-07-28 20:22:15] local.INFO: Data received: {"id":"87ed216d-77f1-4e96-b69a-c20ebbde20b5","type":"Credit","amount":"160.00","rate":null,"lcy_amount":"24192.000000","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:27:23","updated_at":"2026-07-28 19:38:34"} 
[2026-07-28 20:22:15] local.INFO: ID present? YES  
[2026-07-28 20:22:15] local.INFO: ID value: 87ed216d-77f1-4e96-b69a-c20ebbde20b5  
[2026-07-28 20:22:15] local.INFO: ID empty? NO  
[2026-07-28 20:22:15] local.INFO: Attempting to find record with ID: 87ed216d-77f1-4e96-b69a-c20ebbde20b5  
[2026-07-28 20:22:15] local.INFO: Record found, updating...  
[2026-07-28 20:22:15] local.INFO: Before update: {"id":"87ed216d-77f1-4e96-b69a-c20ebbde20b5","type":"Credit","amount":"160.00","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","rate":null,"lcy_amount":"24192.000000","fx_category":"Withdrawal","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:38:34.000000Z","updated_at":"2026-07-28T16:38:34.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:15] local.INFO: After update: {"id":"87ed216d-77f1-4e96-b69a-c20ebbde20b5","type":"Credit","amount":"160.00","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","rate":null,"lcy_amount":"24192.000000","fx_category":"Withdrawal","narrative":"EUR ADDITION","uniqid":"d5fe72f5-2f03-499f-831e-8bb00613d6ea","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:38:34.000000Z","updated_at":"2026-07-28T16:38:34.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:22:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:16] local.INFO: Model: Journal  
[2026-07-28 20:22:16] local.INFO: Data received: {"id":"89042e5c-68b7-4890-b1f8-4f6c3ecf93c4","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3569-2026","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:03:31","updated_at":"2026-07-25 18:03:31"} 
[2026-07-28 20:22:16] local.INFO: ID present? YES  
[2026-07-28 20:22:16] local.INFO: ID value: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 20:22:16] local.INFO: ID empty? NO  
[2026-07-28 20:22:16] local.INFO: Attempting to find record with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 20:22:16] local.INFO: Record not found, creating new with ID: 89042e5c-68b7-4890-b1f8-4f6c3ecf93c4  
[2026-07-28 20:22:16] local.INFO: Created record: {"id":"89042e5c-68b7-4890-b1f8-4f6c3ecf93c4","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3569-2026","uniqid":"0ff78218-5a23-4a19-8495-6bdeac5993f8","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0ff78218-5a23-4a19-8495-6bdeac5993f8","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:16.000000Z","created_at":"2026-07-28T17:22:16.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-98185.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":105385.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:22:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:17] local.INFO: Model: Journal  
[2026-07-28 20:22:17] local.INFO: Data received: {"id":"8973a5cf-fcc0-4353-98ee-726ba20bfea5","type":"Credit","amount":"1390.00","rate":null,"lcy_amount":"179310.000000","narrative":"USD WITHDRAWAL","uniqid":"d8c0b436-e4c2-40ac-861a-1e2395cc7f68","date":"2026-07-27","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 18:38:33","updated_at":"2026-07-28 11:24:29"} 
[2026-07-28 20:22:17] local.INFO: ID present? YES  
[2026-07-28 20:22:17] local.INFO: ID value: 8973a5cf-fcc0-4353-98ee-726ba20bfea5  
[2026-07-28 20:22:17] local.INFO: ID empty? NO  
[2026-07-28 20:22:17] local.INFO: Attempting to find record with ID: 8973a5cf-fcc0-4353-98ee-726ba20bfea5  
[2026-07-28 20:22:17] local.INFO: Record not found, creating new with ID: 8973a5cf-fcc0-4353-98ee-726ba20bfea5  
[2026-07-28 20:22:17] local.INFO: Created record: {"id":"8973a5cf-fcc0-4353-98ee-726ba20bfea5","type":"Credit","amount":"1390.00","rate":null,"lcy_amount":"179310.000000","narrative":"USD WITHDRAWAL","uniqid":"d8c0b436-e4c2-40ac-861a-1e2395cc7f68","date":"2026-07-27","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:22:17.000000Z","created_at":"2026-07-28T17:22:17.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-6626.8900000000003274180926382541656494140625,"debit_total":"61242.11","credit_total":67869.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:08.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:18] local.INFO: Model: Journal  
[2026-07-28 20:22:18] local.INFO: Data received: {"id":"89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 20:22:18] local.INFO: ID present? YES  
[2026-07-28 20:22:18] local.INFO: ID value: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 20:22:18] local.INFO: ID empty? NO  
[2026-07-28 20:22:18] local.INFO: Attempting to find record with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 20:22:18] local.INFO: Record not found, creating new with ID: 89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e  
[2026-07-28 20:22:18] local.INFO: Created record: {"id":"89e843c7-7c68-4d64-b4ef-3cfbad1a8b1e","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:18.000000Z","created_at":"2026-07-28T17:22:18.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":173833.60000000000582076609134674072265625,"debit_total":"17872175.80","credit_total":17698342.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:13.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:20] local.INFO: Model: Journal  
[2026-07-28 20:22:20] local.INFO: Data received: {"id":"8a1160e3-d36b-4fa2-82b8-fc632393a8c5","type":"Credit","amount":"225.00","rate":"150.700000","lcy_amount":"34020.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:22:20] local.INFO: ID present? YES  
[2026-07-28 20:22:20] local.INFO: ID value: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 20:22:20] local.INFO: ID empty? NO  
[2026-07-28 20:22:20] local.INFO: Attempting to find record with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 20:22:20] local.INFO: Record not found, creating new with ID: 8a1160e3-d36b-4fa2-82b8-fc632393a8c5  
[2026-07-28 20:22:20] local.INFO: Created record: {"id":"8a1160e3-d36b-4fa2-82b8-fc632393a8c5","type":"Credit","amount":"225.00","rate":"150.700000","lcy_amount":"34020.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:22:20.000000Z","created_at":"2026-07-28T17:22:20.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-4020.0,"debit_total":"17125.00","credit_total":21145.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:21] local.INFO: Model: Journal  
[2026-07-28 20:22:21] local.INFO: Data received: {"id":"8a431d0f-4c58-494e-8161-bf7aae9141ab","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3571-2026","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 20:22:21] local.INFO: ID present? YES  
[2026-07-28 20:22:21] local.INFO: ID value: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 20:22:21] local.INFO: ID empty? NO  
[2026-07-28 20:22:21] local.INFO: Attempting to find record with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 20:22:21] local.INFO: Record not found, creating new with ID: 8a431d0f-4c58-494e-8161-bf7aae9141ab  
[2026-07-28 20:22:21] local.INFO: Created record: {"id":"8a431d0f-4c58-494e-8161-bf7aae9141ab","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3571-2026","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:21.000000Z","created_at":"2026-07-28T17:22:21.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-98495.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":105695.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:22:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:22] local.INFO: Model: Journal  
[2026-07-28 20:22:22] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:22:22] local.INFO: ID present? YES  
[2026-07-28 20:22:22] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:22] local.INFO: ID empty? NO  
[2026-07-28 20:22:22] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:22] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 20:22:22, 2026-07-28 20:22:22))  
[2026-07-28 20:22:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:22:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:28] local.INFO: Model: Journal  
[2026-07-28 20:22:28] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:22:28] local.INFO: ID present? YES  
[2026-07-28 20:22:28] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:28] local.INFO: ID empty? NO  
[2026-07-28 20:22:28] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:28] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 20:22:28, 2026-07-28 20:22:28))  
[2026-07-28 20:22:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:22:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:34] local.INFO: Model: Journal  
[2026-07-28 20:22:34] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:22:34] local.INFO: ID present? YES  
[2026-07-28 20:22:34] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:34] local.INFO: ID empty? NO  
[2026-07-28 20:22:34] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:34] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 20:22:34, 2026-07-28 20:22:34))  
[2026-07-28 20:22:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:22:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:41] local.INFO: Model: Journal  
[2026-07-28 20:22:41] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:22:41] local.INFO: ID present? YES  
[2026-07-28 20:22:41] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:41] local.INFO: ID empty? NO  
[2026-07-28 20:22:41] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:41] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-28 20:22:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-28 20:22:41, 2026-07-28 20:22:41))  
[2026-07-28 20:22:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:22:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:42] local.INFO: Model: Journal  
[2026-07-28 20:22:42] local.INFO: Data received: {"id":"8bac45bc-b6a0-4484-8aef-7c258afab8a8","type":"Credit","amount":"395.00","rate":"169.500000","lcy_amount":"395.000000","narrative":"Gain on TR-3593-2026","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:22:42] local.INFO: ID present? YES  
[2026-07-28 20:22:42] local.INFO: ID value: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 20:22:42] local.INFO: ID empty? NO  
[2026-07-28 20:22:42] local.INFO: Attempting to find record with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 20:22:42] local.INFO: Record not found, creating new with ID: 8bac45bc-b6a0-4484-8aef-7c258afab8a8  
[2026-07-28 20:22:42] local.INFO: Created record: {"id":"8bac45bc-b6a0-4484-8aef-7c258afab8a8","type":"Credit","amount":"395.00","rate":"169.500000","lcy_amount":"395.000000","narrative":"Gain on TR-3593-2026","uniqid":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d6ee4ced-a8e2-4540-9074-8f05108c5bd2","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:42.000000Z","created_at":"2026-07-28T17:22:42.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-98890.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":106090.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:22:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:43] local.INFO: Model: Journal  
[2026-07-28 20:22:43] local.INFO: Data received: {"id":"8c271839-618b-43e5-88d8-7e6b9d06342a","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"73f5befe-027b-4984-b3b4-2b4539caf870","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 11:21:39","updated_at":"2026-07-28 12:41:58"} 
[2026-07-28 20:22:43] local.INFO: ID present? YES  
[2026-07-28 20:22:43] local.INFO: ID value: 8c271839-618b-43e5-88d8-7e6b9d06342a  
[2026-07-28 20:22:43] local.INFO: ID empty? NO  
[2026-07-28 20:22:43] local.INFO: Attempting to find record with ID: 8c271839-618b-43e5-88d8-7e6b9d06342a  
[2026-07-28 20:22:43] local.INFO: Record not found, creating new with ID: 8c271839-618b-43e5-88d8-7e6b9d06342a  
[2026-07-28 20:22:43] local.INFO: Created record: {"id":"8c271839-618b-43e5-88d8-7e6b9d06342a","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"73f5befe-027b-4984-b3b4-2b4539caf870","date":"2026-07-28","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:43.000000Z","created_at":"2026-07-28T17:22:43.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":173773.60000000000582076609134674072265625,"debit_total":"17872175.80","credit_total":17698402.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:44] local.INFO: Model: Journal  
[2026-07-28 20:22:44] local.INFO: Data received: {"id":"8cbdf5d4-5698-4198-af14-79282ea321a3","type":"Credit","amount":"9425.00","rate":"145.000000","lcy_amount":"9425.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 20:22:44] local.INFO: ID present? YES  
[2026-07-28 20:22:44] local.INFO: ID value: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 20:22:44] local.INFO: ID empty? NO  
[2026-07-28 20:22:44] local.INFO: Attempting to find record with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 20:22:44] local.INFO: Record not found, creating new with ID: 8cbdf5d4-5698-4198-af14-79282ea321a3  
[2026-07-28 20:22:44] local.INFO: Created record: {"id":"8cbdf5d4-5698-4198-af14-79282ea321a3","type":"Credit","amount":"9425.00","rate":"145.000000","lcy_amount":"9425.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:44.000000Z","created_at":"2026-07-28T17:22:44.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":164348.60000000000582076609134674072265625,"debit_total":"17872175.80","credit_total":17707827.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:46] local.INFO: Model: Journal  
[2026-07-28 20:22:46] local.INFO: Data received: {"id":"8e09c4d7-f867-4cf4-86a0-79621f52f051","type":"Debit","amount":"115207.40","rate":null,"lcy_amount":"115207.400000","narrative":"KES ADDITION","uniqid":"d6504d33-d65c-41b3-bbd0-4feaf835ed2c","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 10:39:16","updated_at":"2026-07-28 11:25:51"} 
[2026-07-28 20:22:46] local.INFO: ID present? YES  
[2026-07-28 20:22:46] local.INFO: ID value: 8e09c4d7-f867-4cf4-86a0-79621f52f051  
[2026-07-28 20:22:46] local.INFO: ID empty? NO  
[2026-07-28 20:22:46] local.INFO: Attempting to find record with ID: 8e09c4d7-f867-4cf4-86a0-79621f52f051  
[2026-07-28 20:22:46] local.INFO: Record not found, creating new with ID: 8e09c4d7-f867-4cf4-86a0-79621f52f051  
[2026-07-28 20:22:46] local.INFO: Created record: {"id":"8e09c4d7-f867-4cf4-86a0-79621f52f051","type":"Debit","amount":"115207.40","rate":null,"lcy_amount":"115207.400000","narrative":"KES ADDITION","uniqid":"d6504d33-d65c-41b3-bbd0-4feaf835ed2c","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:46.000000Z","created_at":"2026-07-28T17:22:46.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":279556.0,"debit_total":17987383.1999999992549419403076171875,"credit_total":"17707827.20","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:47] local.INFO: Model: Journal  
[2026-07-28 20:22:47] local.INFO: Data received: {"id":"8e1d239f-d32d-4c8a-9db6-f98702dbd681","type":"Debit","amount":"4800.00","rate":null,"lcy_amount":"619200.000000","narrative":"USD ADDITION","uniqid":"5f5d4161-2b29-4344-ba34-43806b050528","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:57:55","updated_at":"2026-07-24 14:31:01"} 
[2026-07-28 20:22:47] local.INFO: ID present? YES  
[2026-07-28 20:22:47] local.INFO: ID value: 8e1d239f-d32d-4c8a-9db6-f98702dbd681  
[2026-07-28 20:22:47] local.INFO: ID empty? NO  
[2026-07-28 20:22:47] local.INFO: Attempting to find record with ID: 8e1d239f-d32d-4c8a-9db6-f98702dbd681  
[2026-07-28 20:22:47] local.INFO: Record not found, creating new with ID: 8e1d239f-d32d-4c8a-9db6-f98702dbd681  
[2026-07-28 20:22:47] local.INFO: Created record: {"id":"8e1d239f-d32d-4c8a-9db6-f98702dbd681","type":"Debit","amount":"4800.00","rate":null,"lcy_amount":"619200.000000","narrative":"USD ADDITION","uniqid":"5f5d4161-2b29-4344-ba34-43806b050528","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:22:47.000000Z","created_at":"2026-07-28T17:22:47.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1826.8900000000003274180926382541656494140625,"debit_total":66042.110000000000582076609134674072265625,"credit_total":"67869.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:17.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:48] local.INFO: Model: Journal  
[2026-07-28 20:22:48] local.INFO: Data received: {"id":"8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8","type":"Credit","amount":"434.00","rate":"145.000000","lcy_amount":"434.000000","narrative":"Gain on TR-3581-2026","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:24:18","updated_at":"2026-07-26 13:24:18"} 
[2026-07-28 20:22:48] local.INFO: ID present? YES  
[2026-07-28 20:22:48] local.INFO: ID value: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 20:22:48] local.INFO: ID empty? NO  
[2026-07-28 20:22:48] local.INFO: Attempting to find record with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 20:22:48] local.INFO: Record not found, creating new with ID: 8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8  
[2026-07-28 20:22:48] local.INFO: Created record: {"id":"8e24d7fc-f7e8-4fcb-95f8-d4e6673074e8","type":"Credit","amount":"434.00","rate":"145.000000","lcy_amount":"434.000000","narrative":"Gain on TR-3581-2026","uniqid":"1d7c15a8-2833-4e16-ab99-c3be836ec400","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1d7c15a8-2833-4e16-ab99-c3be836ec400","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:48.000000Z","created_at":"2026-07-28T17:22:48.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-99324.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":106524.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:42.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:22:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:50] local.INFO: Model: Journal  
[2026-07-28 20:22:50] local.INFO: Data received: {"id":"8ec1fc2c-16b8-42f9-8948-d93114d851f2","type":"Credit","amount":"8670.00","rate":"144.500000","lcy_amount":"8670.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:22:50] local.INFO: ID present? YES  
[2026-07-28 20:22:50] local.INFO: ID value: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 20:22:50] local.INFO: ID empty? NO  
[2026-07-28 20:22:50] local.INFO: Attempting to find record with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 20:22:50] local.INFO: Record not found, creating new with ID: 8ec1fc2c-16b8-42f9-8948-d93114d851f2  
[2026-07-28 20:22:50] local.INFO: Created record: {"id":"8ec1fc2c-16b8-42f9-8948-d93114d851f2","type":"Credit","amount":"8670.00","rate":"144.500000","lcy_amount":"8670.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:50.000000Z","created_at":"2026-07-28T17:22:50.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":270886.0,"debit_total":"17987383.20","credit_total":17716497.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:51] local.INFO: Model: Journal  
[2026-07-28 20:22:51] local.INFO: Data received: {"id":"8fc699ef-38bd-4cfc-a93e-2af1a1fd2417","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 20:22:51] local.INFO: ID present? YES  
[2026-07-28 20:22:51] local.INFO: ID value: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 20:22:51] local.INFO: ID empty? NO  
[2026-07-28 20:22:51] local.INFO: Attempting to find record with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 20:22:51] local.INFO: Record not found, creating new with ID: 8fc699ef-38bd-4cfc-a93e-2af1a1fd2417  
[2026-07-28 20:22:51] local.INFO: Created record: {"id":"8fc699ef-38bd-4cfc-a93e-2af1a1fd2417","type":"Credit","amount":"38250.00","rate":"127.500000","lcy_amount":"38250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:51.000000Z","created_at":"2026-07-28T17:22:51.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":232636.0,"debit_total":"17987383.20","credit_total":17754747.1999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:52] local.INFO: Model: Journal  
[2026-07-28 20:22:52] local.INFO: Data received: {"id":"91a36f3a-203d-4fb3-b954-9dcbddc3d67c","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 11:21:35","updated_at":"2026-07-27 11:21:35"} 
[2026-07-28 20:22:52] local.INFO: ID present? YES  
[2026-07-28 20:22:52] local.INFO: ID value: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 20:22:52] local.INFO: ID empty? NO  
[2026-07-28 20:22:52] local.INFO: Attempting to find record with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 20:22:52] local.INFO: Record not found, creating new with ID: 91a36f3a-203d-4fb3-b954-9dcbddc3d67c  
[2026-07-28 20:22:52] local.INFO: Created record: {"id":"91a36f3a-203d-4fb3-b954-9dcbddc3d67c","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","date":"2026-07-27","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4a55d9c9-fbfc-43b9-8f31-378ffe9822ec","customer_id":"681aac17-1e34-49d6-acdb-3e73571eb855","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:22:52.000000Z","created_at":"2026-07-28T17:22:52.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1626.890000000000100044417195022106170654296875,"debit_total":66242.110000000000582076609134674072265625,"credit_total":"67869.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:53] local.INFO: Model: Journal  
[2026-07-28 20:22:53] local.INFO: Data received: {"id":"932e99ba-f18a-4482-b44d-3b107e929960","type":"Debit","amount":"75.00","rate":"145.000000","lcy_amount":"11340.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:33:11","updated_at":"2026-07-26 10:33:11"} 
[2026-07-28 20:22:53] local.INFO: ID present? YES  
[2026-07-28 20:22:53] local.INFO: ID value: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 20:22:53] local.INFO: ID empty? NO  
[2026-07-28 20:22:53] local.INFO: Attempting to find record with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 20:22:53] local.INFO: Record not found, creating new with ID: 932e99ba-f18a-4482-b44d-3b107e929960  
[2026-07-28 20:22:53] local.INFO: Created record: {"id":"932e99ba-f18a-4482-b44d-3b107e929960","type":"Debit","amount":"75.00","rate":"145.000000","lcy_amount":"11340.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"65f085f9-5a79-403e-b323-84582d8bb2f2","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"65f085f9-5a79-403e-b323-84582d8bb2f2","customer_id":"eebd93cd-e521-4801-8bcf-4ee59786c637","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:22:53.000000Z","created_at":"2026-07-28T17:22:53.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3945.0,"debit_total":17200.0,"credit_total":"21145.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:20.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:55] local.INFO: Model: Journal  
[2026-07-28 20:22:55] local.INFO: Data received: {"id":"938ab8ce-1a59-45d1-803b-1db811853251","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"1290.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 17:44:29","updated_at":"2026-07-26 17:44:29"} 
[2026-07-28 20:22:55] local.INFO: ID present? YES  
[2026-07-28 20:22:55] local.INFO: ID value: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 20:22:55] local.INFO: ID empty? NO  
[2026-07-28 20:22:55] local.INFO: Attempting to find record with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 20:22:55] local.INFO: Record not found, creating new with ID: 938ab8ce-1a59-45d1-803b-1db811853251  
[2026-07-28 20:22:55] local.INFO: Created record: {"id":"938ab8ce-1a59-45d1-803b-1db811853251","type":"Credit","amount":"10.00","rate":"130.000000","lcy_amount":"1290.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:22:55.000000Z","created_at":"2026-07-28T17:22:55.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1636.890000000000100044417195022106170654296875,"debit_total":"66242.11","credit_total":67879.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:52.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:56] local.INFO: Model: Journal  
[2026-07-28 20:22:56] local.INFO: Data received: {"id":"9648c0ae-f066-4e26-90fb-784f971f4216","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 20:22:56] local.INFO: ID present? YES  
[2026-07-28 20:22:56] local.INFO: ID value: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 20:22:56] local.INFO: ID empty? NO  
[2026-07-28 20:22:56] local.INFO: Attempting to find record with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 20:22:56] local.INFO: Record not found, creating new with ID: 9648c0ae-f066-4e26-90fb-784f971f4216  
[2026-07-28 20:22:56] local.INFO: Created record: {"id":"9648c0ae-f066-4e26-90fb-784f971f4216","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:22:56.000000Z","created_at":"2026-07-28T17:22:56.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3845.0,"debit_total":17300.0,"credit_total":"21145.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:53.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:57] local.INFO: Model: Journal  
[2026-07-28 20:22:57] local.INFO: Data received: {"id":"97cc3aa4-9ceb-4531-a526-657b67af7976","type":"Debit","amount":"825.00","rate":null,"lcy_amount":"124740.000000","narrative":"EUR WITHDRAWAL","uniqid":"7813113c-20c7-4498-b15b-435fa79d6450","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 18:37:15","updated_at":"2026-07-27 10:16:17"} 
[2026-07-28 20:22:57] local.INFO: ID present? YES  
[2026-07-28 20:22:57] local.INFO: ID value: 97cc3aa4-9ceb-4531-a526-657b67af7976  
[2026-07-28 20:22:57] local.INFO: ID empty? NO  
[2026-07-28 20:22:57] local.INFO: Attempting to find record with ID: 97cc3aa4-9ceb-4531-a526-657b67af7976  
[2026-07-28 20:22:57] local.INFO: Record not found, creating new with ID: 97cc3aa4-9ceb-4531-a526-657b67af7976  
[2026-07-28 20:22:57] local.INFO: Created record: {"id":"97cc3aa4-9ceb-4531-a526-657b67af7976","type":"Debit","amount":"825.00","rate":null,"lcy_amount":"124740.000000","narrative":"EUR WITHDRAWAL","uniqid":"7813113c-20c7-4498-b15b-435fa79d6450","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:22:57.000000Z","created_at":"2026-07-28T17:22:57.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":8905.0,"debit_total":15245.0,"credit_total":"6340.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:22.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:22:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:22:58] local.INFO: Model: Journal  
[2026-07-28 20:22:58] local.INFO: Data received: {"id":"97d41fcf-1846-487b-a914-3d16cacdd716","type":"Credit","amount":"24862.50","rate":"127.500000","lcy_amount":"24862.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:22:58] local.INFO: ID present? YES  
[2026-07-28 20:22:58] local.INFO: ID value: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 20:22:58] local.INFO: ID empty? NO  
[2026-07-28 20:22:58] local.INFO: Attempting to find record with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 20:22:58] local.INFO: Record not found, creating new with ID: 97d41fcf-1846-487b-a914-3d16cacdd716  
[2026-07-28 20:22:58] local.INFO: Created record: {"id":"97d41fcf-1846-487b-a914-3d16cacdd716","type":"Credit","amount":"24862.50","rate":"127.500000","lcy_amount":"24862.500000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:22:58.000000Z","created_at":"2026-07-28T17:22:58.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":207773.5,"debit_total":"17987383.20","credit_total":17779609.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:00] local.INFO: Model: Journal  
[2026-07-28 20:23:00] local.INFO: Data received: {"id":"98ded782-9336-4482-919d-8c9796decd0d","type":"Debit","amount":"250.00","rate":"128.000000","lcy_amount":"32250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:23:00] local.INFO: ID present? YES  
[2026-07-28 20:23:00] local.INFO: ID value: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 20:23:00] local.INFO: ID empty? NO  
[2026-07-28 20:23:00] local.INFO: Attempting to find record with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 20:23:00] local.INFO: Record not found, creating new with ID: 98ded782-9336-4482-919d-8c9796decd0d  
[2026-07-28 20:23:00] local.INFO: Created record: {"id":"98ded782-9336-4482-919d-8c9796decd0d","type":"Debit","amount":"250.00","rate":"128.000000","lcy_amount":"32250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:23:00.000000Z","created_at":"2026-07-28T17:23:00.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1386.890000000000100044417195022106170654296875,"debit_total":66492.110000000000582076609134674072265625,"credit_total":"67879.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:01] local.INFO: Model: Journal  
[2026-07-28 20:23:01] local.INFO: Data received: {"id":"9ba747b5-9034-4ad3-958c-69caf46d6c39","type":"Credit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD ADDITION","uniqid":"7da4384e-43e0-4a0f-a331-7186b476b17b","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 15:19:46","updated_at":"2026-07-24 16:21:47"} 
[2026-07-28 20:23:01] local.INFO: ID present? YES  
[2026-07-28 20:23:01] local.INFO: ID value: 9ba747b5-9034-4ad3-958c-69caf46d6c39  
[2026-07-28 20:23:01] local.INFO: ID empty? NO  
[2026-07-28 20:23:01] local.INFO: Attempting to find record with ID: 9ba747b5-9034-4ad3-958c-69caf46d6c39  
[2026-07-28 20:23:01] local.INFO: Record not found, creating new with ID: 9ba747b5-9034-4ad3-958c-69caf46d6c39  
[2026-07-28 20:23:01] local.INFO: Created record: {"id":"9ba747b5-9034-4ad3-958c-69caf46d6c39","type":"Credit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD ADDITION","uniqid":"7da4384e-43e0-4a0f-a331-7186b476b17b","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:23:01.000000Z","created_at":"2026-07-28T17:23:01.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":6084.0,"debit_total":"31094.00","credit_total":25010.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:59.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:02] local.INFO: Model: Journal  
[2026-07-28 20:23:02] local.INFO: Data received: {"id":"9bbd2a8f-e520-4b4c-82fc-3ea5a2d77761","type":"Credit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"6a74a684-eec7-44d2-901a-f822238e5f73","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:11:07","updated_at":"2026-07-26 18:31:51"} 
[2026-07-28 20:23:02] local.INFO: ID present? YES  
[2026-07-28 20:23:02] local.INFO: ID value: 9bbd2a8f-e520-4b4c-82fc-3ea5a2d77761  
[2026-07-28 20:23:02] local.INFO: ID empty? NO  
[2026-07-28 20:23:02] local.INFO: Attempting to find record with ID: 9bbd2a8f-e520-4b4c-82fc-3ea5a2d77761  
[2026-07-28 20:23:02] local.INFO: Record not found, creating new with ID: 9bbd2a8f-e520-4b4c-82fc-3ea5a2d77761  
[2026-07-28 20:23:02] local.INFO: Created record: {"id":"9bbd2a8f-e520-4b4c-82fc-3ea5a2d77761","type":"Credit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"6a74a684-eec7-44d2-901a-f822238e5f73","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:02.000000Z","created_at":"2026-07-28T17:23:02.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":1559753.0,"debit_total":"6902225.70","credit_total":5342472.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:03] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:03] local.INFO: Model: Journal  
[2026-07-28 20:23:03] local.INFO: Data received: {"id":"9bcaadbb-29a7-4709-90c7-c36fc7cc3881","type":"Credit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD WITHDRAWL","uniqid":"b9172735-06cb-45c1-b9d8-6cdaface3013","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 18:57:21","updated_at":"2026-07-25 10:07:45"} 
[2026-07-28 20:23:03] local.INFO: ID present? YES  
[2026-07-28 20:23:03] local.INFO: ID value: 9bcaadbb-29a7-4709-90c7-c36fc7cc3881  
[2026-07-28 20:23:03] local.INFO: ID empty? NO  
[2026-07-28 20:23:03] local.INFO: Attempting to find record with ID: 9bcaadbb-29a7-4709-90c7-c36fc7cc3881  
[2026-07-28 20:23:03] local.INFO: Record not found, creating new with ID: 9bcaadbb-29a7-4709-90c7-c36fc7cc3881  
[2026-07-28 20:23:03] local.INFO: Created record: {"id":"9bcaadbb-29a7-4709-90c7-c36fc7cc3881","type":"Credit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD WITHDRAWL","uniqid":"b9172735-06cb-45c1-b9d8-6cdaface3013","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:23:03.000000Z","created_at":"2026-07-28T17:23:03.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1406.890000000000100044417195022106170654296875,"debit_total":"66492.11","credit_total":67899.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:00.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:05] local.INFO: Model: Journal  
[2026-07-28 20:23:05] local.INFO: Data received: {"id":"9e49d069-756f-4a48-9933-5469b0ce4919","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:23:05] local.INFO: ID present? YES  
[2026-07-28 20:23:05] local.INFO: ID value: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 20:23:05] local.INFO: ID empty? NO  
[2026-07-28 20:23:05] local.INFO: Attempting to find record with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 20:23:05] local.INFO: Record not found, creating new with ID: 9e49d069-756f-4a48-9933-5469b0ce4919  
[2026-07-28 20:23:05] local.INFO: Created record: {"id":"9e49d069-756f-4a48-9933-5469b0ce4919","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:23:05.000000Z","created_at":"2026-07-28T17:23:05.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3545.0,"debit_total":17600.0,"credit_total":"21145.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:06] local.INFO: Model: Journal  
[2026-07-28 20:23:06] local.INFO: Data received: {"id":"a1c94153-aa2c-4982-ba30-f1d6542c7091","type":"Credit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:28:37","updated_at":"2026-07-28 19:45:37"} 
[2026-07-28 20:23:06] local.INFO: ID present? YES  
[2026-07-28 20:23:06] local.INFO: ID value: a1c94153-aa2c-4982-ba30-f1d6542c7091  
[2026-07-28 20:23:06] local.INFO: ID empty? NO  
[2026-07-28 20:23:06] local.INFO: Attempting to find record with ID: a1c94153-aa2c-4982-ba30-f1d6542c7091  
[2026-07-28 20:23:06] local.INFO: Record found, updating...  
[2026-07-28 20:23:06] local.INFO: Before update: {"id":"a1c94153-aa2c-4982-ba30-f1d6542c7091","type":"Credit","amount":"400000.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"400000.000000","fx_category":null,"narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:45:37.000000Z","updated_at":"2026-07-28T16:45:37.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:23:06] local.INFO: After update: {"id":"a1c94153-aa2c-4982-ba30-f1d6542c7091","type":"Credit","amount":"400000.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"400000.000000","fx_category":null,"narrative":"MPESA FLOAT","uniqid":"75864bf1-4f91-4220-97d5-c682d8bb8d6e","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:45:37.000000Z","updated_at":"2026-07-28T16:45:37.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:23:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:07] local.INFO: Model: Journal  
[2026-07-28 20:23:07] local.INFO: Data received: {"id":"a39534db-9f34-48e8-ad95-21ef6214627b","type":"Debit","amount":"65.00","rate":"145.000000","lcy_amount":"9828.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 20:23:07] local.INFO: ID present? YES  
[2026-07-28 20:23:07] local.INFO: ID value: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 20:23:07] local.INFO: ID empty? NO  
[2026-07-28 20:23:07] local.INFO: Attempting to find record with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 20:23:07] local.INFO: Record not found, creating new with ID: a39534db-9f34-48e8-ad95-21ef6214627b  
[2026-07-28 20:23:07] local.INFO: Created record: {"id":"a39534db-9f34-48e8-ad95-21ef6214627b","type":"Debit","amount":"65.00","rate":"145.000000","lcy_amount":"9828.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:23:07.000000Z","created_at":"2026-07-28T17:23:07.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3480.0,"debit_total":17665.0,"credit_total":"21145.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:08] local.INFO: Model: Journal  
[2026-07-28 20:23:08] local.INFO: Data received: {"id":"a3d89dc4-0c27-4470-ad9b-627f7009aaab","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 10:44:47","updated_at":"2026-07-26 10:44:47"} 
[2026-07-28 20:23:08] local.INFO: ID present? YES  
[2026-07-28 20:23:08] local.INFO: ID value: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 20:23:08] local.INFO: ID empty? NO  
[2026-07-28 20:23:08] local.INFO: Attempting to find record with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 20:23:08] local.INFO: Record not found, creating new with ID: a3d89dc4-0c27-4470-ad9b-627f7009aaab  
[2026-07-28 20:23:08] local.INFO: Created record: {"id":"a3d89dc4-0c27-4470-ad9b-627f7009aaab","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"382830ae-bfbc-4f1f-b2a2-973c01b5f1e5","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:23:08.000000Z","created_at":"2026-07-28T17:23:08.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1306.890000000000100044417195022106170654296875,"debit_total":66592.110000000000582076609134674072265625,"credit_total":"67899.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:03.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:10] local.INFO: Model: Journal  
[2026-07-28 20:23:10] local.INFO: Data received: {"id":"a4267e75-5796-4a9b-a5c8-3e82a27267d0","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"04d2e29a-62b8-4ed8-adb3-50884ee32f29","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:22:31","updated_at":"2026-07-24 10:44:39"} 
[2026-07-28 20:23:10] local.INFO: ID present? YES  
[2026-07-28 20:23:10] local.INFO: ID value: a4267e75-5796-4a9b-a5c8-3e82a27267d0  
[2026-07-28 20:23:10] local.INFO: ID empty? NO  
[2026-07-28 20:23:10] local.INFO: Attempting to find record with ID: a4267e75-5796-4a9b-a5c8-3e82a27267d0  
[2026-07-28 20:23:10] local.INFO: Record not found, creating new with ID: a4267e75-5796-4a9b-a5c8-3e82a27267d0  
[2026-07-28 20:23:10] local.INFO: Created record: {"id":"a4267e75-5796-4a9b-a5c8-3e82a27267d0","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"04d2e29a-62b8-4ed8-adb3-50884ee32f29","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:10.000000Z","created_at":"2026-07-28T17:23:10.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":207714.5,"debit_total":"17987383.20","credit_total":17779668.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:22:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:11] local.INFO: Model: Journal  
[2026-07-28 20:23:11] local.INFO: Data received: {"id":"a7652906-98b8-4e7f-b069-119f08021ca6","type":"Credit","amount":"372.00","rate":"145.000000","lcy_amount":"372.000000","narrative":"Gain on TR-3567-2026","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 17:52:43","updated_at":"2026-07-25 17:52:43"} 
[2026-07-28 20:23:11] local.INFO: ID present? YES  
[2026-07-28 20:23:11] local.INFO: ID value: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 20:23:11] local.INFO: ID empty? NO  
[2026-07-28 20:23:11] local.INFO: Attempting to find record with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 20:23:11] local.INFO: Record not found, creating new with ID: a7652906-98b8-4e7f-b069-119f08021ca6  
[2026-07-28 20:23:11] local.INFO: Created record: {"id":"a7652906-98b8-4e7f-b069-119f08021ca6","type":"Credit","amount":"372.00","rate":"145.000000","lcy_amount":"372.000000","narrative":"Gain on TR-3567-2026","uniqid":"cf9267ab-03fa-4e20-8664-7d613bd08bba","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"cf9267ab-03fa-4e20-8664-7d613bd08bba","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:11.000000Z","created_at":"2026-07-28T17:23:11.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-99696.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":106896.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:12] local.INFO: Model: Journal  
[2026-07-28 20:23:12] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:23:12] local.INFO: ID present? YES  
[2026-07-28 20:23:12] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:12] local.INFO: ID empty? NO  
[2026-07-28 20:23:12] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:12] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:23:12, 2026-07-28 20:23:12))  
[2026-07-28 20:23:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:23:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:18] local.INFO: Model: Journal  
[2026-07-28 20:23:18] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:23:18] local.INFO: ID present? YES  
[2026-07-28 20:23:18] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:18] local.INFO: ID empty? NO  
[2026-07-28 20:23:18] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:18] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:23:18, 2026-07-28 20:23:18))  
[2026-07-28 20:23:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:23:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:25] local.INFO: Model: Journal  
[2026-07-28 20:23:25] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:23:25] local.INFO: ID present? YES  
[2026-07-28 20:23:25] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:25] local.INFO: ID empty? NO  
[2026-07-28 20:23:25] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:25] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:23:25, 2026-07-28 20:23:25))  
[2026-07-28 20:23:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:23:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:31] local.INFO: Model: Journal  
[2026-07-28 20:23:31] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:23:31] local.INFO: ID present? YES  
[2026-07-28 20:23:31] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:31] local.INFO: ID empty? NO  
[2026-07-28 20:23:31] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:31] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-28 20:23:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:23:31, 2026-07-28 20:23:31))  
[2026-07-28 20:23:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:23:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:32] local.INFO: Model: Journal  
[2026-07-28 20:23:32] local.INFO: Data received: {"id":"a8afdae8-c5aa-413f-953c-121ed5c9f955","type":"Debit","amount":"140.00","rate":"127.500000","lcy_amount":"18060.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 11:13:58","updated_at":"2026-07-26 11:13:58"} 
[2026-07-28 20:23:32] local.INFO: ID present? YES  
[2026-07-28 20:23:32] local.INFO: ID value: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 20:23:32] local.INFO: ID empty? NO  
[2026-07-28 20:23:32] local.INFO: Attempting to find record with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 20:23:32] local.INFO: Record not found, creating new with ID: a8afdae8-c5aa-413f-953c-121ed5c9f955  
[2026-07-28 20:23:32] local.INFO: Created record: {"id":"a8afdae8-c5aa-413f-953c-121ed5c9f955","type":"Debit","amount":"140.00","rate":"127.500000","lcy_amount":"18060.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d0de9e35-342c-4c5c-b246-f1d1ca5fd7b0","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:23:32.000000Z","created_at":"2026-07-28T17:23:32.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1166.890000000000100044417195022106170654296875,"debit_total":66732.110000000000582076609134674072265625,"credit_total":"67899.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:08.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:33] local.INFO: Model: Journal  
[2026-07-28 20:23:33] local.INFO: Data received: {"id":"a8e2db11-8513-4edf-8797-d11bcb4b382e","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3582-2026","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:37:07","updated_at":"2026-07-26 13:37:07"} 
[2026-07-28 20:23:33] local.INFO: ID present? YES  
[2026-07-28 20:23:33] local.INFO: ID value: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 20:23:33] local.INFO: ID empty? NO  
[2026-07-28 20:23:33] local.INFO: Attempting to find record with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 20:23:33] local.INFO: Record not found, creating new with ID: a8e2db11-8513-4edf-8797-d11bcb4b382e  
[2026-07-28 20:23:33] local.INFO: Created record: {"id":"a8e2db11-8513-4edf-8797-d11bcb4b382e","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3582-2026","uniqid":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"85bf00f5-f1e5-48cb-9ccc-ddadeeaf4375","customer_id":"476fc9fb-6470-4c9e-a6f8-f8777a8e1284","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:33.000000Z","created_at":"2026-07-28T17:23:33.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-100316.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":107516.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:35] local.INFO: Model: Journal  
[2026-07-28 20:23:35] local.INFO: Data received: {"id":"a91a413c-7105-4e3c-a57a-80e04c9f9a7f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3578-2026","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:20:53","updated_at":"2026-07-26 12:20:53"} 
[2026-07-28 20:23:35] local.INFO: ID present? YES  
[2026-07-28 20:23:35] local.INFO: ID value: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 20:23:35] local.INFO: ID empty? NO  
[2026-07-28 20:23:35] local.INFO: Attempting to find record with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 20:23:35] local.INFO: Record not found, creating new with ID: a91a413c-7105-4e3c-a57a-80e04c9f9a7f  
[2026-07-28 20:23:35] local.INFO: Created record: {"id":"a91a413c-7105-4e3c-a57a-80e04c9f9a7f","type":"Credit","amount":"450.00","rate":"127.500000","lcy_amount":"450.000000","narrative":"Gain on TR-3578-2026","uniqid":"1fdf6d60-e80a-4caa-852a-125aa4251185","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1fdf6d60-e80a-4caa-852a-125aa4251185","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:35.000000Z","created_at":"2026-07-28T17:23:35.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-100766.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":107966.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:36] local.INFO: Model: Journal  
[2026-07-28 20:23:36] local.INFO: Data received: {"id":"aba284b5-f9e1-4d09-8667-140d0a2212dd","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3584-2026","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 15:40:41","updated_at":"2026-07-26 15:40:41"} 
[2026-07-28 20:23:36] local.INFO: ID present? YES  
[2026-07-28 20:23:36] local.INFO: ID value: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 20:23:36] local.INFO: ID empty? NO  
[2026-07-28 20:23:36] local.INFO: Attempting to find record with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 20:23:36] local.INFO: Record not found, creating new with ID: aba284b5-f9e1-4d09-8667-140d0a2212dd  
[2026-07-28 20:23:36] local.INFO: Created record: {"id":"aba284b5-f9e1-4d09-8667-140d0a2212dd","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3584-2026","uniqid":"597a9446-61c6-4468-824b-d121e1493357","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"597a9446-61c6-4468-824b-d121e1493357","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:36.000000Z","created_at":"2026-07-28T17:23:36.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-101386.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":108586.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:37] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:37] local.INFO: Model: Journal  
[2026-07-28 20:23:37] local.INFO: Data received: {"id":"ac3c72ab-e7b2-4161-ad0c-667ecc92941d","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"73f5befe-027b-4984-b3b4-2b4539caf870","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 11:21:39","updated_at":"2026-07-28 12:48:10"} 
[2026-07-28 20:23:37] local.INFO: ID present? YES  
[2026-07-28 20:23:37] local.INFO: ID value: ac3c72ab-e7b2-4161-ad0c-667ecc92941d  
[2026-07-28 20:23:37] local.INFO: ID empty? NO  
[2026-07-28 20:23:37] local.INFO: Attempting to find record with ID: ac3c72ab-e7b2-4161-ad0c-667ecc92941d  
[2026-07-28 20:23:37] local.INFO: Record not found, creating new with ID: ac3c72ab-e7b2-4161-ad0c-667ecc92941d  
[2026-07-28 20:23:37] local.INFO: Created record: {"id":"ac3c72ab-e7b2-4161-ad0c-667ecc92941d","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"73f5befe-027b-4984-b3b4-2b4539caf870","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:37.000000Z","created_at":"2026-07-28T17:23:37.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5352.0,"debit_total":5352.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:49.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:38] local.INFO: Model: Journal  
[2026-07-28 20:23:38] local.INFO: Data received: {"id":"af2fb2f1-b565-4c95-8f28-44a215190672","type":"Credit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 26-07-2026","uniqid":"176125ef-9510-4a31-a396-78e22cae57de","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:11:49","updated_at":"2026-07-26 18:34:35"} 
[2026-07-28 20:23:38] local.INFO: ID present? YES  
[2026-07-28 20:23:38] local.INFO: ID value: af2fb2f1-b565-4c95-8f28-44a215190672  
[2026-07-28 20:23:38] local.INFO: ID empty? NO  
[2026-07-28 20:23:38] local.INFO: Attempting to find record with ID: af2fb2f1-b565-4c95-8f28-44a215190672  
[2026-07-28 20:23:38] local.INFO: Record not found, creating new with ID: af2fb2f1-b565-4c95-8f28-44a215190672  
[2026-07-28 20:23:38] local.INFO: Created record: {"id":"af2fb2f1-b565-4c95-8f28-44a215190672","type":"Credit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 26-07-2026","uniqid":"176125ef-9510-4a31-a396-78e22cae57de","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:38.000000Z","created_at":"2026-07-28T17:23:38.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":-32638.0,"debit_total":"72811377.00","credit_total":72844015.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-28T17:21:39.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-28 20:23:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:40] local.INFO: Model: Journal  
[2026-07-28 20:23:40] local.INFO: Data received: {"id":"b041504f-8734-4d56-89c3-cce4723c6e8e","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 20:23:40] local.INFO: ID present? YES  
[2026-07-28 20:23:40] local.INFO: ID value: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 20:23:40] local.INFO: ID empty? NO  
[2026-07-28 20:23:40] local.INFO: Attempting to find record with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 20:23:40] local.INFO: Record not found, creating new with ID: b041504f-8734-4d56-89c3-cce4723c6e8e  
[2026-07-28 20:23:40] local.INFO: Created record: {"id":"b041504f-8734-4d56-89c3-cce4723c6e8e","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:40.000000Z","created_at":"2026-07-28T17:23:40.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":201914.5,"debit_total":"17987383.20","credit_total":17785468.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:41] local.INFO: Model: Journal  
[2026-07-28 20:23:41] local.INFO: Data received: {"id":"b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1","type":"Debit","amount":"100.00","rate":null,"lcy_amount":"17345.000000","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"ce9d8957-2875-4287-803f-e465f58d8205","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-28 17:28:12","updated_at":"2026-07-28 19:48:39"} 
[2026-07-28 20:23:41] local.INFO: ID present? YES  
[2026-07-28 20:23:41] local.INFO: ID value: b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1  
[2026-07-28 20:23:41] local.INFO: ID empty? NO  
[2026-07-28 20:23:41] local.INFO: Attempting to find record with ID: b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1  
[2026-07-28 20:23:41] local.INFO: Record found, updating...  
[2026-07-28 20:23:41] local.INFO: Before update: {"id":"b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1","type":"Debit","amount":"100.00","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","rate":null,"lcy_amount":"17345.000000","fx_category":"Funding","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"ce9d8957-2875-4287-803f-e465f58d8205","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:48:39.000000Z","updated_at":"2026-07-28T16:48:39.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:23:41] local.INFO: After update: {"id":"b0e8dbb5-b1d3-43da-8f35-8498ac0a48c1","type":"Debit","amount":"100.00","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","rate":null,"lcy_amount":"17345.000000","fx_category":"Funding","narrative":"GBP WITHDRAWAL","uniqid":"84157c8b-9a0a-4c22-8101-ccaf64787a13","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"ce9d8957-2875-4287-803f-e465f58d8205","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:48:39.000000Z","updated_at":"2026-07-28T16:48:39.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:23:42] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:42] local.INFO: Model: Journal  
[2026-07-28 20:23:42] local.INFO: Data received: {"id":"b39614cc-72c8-4f5c-929b-9863a1de7842","type":"Debit","amount":"421045.00","rate":null,"lcy_amount":"421045.000000","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 18:44:29","updated_at":"2026-07-28 19:48:40"} 
[2026-07-28 20:23:42] local.INFO: ID present? YES  
[2026-07-28 20:23:42] local.INFO: ID value: b39614cc-72c8-4f5c-929b-9863a1de7842  
[2026-07-28 20:23:42] local.INFO: ID empty? NO  
[2026-07-28 20:23:42] local.INFO: Attempting to find record with ID: b39614cc-72c8-4f5c-929b-9863a1de7842  
[2026-07-28 20:23:42] local.INFO: Record found, updating...  
[2026-07-28 20:23:42] local.INFO: Before update: {"id":"b39614cc-72c8-4f5c-929b-9863a1de7842","type":"Debit","amount":"421045.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"421045.000000","fx_category":"Funding","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:48:40.000000Z","updated_at":"2026-07-28T16:48:40.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:23:42] local.INFO: After update: {"id":"b39614cc-72c8-4f5c-929b-9863a1de7842","type":"Debit","amount":"421045.00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","rate":null,"lcy_amount":"421045.000000","fx_category":"Funding","narrative":"MPESA DEPOSIT 28-07-2026","uniqid":"f56d8779-a80f-4ee6-8b8b-3c7e8fa74809","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:48:40.000000Z","updated_at":"2026-07-28T16:48:40.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:23:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:43] local.INFO: Model: Journal  
[2026-07-28 20:23:43] local.INFO: Data received: {"id":"b428a2a3-490d-4360-a55a-46ffe080ee10","type":"Credit","amount":"400.00","rate":"128.000000","lcy_amount":"400.000000","narrative":"Gain on TR-3565-2026","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:51:34","updated_at":"2026-07-25 11:51:34"} 
[2026-07-28 20:23:43] local.INFO: ID present? YES  
[2026-07-28 20:23:43] local.INFO: ID value: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 20:23:43] local.INFO: ID empty? NO  
[2026-07-28 20:23:43] local.INFO: Attempting to find record with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 20:23:43] local.INFO: Record not found, creating new with ID: b428a2a3-490d-4360-a55a-46ffe080ee10  
[2026-07-28 20:23:43] local.INFO: Created record: {"id":"b428a2a3-490d-4360-a55a-46ffe080ee10","type":"Credit","amount":"400.00","rate":"128.000000","lcy_amount":"400.000000","narrative":"Gain on TR-3565-2026","uniqid":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"ba6a7e5a-6a88-4e17-add9-ca7ed30ae986","customer_id":"0db3b090-e1de-40cd-bc79-b6bbcc870750","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:43.000000Z","created_at":"2026-07-28T17:23:43.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-101786.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":108986.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:45] local.INFO: Model: Journal  
[2026-07-28 20:23:45] local.INFO: Data received: {"id":"b6061f91-29e4-492a-bcaf-85ce8c596eb8","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 17:57:56","updated_at":"2026-07-25 17:57:56"} 
[2026-07-28 20:23:45] local.INFO: ID present? YES  
[2026-07-28 20:23:45] local.INFO: ID value: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 20:23:45] local.INFO: ID empty? NO  
[2026-07-28 20:23:45] local.INFO: Attempting to find record with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 20:23:45] local.INFO: Record not found, creating new with ID: b6061f91-29e4-492a-bcaf-85ce8c596eb8  
[2026-07-28 20:23:45] local.INFO: Created record: {"id":"b6061f91-29e4-492a-bcaf-85ce8c596eb8","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"57366bf1-63ba-439b-a913-5602c69040ba","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"57366bf1-63ba-439b-a913-5602c69040ba","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:23:45.000000Z","created_at":"2026-07-28T17:23:45.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3330.0,"debit_total":17815.0,"credit_total":"21145.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:46] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:46] local.INFO: Model: Journal  
[2026-07-28 20:23:46] local.INFO: Data received: {"id":"b616e78f-2a46-4756-972b-92184f2bb727","type":"Credit","amount":"2550.00","rate":"127.500000","lcy_amount":"2550.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:23:46] local.INFO: ID present? YES  
[2026-07-28 20:23:46] local.INFO: ID value: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 20:23:46] local.INFO: ID empty? NO  
[2026-07-28 20:23:46] local.INFO: Attempting to find record with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 20:23:46] local.INFO: Record not found, creating new with ID: b616e78f-2a46-4756-972b-92184f2bb727  
[2026-07-28 20:23:46] local.INFO: Created record: {"id":"b616e78f-2a46-4756-972b-92184f2bb727","type":"Credit","amount":"2550.00","rate":"127.500000","lcy_amount":"2550.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:46.000000Z","created_at":"2026-07-28T17:23:46.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":199364.5,"debit_total":"17987383.20","credit_total":17788018.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:47] local.INFO: Model: Journal  
[2026-07-28 20:23:47] local.INFO: Data received: {"id":"b775a653-d51d-49ad-81b6-2f154e2c7426","type":"Credit","amount":"403.00","rate":"145.000000","lcy_amount":"403.000000","narrative":"Gain on TR-3595-2026","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:29:02","updated_at":"2026-07-28 12:29:02"} 
[2026-07-28 20:23:47] local.INFO: ID present? YES  
[2026-07-28 20:23:47] local.INFO: ID value: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 20:23:47] local.INFO: ID empty? NO  
[2026-07-28 20:23:47] local.INFO: Attempting to find record with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 20:23:47] local.INFO: Record not found, creating new with ID: b775a653-d51d-49ad-81b6-2f154e2c7426  
[2026-07-28 20:23:47] local.INFO: Created record: {"id":"b775a653-d51d-49ad-81b6-2f154e2c7426","type":"Credit","amount":"403.00","rate":"145.000000","lcy_amount":"403.000000","narrative":"Gain on TR-3595-2026","uniqid":"703c7183-ec05-47e1-b610-b0d4853b313b","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"703c7183-ec05-47e1-b610-b0d4853b313b","customer_id":"15674561-78b7-45dd-9fb7-20dae30f7a89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:47.000000Z","created_at":"2026-07-28T17:23:47.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-102189.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":109389.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:48] local.INFO: Model: Journal  
[2026-07-28 20:23:48] local.INFO: Data received: {"id":"b9ffd3a2-f7af-4543-a31d-1f85b66074fa","type":"Debit","amount":"120.00","rate":"127.500000","lcy_amount":"15480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-21 17:41:00","updated_at":"2026-07-21 17:41:00"} 
[2026-07-28 20:23:48] local.INFO: ID present? YES  
[2026-07-28 20:23:48] local.INFO: ID value: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 20:23:48] local.INFO: ID empty? NO  
[2026-07-28 20:23:48] local.INFO: Attempting to find record with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 20:23:48] local.INFO: Record not found, creating new with ID: b9ffd3a2-f7af-4543-a31d-1f85b66074fa  
[2026-07-28 20:23:48] local.INFO: Created record: {"id":"b9ffd3a2-f7af-4543-a31d-1f85b66074fa","type":"Debit","amount":"120.00","rate":"127.500000","lcy_amount":"15480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8b3ab212-046c-44d6-aea2-5bf0a587a08d","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:23:48.000000Z","created_at":"2026-07-28T17:23:48.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1046.890000000000100044417195022106170654296875,"debit_total":66852.110000000000582076609134674072265625,"credit_total":"67899.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:32.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:50] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:50] local.INFO: Model: Journal  
[2026-07-28 20:23:50] local.INFO: Data received: {"id":"bb7ffd8c-d785-4f42-aebe-12f7f29e8352","type":"Debit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI& KCB BANK","uniqid":"a3ec63a2-b560-476c-82db-26e0ad589f7a","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 11:22:05","updated_at":"2026-07-28 12:50:12"} 
[2026-07-28 20:23:50] local.INFO: ID present? YES  
[2026-07-28 20:23:50] local.INFO: ID value: bb7ffd8c-d785-4f42-aebe-12f7f29e8352  
[2026-07-28 20:23:50] local.INFO: ID empty? NO  
[2026-07-28 20:23:50] local.INFO: Attempting to find record with ID: bb7ffd8c-d785-4f42-aebe-12f7f29e8352  
[2026-07-28 20:23:50] local.INFO: Record not found, creating new with ID: bb7ffd8c-d785-4f42-aebe-12f7f29e8352  
[2026-07-28 20:23:50] local.INFO: Created record: {"id":"bb7ffd8c-d785-4f42-aebe-12f7f29e8352","type":"Debit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI& KCB BANK","uniqid":"a3ec63a2-b560-476c-82db-26e0ad589f7a","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:50.000000Z","created_at":"2026-07-28T17:23:50.000000Z","account":{"id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","name":"Travel Expense[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000019","is_fx_account":null,"balance":13050.0,"debit_total":13050.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb16c45e-e5d7-4c6d-9fa2-51cb3e635477","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:21:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:51] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:51] local.INFO: Model: Journal  
[2026-07-28 20:23:51] local.INFO: Data received: {"id":"bf3676c6-9c11-4c14-a537-01377582c1fe","type":"Credit","amount":"600.00","rate":"128.500000","lcy_amount":"600.000000","narrative":"Gain on TR-3564-2026","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 11:50:11","updated_at":"2026-07-25 11:50:11"} 
[2026-07-28 20:23:51] local.INFO: ID present? YES  
[2026-07-28 20:23:51] local.INFO: ID value: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 20:23:51] local.INFO: ID empty? NO  
[2026-07-28 20:23:51] local.INFO: Attempting to find record with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 20:23:51] local.INFO: Record not found, creating new with ID: bf3676c6-9c11-4c14-a537-01377582c1fe  
[2026-07-28 20:23:51] local.INFO: Created record: {"id":"bf3676c6-9c11-4c14-a537-01377582c1fe","type":"Credit","amount":"600.00","rate":"128.500000","lcy_amount":"600.000000","narrative":"Gain on TR-3564-2026","uniqid":"700b0e06-5c13-4fb8-8f04-966d45b354dc","date":"2026-07-25","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"700b0e06-5c13-4fb8-8f04-966d45b354dc","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:51.000000Z","created_at":"2026-07-28T17:23:51.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-102789.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":109989.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:52] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:52] local.INFO: Model: Journal  
[2026-07-28 20:23:52] local.INFO: Data received: {"id":"bf98e53d-9b6a-48d5-b644-bc693cab5561","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3552-2026","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 17:40:37","updated_at":"2026-07-21 17:40:37"} 
[2026-07-28 20:23:52] local.INFO: ID present? YES  
[2026-07-28 20:23:52] local.INFO: ID value: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 20:23:52] local.INFO: ID empty? NO  
[2026-07-28 20:23:52] local.INFO: Attempting to find record with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 20:23:52] local.INFO: Record not found, creating new with ID: bf98e53d-9b6a-48d5-b644-bc693cab5561  
[2026-07-28 20:23:52] local.INFO: Created record: {"id":"bf98e53d-9b6a-48d5-b644-bc693cab5561","type":"Credit","amount":"2480.00","rate":"145.000000","lcy_amount":"2480.000000","narrative":"Gain on TR-3552-2026","uniqid":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","date":"2026-07-21","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"43630310-e4c3-4bbd-ba18-8ee3b48642bc","customer_id":"01e97b5e-0b84-4371-a9a4-b453a56ab660","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:52.000000Z","created_at":"2026-07-28T17:23:52.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-105269.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":112469.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:23:53] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:53] local.INFO: Model: Journal  
[2026-07-28 20:23:53] local.INFO: Data received: {"id":"c17d5ac9-4b61-4bc4-adb3-f276033776f4","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 10:31:00","updated_at":"2026-07-26 10:31:00"} 
[2026-07-28 20:23:53] local.INFO: ID present? YES  
[2026-07-28 20:23:53] local.INFO: ID value: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 20:23:53] local.INFO: ID empty? NO  
[2026-07-28 20:23:53] local.INFO: Attempting to find record with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 20:23:53] local.INFO: Record not found, creating new with ID: c17d5ac9-4b61-4bc4-adb3-f276033776f4  
[2026-07-28 20:23:53] local.INFO: Created record: {"id":"c17d5ac9-4b61-4bc4-adb3-f276033776f4","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ee74f47-6542-444f-80b3-d9366c8dcec6","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"8ee74f47-6542-444f-80b3-d9366c8dcec6","customer_id":"653473cc-1b4c-4586-81f3-8b175e96af25","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:23:53.000000Z","created_at":"2026-07-28T17:23:53.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3280.0,"debit_total":17865.0,"credit_total":"21145.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:55] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:55] local.INFO: Model: Journal  
[2026-07-28 20:23:55] local.INFO: Data received: {"id":"c1c9bd86-9ceb-4b31-b5cf-1bfef12d1ea4","type":"Credit","amount":"700000.00","rate":null,"lcy_amount":"700000.000000","narrative":"CASH GIVEN TO DIANI","uniqid":"82f8e420-a486-49e7-9f1b-a310761dfa12","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 11:23:08","updated_at":"2026-07-28 12:51:34"} 
[2026-07-28 20:23:55] local.INFO: ID present? YES  
[2026-07-28 20:23:55] local.INFO: ID value: c1c9bd86-9ceb-4b31-b5cf-1bfef12d1ea4  
[2026-07-28 20:23:55] local.INFO: ID empty? NO  
[2026-07-28 20:23:55] local.INFO: Attempting to find record with ID: c1c9bd86-9ceb-4b31-b5cf-1bfef12d1ea4  
[2026-07-28 20:23:55] local.INFO: Record not found, creating new with ID: c1c9bd86-9ceb-4b31-b5cf-1bfef12d1ea4  
[2026-07-28 20:23:55] local.INFO: Created record: {"id":"c1c9bd86-9ceb-4b31-b5cf-1bfef12d1ea4","type":"Credit","amount":"700000.00","rate":null,"lcy_amount":"700000.000000","narrative":"CASH GIVEN TO DIANI","uniqid":"82f8e420-a486-49e7-9f1b-a310761dfa12","date":"2026-07-28","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:55.000000Z","created_at":"2026-07-28T17:23:55.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":-732638.0,"debit_total":"72811377.00","credit_total":73544015.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-28T17:23:38.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-28 20:23:56] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:56] local.INFO: Model: Journal  
[2026-07-28 20:23:56] local.INFO: Data received: {"id":"c5bfb2f0-f93b-4040-bb1d-8d9f90677965","type":"Credit","amount":"90330.00","rate":null,"lcy_amount":"90330.000000","narrative":"KES ADDITION","uniqid":"76823ca4-e598-4f82-a1a4-e4fc5da49d6a","date":"2026-07-27","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 18:38:10","updated_at":"2026-07-28 11:34:58"} 
[2026-07-28 20:23:56] local.INFO: ID present? YES  
[2026-07-28 20:23:56] local.INFO: ID value: c5bfb2f0-f93b-4040-bb1d-8d9f90677965  
[2026-07-28 20:23:56] local.INFO: ID empty? NO  
[2026-07-28 20:23:56] local.INFO: Attempting to find record with ID: c5bfb2f0-f93b-4040-bb1d-8d9f90677965  
[2026-07-28 20:23:56] local.INFO: Record not found, creating new with ID: c5bfb2f0-f93b-4040-bb1d-8d9f90677965  
[2026-07-28 20:23:56] local.INFO: Created record: {"id":"c5bfb2f0-f93b-4040-bb1d-8d9f90677965","type":"Credit","amount":"90330.00","rate":null,"lcy_amount":"90330.000000","narrative":"KES ADDITION","uniqid":"76823ca4-e598-4f82-a1a4-e4fc5da49d6a","date":"2026-07-27","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:56.000000Z","created_at":"2026-07-28T17:23:56.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":1469423.0,"debit_total":"6902225.70","credit_total":5432802.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:57] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:57] local.INFO: Model: Journal  
[2026-07-28 20:23:57] local.INFO: Data received: {"id":"c5c8edbc-39da-4912-bc3b-7c8fefb28e6f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 20:23:57] local.INFO: ID present? YES  
[2026-07-28 20:23:57] local.INFO: ID value: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 20:23:57] local.INFO: ID empty? NO  
[2026-07-28 20:23:57] local.INFO: Attempting to find record with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 20:23:57] local.INFO: Record not found, creating new with ID: c5c8edbc-39da-4912-bc3b-7c8fefb28e6f  
[2026-07-28 20:23:57] local.INFO: Created record: {"id":"c5c8edbc-39da-4912-bc3b-7c8fefb28e6f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:57.000000Z","created_at":"2026-07-28T17:23:57.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":170364.5,"debit_total":"17987383.20","credit_total":17817018.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:23:58] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:23:58] local.INFO: Model: Journal  
[2026-07-28 20:23:58] local.INFO: Data received: {"id":"c6864dc3-4d1a-49c0-8b21-7ec9b228f48f","type":"Debit","amount":"700000.00","rate":null,"lcy_amount":"700000.000000","narrative":"CASH GIVEN TO DIANI","uniqid":"82f8e420-a486-49e7-9f1b-a310761dfa12","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 11:23:08","updated_at":"2026-07-28 12:51:56"} 
[2026-07-28 20:23:58] local.INFO: ID present? YES  
[2026-07-28 20:23:58] local.INFO: ID value: c6864dc3-4d1a-49c0-8b21-7ec9b228f48f  
[2026-07-28 20:23:58] local.INFO: ID empty? NO  
[2026-07-28 20:23:58] local.INFO: Attempting to find record with ID: c6864dc3-4d1a-49c0-8b21-7ec9b228f48f  
[2026-07-28 20:23:58] local.INFO: Record not found, creating new with ID: c6864dc3-4d1a-49c0-8b21-7ec9b228f48f  
[2026-07-28 20:23:58] local.INFO: Created record: {"id":"c6864dc3-4d1a-49c0-8b21-7ec9b228f48f","type":"Debit","amount":"700000.00","rate":null,"lcy_amount":"700000.000000","narrative":"CASH GIVEN TO DIANI","uniqid":"82f8e420-a486-49e7-9f1b-a310761dfa12","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:23:58.000000Z","created_at":"2026-07-28T17:23:58.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":2169423.0,"debit_total":7602225.700000000186264514923095703125,"credit_total":"5432802.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:00] local.INFO: Model: Journal  
[2026-07-28 20:24:00] local.INFO: Data received: {"id":"c7b74072-3952-4206-8ffe-95182ae5c7ef","type":"Debit","amount":"83116.00","rate":null,"lcy_amount":"83116.000000","narrative":"KES ADDITION","uniqid":"3fd4eaca-6e9c-464b-9d33-ccc7931c4c36","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 10:01:06","updated_at":"2026-07-24 11:40:03"} 
[2026-07-28 20:24:00] local.INFO: ID present? YES  
[2026-07-28 20:24:00] local.INFO: ID value: c7b74072-3952-4206-8ffe-95182ae5c7ef  
[2026-07-28 20:24:00] local.INFO: ID empty? NO  
[2026-07-28 20:24:00] local.INFO: Attempting to find record with ID: c7b74072-3952-4206-8ffe-95182ae5c7ef  
[2026-07-28 20:24:00] local.INFO: Record not found, creating new with ID: c7b74072-3952-4206-8ffe-95182ae5c7ef  
[2026-07-28 20:24:00] local.INFO: Created record: {"id":"c7b74072-3952-4206-8ffe-95182ae5c7ef","type":"Debit","amount":"83116.00","rate":null,"lcy_amount":"83116.000000","narrative":"KES ADDITION","uniqid":"3fd4eaca-6e9c-464b-9d33-ccc7931c4c36","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:00.000000Z","created_at":"2026-07-28T17:24:00.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":253480.5,"debit_total":18070499.1999999992549419403076171875,"credit_total":"17817018.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:01] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:01] local.INFO: Model: Journal  
[2026-07-28 20:24:01] local.INFO: Data received: {"id":"c7d7389c-901f-4f3f-bd65-864c8fdb87c6","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3558-2026","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:56:42","updated_at":"2026-07-24 14:56:42"} 
[2026-07-28 20:24:01] local.INFO: ID present? YES  
[2026-07-28 20:24:01] local.INFO: ID value: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 20:24:01] local.INFO: ID empty? NO  
[2026-07-28 20:24:01] local.INFO: Attempting to find record with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 20:24:01] local.INFO: Record not found, creating new with ID: c7d7389c-901f-4f3f-bd65-864c8fdb87c6  
[2026-07-28 20:24:01] local.INFO: Created record: {"id":"c7d7389c-901f-4f3f-bd65-864c8fdb87c6","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3558-2026","uniqid":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7ffd6161-257a-44d0-aaf6-e7b94a1ff8c0","customer_id":"0cb527ce-dc0f-4362-a4ac-df5850718eda","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:01.000000Z","created_at":"2026-07-28T17:24:01.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-105579.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":112779.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:52.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:02] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:02] local.INFO: Model: Journal  
[2026-07-28 20:24:02] local.INFO: Data received: {"id":"c7ea86b2-c981-4159-9604-87da903564f3","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"769acd36-82d6-4d49-b237-47188e31cd17","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:47:51","updated_at":"2026-07-26 18:38:39"} 
[2026-07-28 20:24:02] local.INFO: ID present? YES  
[2026-07-28 20:24:02] local.INFO: ID value: c7ea86b2-c981-4159-9604-87da903564f3  
[2026-07-28 20:24:02] local.INFO: ID empty? NO  
[2026-07-28 20:24:02] local.INFO: Attempting to find record with ID: c7ea86b2-c981-4159-9604-87da903564f3  
[2026-07-28 20:24:02] local.INFO: Record not found, creating new with ID: c7ea86b2-c981-4159-9604-87da903564f3  
[2026-07-28 20:24:02] local.INFO: Created record: {"id":"c7ea86b2-c981-4159-9604-87da903564f3","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"769acd36-82d6-4d49-b237-47188e31cd17","date":"2026-07-26","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:02.000000Z","created_at":"2026-07-28T17:24:02.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5411.0,"debit_total":5411.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:04] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:04] local.INFO: Model: Journal  
[2026-07-28 20:24:04] local.INFO: Data received: {"id":"cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3554-2026","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:44:49","updated_at":"2026-07-24 13:44:49"} 
[2026-07-28 20:24:04] local.INFO: ID present? YES  
[2026-07-28 20:24:04] local.INFO: ID value: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 20:24:04] local.INFO: ID empty? NO  
[2026-07-28 20:24:04] local.INFO: Attempting to find record with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 20:24:04] local.INFO: Record not found, creating new with ID: cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3  
[2026-07-28 20:24:04] local.INFO: Created record: {"id":"cb0e3dc7-fb4e-4f6f-a8ad-10cf04b524e3","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3554-2026","uniqid":"97379de0-4eb1-4349-982f-a046c76cffc8","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"97379de0-4eb1-4349-982f-a046c76cffc8","customer_id":"188bc3ee-7fab-49c3-b496-123714afd47e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:04.000000Z","created_at":"2026-07-28T17:24:04.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-105879.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":113079.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:01.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:05] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:05] local.INFO: Model: Journal  
[2026-07-28 20:24:05] local.INFO: Data received: {"id":"cc08694e-241b-4c61-ae28-31499da1d049","type":"Credit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH 21-7-2026","uniqid":"afa8e887-eae8-4530-b725-fbcb99d9c1b6","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:23:04","updated_at":"2026-07-24 11:46:43"} 
[2026-07-28 20:24:05] local.INFO: ID present? YES  
[2026-07-28 20:24:05] local.INFO: ID value: cc08694e-241b-4c61-ae28-31499da1d049  
[2026-07-28 20:24:05] local.INFO: ID empty? NO  
[2026-07-28 20:24:05] local.INFO: Attempting to find record with ID: cc08694e-241b-4c61-ae28-31499da1d049  
[2026-07-28 20:24:05] local.INFO: Record not found, creating new with ID: cc08694e-241b-4c61-ae28-31499da1d049  
[2026-07-28 20:24:05] local.INFO: Created record: {"id":"cc08694e-241b-4c61-ae28-31499da1d049","type":"Credit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH 21-7-2026","uniqid":"afa8e887-eae8-4530-b725-fbcb99d9c1b6","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:05.000000Z","created_at":"2026-07-28T17:24:05.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":252830.5,"debit_total":"18070499.20","credit_total":17817668.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:00.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:06] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:06] local.INFO: Model: Journal  
[2026-07-28 20:24:06] local.INFO: Data received: {"id":"cd33993e-aea9-4dc5-b153-effe25e2317f","type":"Debit","amount":"40.00","rate":null,"lcy_amount":"6938.000000","narrative":"GBP WITHDRAWAL","uniqid":"19fa898d-64b9-4c30-a953-b49f69e9e5e9","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"ce9d8957-2875-4287-803f-e465f58d8205","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-21 18:42:47","updated_at":"2026-07-24 11:48:36"} 
[2026-07-28 20:24:06] local.INFO: ID present? YES  
[2026-07-28 20:24:06] local.INFO: ID value: cd33993e-aea9-4dc5-b153-effe25e2317f  
[2026-07-28 20:24:06] local.INFO: ID empty? NO  
[2026-07-28 20:24:06] local.INFO: Attempting to find record with ID: cd33993e-aea9-4dc5-b153-effe25e2317f  
[2026-07-28 20:24:06] local.INFO: Record not found, creating new with ID: cd33993e-aea9-4dc5-b153-effe25e2317f  
[2026-07-28 20:24:06] local.INFO: Created record: {"id":"cd33993e-aea9-4dc5-b153-effe25e2317f","type":"Debit","amount":"40.00","rate":null,"lcy_amount":"6938.000000","narrative":"GBP WITHDRAWAL","uniqid":"19fa898d-64b9-4c30-a953-b49f69e9e5e9","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"ce9d8957-2875-4287-803f-e465f58d8205","transaction_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","updated_at":"2026-07-28T17:24:06.000000Z","created_at":"2026-07-28T17:24:06.000000Z","account":{"id":"ce9d8957-2875-4287-803f-e465f58d8205","name":"GBP-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-GBP-000001","is_fx_account":"1","balance":1210.0,"debit_total":1250.0,"credit_total":"40.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d7b87b04-d19c-4bed-9d3c-115c07257649","teller_id":null,"customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T16:48:39.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:07] local.INFO: Model: Journal  
[2026-07-28 20:24:07] local.INFO: Data received: {"id":"d000f92c-23c4-4e43-9ccd-0651d1866d7a","type":"Debit","amount":"212171.00","rate":null,"lcy_amount":"212171.000000","narrative":"MPESA DEPOSIT 21-07-2026","uniqid":"e785cc3e-a91a-47a9-975e-c958726fe1ac","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 18:48:02","updated_at":"2026-07-24 11:52:41"} 
[2026-07-28 20:24:07] local.INFO: ID present? YES  
[2026-07-28 20:24:07] local.INFO: ID value: d000f92c-23c4-4e43-9ccd-0651d1866d7a  
[2026-07-28 20:24:07] local.INFO: ID empty? NO  
[2026-07-28 20:24:07] local.INFO: Attempting to find record with ID: d000f92c-23c4-4e43-9ccd-0651d1866d7a  
[2026-07-28 20:24:07] local.INFO: Record not found, creating new with ID: d000f92c-23c4-4e43-9ccd-0651d1866d7a  
[2026-07-28 20:24:07] local.INFO: Created record: {"id":"d000f92c-23c4-4e43-9ccd-0651d1866d7a","type":"Debit","amount":"212171.00","rate":null,"lcy_amount":"212171.000000","narrative":"MPESA DEPOSIT 21-07-2026","uniqid":"e785cc3e-a91a-47a9-975e-c958726fe1ac","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:07.000000Z","created_at":"2026-07-28T17:24:07.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":465001.5,"debit_total":18282670.1999999992549419403076171875,"credit_total":"17817668.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:09] local.INFO: Model: Journal  
[2026-07-28 20:24:09] local.INFO: Data received: {"id":"d0a4d4a8-2a00-4360-a9bc-ed605385aca8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3588-2026","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-27 09:54:31","updated_at":"2026-07-27 09:54:31"} 
[2026-07-28 20:24:09] local.INFO: ID present? YES  
[2026-07-28 20:24:09] local.INFO: ID value: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 20:24:09] local.INFO: ID empty? NO  
[2026-07-28 20:24:09] local.INFO: Attempting to find record with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 20:24:09] local.INFO: Record not found, creating new with ID: d0a4d4a8-2a00-4360-a9bc-ed605385aca8  
[2026-07-28 20:24:09] local.INFO: Created record: {"id":"d0a4d4a8-2a00-4360-a9bc-ed605385aca8","type":"Credit","amount":"1240.00","rate":"145.000000","lcy_amount":"1240.000000","narrative":"Gain on TR-3588-2026","uniqid":"3b1320b2-a61f-4aef-9f24-88ea37544e16","date":"2026-07-27","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"3b1320b2-a61f-4aef-9f24-88ea37544e16","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:09.000000Z","created_at":"2026-07-28T17:24:09.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-107119.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":114319.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:10] local.INFO: Model: Journal  
[2026-07-28 20:24:10] local.INFO: Data received: {"id":"d0bdf58e-45ea-43d0-b4c9-2f8cca50be8b","type":"Credit","amount":"4800.00","rate":null,"lcy_amount":"619200.000000","narrative":"USD ADDITION","uniqid":"5f5d4161-2b29-4344-ba34-43806b050528","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 13:57:55","updated_at":"2026-07-24 14:35:04"} 
[2026-07-28 20:24:10] local.INFO: ID present? YES  
[2026-07-28 20:24:10] local.INFO: ID value: d0bdf58e-45ea-43d0-b4c9-2f8cca50be8b  
[2026-07-28 20:24:10] local.INFO: ID empty? NO  
[2026-07-28 20:24:10] local.INFO: Attempting to find record with ID: d0bdf58e-45ea-43d0-b4c9-2f8cca50be8b  
[2026-07-28 20:24:10] local.INFO: Record not found, creating new with ID: d0bdf58e-45ea-43d0-b4c9-2f8cca50be8b  
[2026-07-28 20:24:10] local.INFO: Created record: {"id":"d0bdf58e-45ea-43d0-b4c9-2f8cca50be8b","type":"Credit","amount":"4800.00","rate":null,"lcy_amount":"619200.000000","narrative":"USD ADDITION","uniqid":"5f5d4161-2b29-4344-ba34-43806b050528","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:24:10.000000Z","created_at":"2026-07-28T17:24:10.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":1284.0,"debit_total":"31094.00","credit_total":29810.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:01.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:11] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:11] local.INFO: Model: Journal  
[2026-07-28 20:24:11] local.INFO: Data received: {"id":"d116fe08-1b79-41ef-873d-99d1076ae063","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"2580.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 15:19:19","updated_at":"2026-07-24 15:19:19"} 
[2026-07-28 20:24:11] local.INFO: ID present? YES  
[2026-07-28 20:24:11] local.INFO: ID value: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 20:24:11] local.INFO: ID empty? NO  
[2026-07-28 20:24:11] local.INFO: Attempting to find record with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 20:24:11] local.INFO: Record not found, creating new with ID: d116fe08-1b79-41ef-873d-99d1076ae063  
[2026-07-28 20:24:11] local.INFO: Created record: {"id":"d116fe08-1b79-41ef-873d-99d1076ae063","type":"Credit","amount":"20.00","rate":"130.000000","lcy_amount":"2580.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"3227253b-40c1-48bc-8827-ac322dce9183","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3227253b-40c1-48bc-8827-ac322dce9183","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:24:11.000000Z","created_at":"2026-07-28T17:24:11.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-1066.890000000000100044417195022106170654296875,"debit_total":"66852.11","credit_total":67919.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:12] local.INFO: Model: Journal  
[2026-07-28 20:24:12] local.INFO: Data received: {"id":"d164009b-3a66-45a0-9f29-9023b7d0d748","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"769acd36-82d6-4d49-b237-47188e31cd17","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 13:47:51","updated_at":"2026-07-26 18:40:02"} 
[2026-07-28 20:24:12] local.INFO: ID present? YES  
[2026-07-28 20:24:12] local.INFO: ID value: d164009b-3a66-45a0-9f29-9023b7d0d748  
[2026-07-28 20:24:12] local.INFO: ID empty? NO  
[2026-07-28 20:24:12] local.INFO: Attempting to find record with ID: d164009b-3a66-45a0-9f29-9023b7d0d748  
[2026-07-28 20:24:12] local.INFO: Record not found, creating new with ID: d164009b-3a66-45a0-9f29-9023b7d0d748  
[2026-07-28 20:24:12] local.INFO: Created record: {"id":"d164009b-3a66-45a0-9f29-9023b7d0d748","type":"Credit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"769acd36-82d6-4d49-b237-47188e31cd17","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:12.000000Z","created_at":"2026-07-28T17:24:12.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":464942.5,"debit_total":"18282670.20","credit_total":17817727.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:14] local.INFO: Model: Journal  
[2026-07-28 20:24:14] local.INFO: Data received: {"id":"d2379aef-d97a-4e21-8031-47c77fa72121","type":"Debit","amount":"40.00","rate":"169.000000","lcy_amount":"6938.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","created_at":"2026-07-21 17:33:26","updated_at":"2026-07-21 17:33:26"} 
[2026-07-28 20:24:14] local.INFO: ID present? YES  
[2026-07-28 20:24:14] local.INFO: ID value: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 20:24:14] local.INFO: ID empty? NO  
[2026-07-28 20:24:14] local.INFO: Attempting to find record with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 20:24:14] local.INFO: Record not found, creating new with ID: d2379aef-d97a-4e21-8031-47c77fa72121  
[2026-07-28 20:24:14] local.INFO: Created record: {"id":"d2379aef-d97a-4e21-8031-47c77fa72121","type":"Debit","amount":"40.00","rate":"169.000000","lcy_amount":"6938.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0436c5db-8112-44c2-a2b0-8b242e7b8965","date":"2026-07-21","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","transaction_id":"0436c5db-8112-44c2-a2b0-8b242e7b8965","customer_id":"c2b7cd22-2a19-4126-a913-c4db931349cb","currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","status":"Posted","updated_at":"2026-07-28T17:24:14.000000Z","created_at":"2026-07-28T17:24:14.000000Z","account":{"id":"aa5aa264-365c-4e37-a379-ee40df9d86c3","name":"GBP-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-GBP-000002","is_fx_account":"1","balance":0.0,"debit_total":1250.0,"credit_total":"1250.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d7b87b04-d19c-4bed-9d3c-115c07257649","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"e3ffcceb-c506-48ab-a312-8fb7681ded66","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:21:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:15] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:15] local.INFO: Model: Journal  
[2026-07-28 20:24:15] local.INFO: Data received: {"id":"d28f2bd4-00f3-4bd6-9786-5b2972678126","type":"Credit","amount":"5100.00","rate":"6.000000","lcy_amount":"5100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 20:24:15] local.INFO: ID present? YES  
[2026-07-28 20:24:15] local.INFO: ID value: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 20:24:15] local.INFO: ID empty? NO  
[2026-07-28 20:24:15] local.INFO: Attempting to find record with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 20:24:15] local.INFO: Record not found, creating new with ID: d28f2bd4-00f3-4bd6-9786-5b2972678126  
[2026-07-28 20:24:15] local.INFO: Created record: {"id":"d28f2bd4-00f3-4bd6-9786-5b2972678126","type":"Credit","amount":"5100.00","rate":"6.000000","lcy_amount":"5100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:15.000000Z","created_at":"2026-07-28T17:24:15.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":459842.5,"debit_total":"18282670.20","credit_total":17822827.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:16] local.INFO: Model: Journal  
[2026-07-28 20:24:16] local.INFO: Data received: {"id":"d2b4fd91-abd8-42aa-8c15-24b5562292c7","type":"Debit","amount":"112656.00","rate":null,"lcy_amount":"112656.000000","narrative":"KES ADDITION","uniqid":"9adf6d81-c052-4a89-95ce-401413173783","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 10:14:26","updated_at":"2026-07-24 14:02:52"} 
[2026-07-28 20:24:16] local.INFO: ID present? YES  
[2026-07-28 20:24:16] local.INFO: ID value: d2b4fd91-abd8-42aa-8c15-24b5562292c7  
[2026-07-28 20:24:16] local.INFO: ID empty? NO  
[2026-07-28 20:24:16] local.INFO: Attempting to find record with ID: d2b4fd91-abd8-42aa-8c15-24b5562292c7  
[2026-07-28 20:24:16] local.INFO: Record not found, creating new with ID: d2b4fd91-abd8-42aa-8c15-24b5562292c7  
[2026-07-28 20:24:16] local.INFO: Created record: {"id":"d2b4fd91-abd8-42aa-8c15-24b5562292c7","type":"Debit","amount":"112656.00","rate":null,"lcy_amount":"112656.000000","narrative":"KES ADDITION","uniqid":"9adf6d81-c052-4a89-95ce-401413173783","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:16.000000Z","created_at":"2026-07-28T17:24:16.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":572498.5,"debit_total":18395326.1999999992549419403076171875,"credit_total":"17822827.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:15.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:17] local.INFO: Model: Journal  
[2026-07-28 20:24:17] local.INFO: Data received: {"id":"d2cef795-285f-4e04-b1a0-49cf4b7bb3db","type":"Debit","amount":"1500.00","rate":null,"lcy_amount":"1500.000000","narrative":"MPESA WITHDRAWAL 25-07-2026","uniqid":"59587642-e940-4446-8af7-1261ca69b2b1","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:36:34","updated_at":"2026-07-26 18:41:04"} 
[2026-07-28 20:24:17] local.INFO: ID present? YES  
[2026-07-28 20:24:17] local.INFO: ID value: d2cef795-285f-4e04-b1a0-49cf4b7bb3db  
[2026-07-28 20:24:17] local.INFO: ID empty? NO  
[2026-07-28 20:24:17] local.INFO: Attempting to find record with ID: d2cef795-285f-4e04-b1a0-49cf4b7bb3db  
[2026-07-28 20:24:18] local.INFO: Record not found, creating new with ID: d2cef795-285f-4e04-b1a0-49cf4b7bb3db  
[2026-07-28 20:24:18] local.INFO: Created record: {"id":"d2cef795-285f-4e04-b1a0-49cf4b7bb3db","type":"Debit","amount":"1500.00","rate":null,"lcy_amount":"1500.000000","narrative":"MPESA WITHDRAWAL 25-07-2026","uniqid":"59587642-e940-4446-8af7-1261ca69b2b1","date":"2026-07-25","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:18.000000Z","created_at":"2026-07-28T17:24:18.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2350389.0,"debit_total":4163140.0,"credit_total":"6513529.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T17:21:19.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:19] local.INFO: Model: Journal  
[2026-07-28 20:24:19] local.INFO: Data received: {"id":"d5307ecb-7d07-450f-86b5-b25df0ee5c1f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 14:37:35","updated_at":"2026-07-24 14:37:35"} 
[2026-07-28 20:24:19] local.INFO: ID present? YES  
[2026-07-28 20:24:19] local.INFO: ID value: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 20:24:19] local.INFO: ID empty? NO  
[2026-07-28 20:24:19] local.INFO: Attempting to find record with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 20:24:19] local.INFO: Record not found, creating new with ID: d5307ecb-7d07-450f-86b5-b25df0ee5c1f  
[2026-07-28 20:24:19] local.INFO: Created record: {"id":"d5307ecb-7d07-450f-86b5-b25df0ee5c1f","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b039f33c-ae0d-43de-b971-6fcac9defb12","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b039f33c-ae0d-43de-b971-6fcac9defb12","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:19.000000Z","created_at":"2026-07-28T17:24:19.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":543498.5,"debit_total":"18395326.20","credit_total":17851827.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:20] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:20] local.INFO: Model: Journal  
[2026-07-28 20:24:20] local.INFO: Data received: {"id":"d586c533-510f-4e3e-8a0b-5aaad3897a17","type":"Debit","amount":"2500.00","rate":"128.500000","lcy_amount":"322500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 16:36:12","updated_at":"2026-07-28 16:36:12"} 
[2026-07-28 20:24:20] local.INFO: ID present? YES  
[2026-07-28 20:24:20] local.INFO: ID value: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 20:24:20] local.INFO: ID empty? NO  
[2026-07-28 20:24:20] local.INFO: Attempting to find record with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 20:24:20] local.INFO: Record not found, creating new with ID: d586c533-510f-4e3e-8a0b-5aaad3897a17  
[2026-07-28 20:24:20] local.INFO: Created record: {"id":"d586c533-510f-4e3e-8a0b-5aaad3897a17","type":"Debit","amount":"2500.00","rate":"128.500000","lcy_amount":"322500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"dc6ad7c4-7b49-4850-af37-19760fa0d8d9","customer_id":"7e5b2e8c-95f6-4e8f-93af-4ba3c441506f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:24:20.000000Z","created_at":"2026-07-28T17:24:20.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1433.109999999999899955582804977893829345703125,"debit_total":69352.110000000000582076609134674072265625,"credit_total":"67919.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:21] local.INFO: Model: Journal  
[2026-07-28 20:24:21] local.INFO: Data received: {"id":"d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3562-2026","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:24:21] local.INFO: ID present? YES  
[2026-07-28 20:24:21] local.INFO: ID value: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 20:24:21] local.INFO: ID empty? NO  
[2026-07-28 20:24:21] local.INFO: Attempting to find record with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 20:24:21] local.INFO: Record not found, creating new with ID: d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3  
[2026-07-28 20:24:21] local.INFO: Created record: {"id":"d5c42a35-02aa-4c1a-8725-8d3fd4fc16c3","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3562-2026","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:21.000000Z","created_at":"2026-07-28T17:24:21.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-107429.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":114629.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:23] local.INFO: Model: Journal  
[2026-07-28 20:24:23] local.INFO: Data received: {"id":"d5dbd0c0-1140-40c5-9b67-86a23f357cf7","type":"Debit","amount":"2750.00","rate":null,"lcy_amount":"354750.000000","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-28 18:36:03","updated_at":"2026-07-28 19:57:04"} 
[2026-07-28 20:24:23] local.INFO: ID present? YES  
[2026-07-28 20:24:23] local.INFO: ID value: d5dbd0c0-1140-40c5-9b67-86a23f357cf7  
[2026-07-28 20:24:23] local.INFO: ID empty? NO  
[2026-07-28 20:24:23] local.INFO: Attempting to find record with ID: d5dbd0c0-1140-40c5-9b67-86a23f357cf7  
[2026-07-28 20:24:23] local.INFO: Record found, updating...  
[2026-07-28 20:24:23] local.INFO: Before update: {"id":"d5dbd0c0-1140-40c5-9b67-86a23f357cf7","type":"Debit","amount":"2750.00","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","rate":null,"lcy_amount":"354750.000000","fx_category":"Funding","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:57:04.000000Z","updated_at":"2026-07-28T16:57:04.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:24:23] local.INFO: After update: {"id":"d5dbd0c0-1140-40c5-9b67-86a23f357cf7","type":"Debit","amount":"2750.00","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","rate":null,"lcy_amount":"354750.000000","fx_category":"Funding","narrative":"USD WITDRAWAL","uniqid":"96e14acd-26fd-4088-827c-81c339114c76","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T16:57:04.000000Z","updated_at":"2026-07-28T16:57:04.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:24:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:24] local.INFO: Model: Journal  
[2026-07-28 20:24:24] local.INFO: Data received: {"id":"d5f75403-138e-448a-869e-7777c408de38","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 20:24:24] local.INFO: ID present? YES  
[2026-07-28 20:24:24] local.INFO: ID value: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 20:24:24] local.INFO: ID empty? NO  
[2026-07-28 20:24:24] local.INFO: Attempting to find record with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 20:24:24] local.INFO: Record not found, creating new with ID: d5f75403-138e-448a-869e-7777c408de38  
[2026-07-28 20:24:24] local.INFO: Created record: {"id":"d5f75403-138e-448a-869e-7777c408de38","type":"Debit","amount":"200.00","rate":"145.000000","lcy_amount":"30240.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:24:24.000000Z","created_at":"2026-07-28T17:24:24.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3080.0,"debit_total":18065.0,"credit_total":"21145.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:23:53.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:25] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:25] local.INFO: Model: Journal  
[2026-07-28 20:24:25] local.INFO: Data received: {"id":"d622e99f-45ba-405c-8838-32bdf7444aa5","type":"Credit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"04112ec9-dc40-4a32-8f46-f23fccc87ba4","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-20 18:41:35","updated_at":"2026-07-24 12:02:42"} 
[2026-07-28 20:24:25] local.INFO: ID present? YES  
[2026-07-28 20:24:25] local.INFO: ID value: d622e99f-45ba-405c-8838-32bdf7444aa5  
[2026-07-28 20:24:25] local.INFO: ID empty? NO  
[2026-07-28 20:24:25] local.INFO: Attempting to find record with ID: d622e99f-45ba-405c-8838-32bdf7444aa5  
[2026-07-28 20:24:25] local.INFO: Record not found, creating new with ID: d622e99f-45ba-405c-8838-32bdf7444aa5  
[2026-07-28 20:24:25] local.INFO: Created record: {"id":"d622e99f-45ba-405c-8838-32bdf7444aa5","type":"Credit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"04112ec9-dc40-4a32-8f46-f23fccc87ba4","date":"2026-07-20","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:24:25.000000Z","created_at":"2026-07-28T17:24:25.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3480.0,"debit_total":"18065.00","credit_total":21545.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:24.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:26] local.INFO: Model: Journal  
[2026-07-28 20:24:26] local.INFO: Data received: {"id":"d629aef4-8278-40cb-9988-553b5e7d4f86","type":"Credit","amount":"850.00","rate":null,"lcy_amount":"7225.000000","narrative":"ZAR WITHDRAWAL","uniqid":"b95bc84f-3946-4702-826a-e350898fc189","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":null,"customer_id":null,"currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","created_at":"2026-07-26 18:38:03","updated_at":"2026-07-27 10:27:17"} 
[2026-07-28 20:24:26] local.INFO: ID present? YES  
[2026-07-28 20:24:26] local.INFO: ID value: d629aef4-8278-40cb-9988-553b5e7d4f86  
[2026-07-28 20:24:26] local.INFO: ID empty? NO  
[2026-07-28 20:24:26] local.INFO: Attempting to find record with ID: d629aef4-8278-40cb-9988-553b5e7d4f86  
[2026-07-28 20:24:26] local.INFO: Record not found, creating new with ID: d629aef4-8278-40cb-9988-553b5e7d4f86  
[2026-07-28 20:24:26] local.INFO: Created record: {"id":"d629aef4-8278-40cb-9988-553b5e7d4f86","type":"Credit","amount":"850.00","rate":null,"lcy_amount":"7225.000000","narrative":"ZAR WITHDRAWAL","uniqid":"b95bc84f-3946-4702-826a-e350898fc189","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","transaction_id":null,"customer_id":null,"currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","updated_at":"2026-07-28T17:24:26.000000Z","created_at":"2026-07-28T17:24:26.000000Z","account":{"id":"8bb706e4-7383-4b2f-b938-94c17fd1d191","name":"ZAR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-ZAR-000002","is_fx_account":"1","balance":-850.0,"debit_total":"850.00","credit_total":1700.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"ea84bb13-6151-47f9-a162-08395f5e44cb","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:20:24.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:28] local.INFO: Model: Journal  
[2026-07-28 20:24:28] local.INFO: Data received: {"id":"d6a35069-00f2-4bec-9f2e-a493b02efb27","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-24 15:18:45","updated_at":"2026-07-24 15:18:45"} 
[2026-07-28 20:24:28] local.INFO: ID present? YES  
[2026-07-28 20:24:28] local.INFO: ID value: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 20:24:28] local.INFO: ID empty? NO  
[2026-07-28 20:24:28] local.INFO: Attempting to find record with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 20:24:28] local.INFO: Record not found, creating new with ID: d6a35069-00f2-4bec-9f2e-a493b02efb27  
[2026-07-28 20:24:28] local.INFO: Created record: {"id":"d6a35069-00f2-4bec-9f2e-a493b02efb27","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4e2f2f67-5628-472e-9ed7-9a879921033d","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"4e2f2f67-5628-472e-9ed7-9a879921033d","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:24:28.000000Z","created_at":"2026-07-28T17:24:28.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3440.0,"debit_total":18105.0,"credit_total":"21545.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:29] local.INFO: Model: Journal  
[2026-07-28 20:24:29] local.INFO: Data received: {"id":"d733771d-6fd5-4b52-bdf3-6c305bf524c1","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 18:24:01","updated_at":"2026-07-25 18:24:01"} 
[2026-07-28 20:24:29] local.INFO: ID present? YES  
[2026-07-28 20:24:29] local.INFO: ID value: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 20:24:29] local.INFO: ID empty? NO  
[2026-07-28 20:24:29] local.INFO: Attempting to find record with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 20:24:29] local.INFO: Record not found, creating new with ID: d733771d-6fd5-4b52-bdf3-6c305bf524c1  
[2026-07-28 20:24:29] local.INFO: Created record: {"id":"d733771d-6fd5-4b52-bdf3-6c305bf524c1","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c274958e-a976-437d-9255-11d5ffb415d7","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c274958e-a976-437d-9255-11d5ffb415d7","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:29.000000Z","created_at":"2026-07-28T17:24:29.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":536248.5,"debit_total":"18395326.20","credit_total":17859077.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:19.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:30] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:30] local.INFO: Model: Journal  
[2026-07-28 20:24:30] local.INFO: Data received: {"id":"dcbe9ddd-f9d5-4023-8680-0428d036cb97","type":"Debit","amount":"647000.00","rate":"129.400000","lcy_amount":"647000.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:57:37","updated_at":"2026-07-24 13:57:37"} 
[2026-07-28 20:24:30] local.INFO: ID present? YES  
[2026-07-28 20:24:30] local.INFO: ID value: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 20:24:30] local.INFO: ID empty? NO  
[2026-07-28 20:24:30] local.INFO: Attempting to find record with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 20:24:30] local.INFO: Record not found, creating new with ID: dcbe9ddd-f9d5-4023-8680-0428d036cb97  
[2026-07-28 20:24:30] local.INFO: Created record: {"id":"dcbe9ddd-f9d5-4023-8680-0428d036cb97","type":"Debit","amount":"647000.00","rate":"129.400000","lcy_amount":"647000.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"bc32ac8f-813f-409e-b10a-c6065c6e082e","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc32ac8f-813f-409e-b10a-c6065c6e082e","customer_id":"bbdb50db-9542-4c5c-8077-ab573ac1c850","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:30.000000Z","created_at":"2026-07-28T17:24:30.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1183248.5,"debit_total":19042326.1999999992549419403076171875,"credit_total":"17859077.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:29.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:31] local.INFO: Model: Journal  
[2026-07-28 20:24:31] local.INFO: Data received: {"id":"ddc56af3-0185-4701-9d6e-46f04a9f9d00","type":"Debit","amount":"30.00","rate":"145.000000","lcy_amount":"4536.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-26 14:02:43","updated_at":"2026-07-26 14:02:43"} 
[2026-07-28 20:24:31] local.INFO: ID present? YES  
[2026-07-28 20:24:31] local.INFO: ID value: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 20:24:31] local.INFO: ID empty? NO  
[2026-07-28 20:24:31] local.INFO: Attempting to find record with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 20:24:31] local.INFO: Record not found, creating new with ID: ddc56af3-0185-4701-9d6e-46f04a9f9d00  
[2026-07-28 20:24:31] local.INFO: Created record: {"id":"ddc56af3-0185-4701-9d6e-46f04a9f9d00","type":"Debit","amount":"30.00","rate":"145.000000","lcy_amount":"4536.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"87021275-3069-4a43-990e-3bffb335f16e","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"87021275-3069-4a43-990e-3bffb335f16e","customer_id":"6ab2a452-a0c2-404c-878c-03f897122334","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:24:31.000000Z","created_at":"2026-07-28T17:24:31.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3410.0,"debit_total":18135.0,"credit_total":"21545.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:33] local.INFO: Model: Journal  
[2026-07-28 20:24:33] local.INFO: Data received: {"id":"df9bfd95-58ba-4e90-8597-3ca83d5ed4b0","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:24:33] local.INFO: ID present? YES  
[2026-07-28 20:24:33] local.INFO: ID value: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 20:24:33] local.INFO: ID empty? NO  
[2026-07-28 20:24:33] local.INFO: Attempting to find record with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 20:24:33] local.INFO: Record not found, creating new with ID: df9bfd95-58ba-4e90-8597-3ca83d5ed4b0  
[2026-07-28 20:24:33] local.INFO: Created record: {"id":"df9bfd95-58ba-4e90-8597-3ca83d5ed4b0","type":"Debit","amount":"400.00","rate":"145.000000","lcy_amount":"60480.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:24:33.000000Z","created_at":"2026-07-28T17:24:33.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3010.0,"debit_total":18535.0,"credit_total":"21545.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:34] local.INFO: Model: Journal  
[2026-07-28 20:24:34] local.INFO: Data received: {"id":"e08f840d-44ac-416a-a339-e74467ca59aa","type":"Credit","amount":"670000.00","rate":null,"lcy_amount":"670000.000000","narrative":"KES WITHDRAWAL","uniqid":"051b5707-a030-4dd3-b3cf-3344d58cda73","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:24:28","updated_at":"2026-07-24 12:19:51"} 
[2026-07-28 20:24:34] local.INFO: ID present? YES  
[2026-07-28 20:24:34] local.INFO: ID value: e08f840d-44ac-416a-a339-e74467ca59aa  
[2026-07-28 20:24:34] local.INFO: ID empty? NO  
[2026-07-28 20:24:34] local.INFO: Attempting to find record with ID: e08f840d-44ac-416a-a339-e74467ca59aa  
[2026-07-28 20:24:34] local.INFO: Record not found, creating new with ID: e08f840d-44ac-416a-a339-e74467ca59aa  
[2026-07-28 20:24:34] local.INFO: Created record: {"id":"e08f840d-44ac-416a-a339-e74467ca59aa","type":"Credit","amount":"670000.00","rate":null,"lcy_amount":"670000.000000","narrative":"KES WITHDRAWAL","uniqid":"051b5707-a030-4dd3-b3cf-3344d58cda73","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:34.000000Z","created_at":"2026-07-28T17:24:34.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":513248.5,"debit_total":"19042326.20","credit_total":18529077.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:30.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:35] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:35] local.INFO: Model: Journal  
[2026-07-28 20:24:35] local.INFO: Data received: {"id":"e18622ce-f54b-43c1-9d48-9fe41549f3ae","type":"Credit","amount":"300000.00","rate":null,"lcy_amount":"300000.000000","narrative":"KES WITHDRAWAL","uniqid":"89f6bd53-b5bb-433a-b797-af7733fa5a14","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 19:07:21","updated_at":"2026-07-25 10:16:15"} 
[2026-07-28 20:24:35] local.INFO: ID present? YES  
[2026-07-28 20:24:35] local.INFO: ID value: e18622ce-f54b-43c1-9d48-9fe41549f3ae  
[2026-07-28 20:24:35] local.INFO: ID empty? NO  
[2026-07-28 20:24:35] local.INFO: Attempting to find record with ID: e18622ce-f54b-43c1-9d48-9fe41549f3ae  
[2026-07-28 20:24:35] local.INFO: Record not found, creating new with ID: e18622ce-f54b-43c1-9d48-9fe41549f3ae  
[2026-07-28 20:24:35] local.INFO: Created record: {"id":"e18622ce-f54b-43c1-9d48-9fe41549f3ae","type":"Credit","amount":"300000.00","rate":null,"lcy_amount":"300000.000000","narrative":"KES WITHDRAWAL","uniqid":"89f6bd53-b5bb-433a-b797-af7733fa5a14","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:35.000000Z","created_at":"2026-07-28T17:24:35.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":213248.5,"debit_total":"19042326.20","credit_total":18829077.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:36] local.INFO: Model: Journal  
[2026-07-28 20:24:36] local.INFO: Data received: {"id":"e250b8f0-a679-40b5-9d5f-cb53cdd8e242","type":"Credit","amount":"12800.00","rate":"128.000000","lcy_amount":"12800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 12:21:45","updated_at":"2026-07-26 12:21:45"} 
[2026-07-28 20:24:36] local.INFO: ID present? YES  
[2026-07-28 20:24:36] local.INFO: ID value: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:24:36] local.INFO: ID empty? NO  
[2026-07-28 20:24:36] local.INFO: Attempting to find record with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:24:36] local.INFO: Record not found, creating new with ID: e250b8f0-a679-40b5-9d5f-cb53cdd8e242  
[2026-07-28 20:24:36] local.INFO: Created record: {"id":"e250b8f0-a679-40b5-9d5f-cb53cdd8e242","type":"Credit","amount":"12800.00","rate":"128.000000","lcy_amount":"12800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"778f797b-d744-486d-aa18-d84286625daf","date":"2026-07-26","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"778f797b-d744-486d-aa18-d84286625daf","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:36.000000Z","created_at":"2026-07-28T17:24:36.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":200448.5,"debit_total":"19042326.20","credit_total":18841877.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:38] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:38] local.INFO: Model: Journal  
[2026-07-28 20:24:38] local.INFO: Data received: {"id":"e348ce98-fbdd-4008-9bce-0b22bcfb76cd","type":"Debit","amount":"850.00","rate":null,"lcy_amount":"7225.000000","narrative":"ZAR WITHDRAWAL","uniqid":"b95bc84f-3946-4702-826a-e350898fc189","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"cf251623-6b00-4362-b7e2-5101efdc8a6c","transaction_id":null,"customer_id":null,"currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","created_at":"2026-07-26 18:38:03","updated_at":"2026-07-27 10:31:07"} 
[2026-07-28 20:24:38] local.INFO: ID present? YES  
[2026-07-28 20:24:38] local.INFO: ID value: e348ce98-fbdd-4008-9bce-0b22bcfb76cd  
[2026-07-28 20:24:38] local.INFO: ID empty? NO  
[2026-07-28 20:24:38] local.INFO: Attempting to find record with ID: e348ce98-fbdd-4008-9bce-0b22bcfb76cd  
[2026-07-28 20:24:38] local.INFO: Record not found, creating new with ID: e348ce98-fbdd-4008-9bce-0b22bcfb76cd  
[2026-07-28 20:24:38] local.INFO: Created record: {"id":"e348ce98-fbdd-4008-9bce-0b22bcfb76cd","type":"Debit","amount":"850.00","rate":null,"lcy_amount":"7225.000000","narrative":"ZAR WITHDRAWAL","uniqid":"b95bc84f-3946-4702-826a-e350898fc189","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"cf251623-6b00-4362-b7e2-5101efdc8a6c","transaction_id":null,"customer_id":null,"currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","status":"Posted","updated_at":"2026-07-28T17:24:38.000000Z","created_at":"2026-07-28T17:24:38.000000Z","account":{"id":"cf251623-6b00-4362-b7e2-5101efdc8a6c","name":"ZAR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-ZAR-000001","is_fx_account":"1","balance":1700.0,"debit_total":1700.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"ea84bb13-6151-47f9-a162-08395f5e44cb","teller_id":null,"customer_id":null,"currency_id":"cb2add1e-84f0-438c-aca9-deaf6f8dec58","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-27T07:31:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:39] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:39] local.INFO: Model: Journal  
[2026-07-28 20:24:39] local.INFO: Data received: {"id":"e4086bf2-be23-4dee-be09-acbee24de37d","type":"Credit","amount":"2430.00","rate":null,"lcy_amount":"313470.000000","narrative":"USD WITHDRAWAL","uniqid":"8dddba1e-3f03-410d-900b-99dc72c7a42f","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 18:37:42","updated_at":"2026-07-27 10:31:08"} 
[2026-07-28 20:24:39] local.INFO: ID present? YES  
[2026-07-28 20:24:39] local.INFO: ID value: e4086bf2-be23-4dee-be09-acbee24de37d  
[2026-07-28 20:24:39] local.INFO: ID empty? NO  
[2026-07-28 20:24:39] local.INFO: Attempting to find record with ID: e4086bf2-be23-4dee-be09-acbee24de37d  
[2026-07-28 20:24:39] local.INFO: Record not found, creating new with ID: e4086bf2-be23-4dee-be09-acbee24de37d  
[2026-07-28 20:24:39] local.INFO: Created record: {"id":"e4086bf2-be23-4dee-be09-acbee24de37d","type":"Credit","amount":"2430.00","rate":null,"lcy_amount":"313470.000000","narrative":"USD WITHDRAWAL","uniqid":"8dddba1e-3f03-410d-900b-99dc72c7a42f","date":"2026-07-26","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:24:39.000000Z","created_at":"2026-07-28T17:24:39.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-996.890000000000100044417195022106170654296875,"debit_total":"69352.11","credit_total":70349.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:20.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:40] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:40] local.INFO: Model: Journal  
[2026-07-28 20:24:40] local.INFO: Data received: {"id":"e42a5466-6ad7-41c1-93e0-c7f789598aa1","type":"Debit","amount":"2430.00","rate":null,"lcy_amount":"313470.000000","narrative":"USD WITHDRAWAL","uniqid":"8dddba1e-3f03-410d-900b-99dc72c7a42f","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 18:37:42","updated_at":"2026-07-27 10:31:10"} 
[2026-07-28 20:24:40] local.INFO: ID present? YES  
[2026-07-28 20:24:40] local.INFO: ID value: e42a5466-6ad7-41c1-93e0-c7f789598aa1  
[2026-07-28 20:24:40] local.INFO: ID empty? NO  
[2026-07-28 20:24:40] local.INFO: Attempting to find record with ID: e42a5466-6ad7-41c1-93e0-c7f789598aa1  
[2026-07-28 20:24:40] local.INFO: Record not found, creating new with ID: e42a5466-6ad7-41c1-93e0-c7f789598aa1  
[2026-07-28 20:24:40] local.INFO: Created record: {"id":"e42a5466-6ad7-41c1-93e0-c7f789598aa1","type":"Debit","amount":"2430.00","rate":null,"lcy_amount":"313470.000000","narrative":"USD WITHDRAWAL","uniqid":"8dddba1e-3f03-410d-900b-99dc72c7a42f","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:24:40.000000Z","created_at":"2026-07-28T17:24:40.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":3714.0,"debit_total":33524.0,"credit_total":"29810.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:41] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:41] local.INFO: Model: Journal  
[2026-07-28 20:24:41] local.INFO: Data received: {"id":"e4b4fc0c-99fe-4050-8732-9d612d617e25","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-26 12:31:05","updated_at":"2026-07-26 12:31:05"} 
[2026-07-28 20:24:41] local.INFO: ID present? YES  
[2026-07-28 20:24:41] local.INFO: ID value: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:24:41] local.INFO: ID empty? NO  
[2026-07-28 20:24:41] local.INFO: Attempting to find record with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:24:41] local.INFO: Record not found, creating new with ID: e4b4fc0c-99fe-4050-8732-9d612d617e25  
[2026-07-28 20:24:41] local.INFO: Created record: {"id":"e4b4fc0c-99fe-4050-8732-9d612d617e25","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","date":"2026-07-26","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"3db55a65-4ee8-42cc-a1a9-c5b7276b3b5f","customer_id":"581b23fb-3408-4f59-86f0-ce4fc53d2e8e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:24:41.000000Z","created_at":"2026-07-28T17:24:41.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-896.8899999999999863575794734060764312744140625,"debit_total":69452.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:39.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:43] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:43] local.INFO: Model: Journal  
[2026-07-28 20:24:43] local.INFO: Data received: {"id":"e5723198-170d-442a-830c-291988216127","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:21:31","updated_at":"2026-07-25 12:21:31"} 
[2026-07-28 20:24:43] local.INFO: ID present? YES  
[2026-07-28 20:24:43] local.INFO: ID value: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:24:43] local.INFO: ID empty? NO  
[2026-07-28 20:24:43] local.INFO: Attempting to find record with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:24:43] local.INFO: Record not found, creating new with ID: e5723198-170d-442a-830c-291988216127  
[2026-07-28 20:24:43] local.INFO: Created record: {"id":"e5723198-170d-442a-830c-291988216127","type":"Credit","amount":"29000.00","rate":"145.000000","lcy_amount":"29000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","date":"2026-07-25","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"472fbfaa-6ba9-40a7-86e0-909e9a7ce979","customer_id":"0d77ae98-f040-46ea-b8fc-12743d6f784c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:43.000000Z","created_at":"2026-07-28T17:24:43.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":171448.5,"debit_total":"19042326.20","credit_total":18870877.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:44] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:44] local.INFO: Model: Journal  
[2026-07-28 20:24:44] local.INFO: Data received: {"id":"e5ede99a-d59e-417d-91a6-212e39f9a2d9","type":"Credit","amount":"402.00","rate":"144.500000","lcy_amount":"402.000000","narrative":"Gain on TR-3555-2026","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 13:46:03","updated_at":"2026-07-24 13:46:03"} 
[2026-07-28 20:24:44] local.INFO: ID present? YES  
[2026-07-28 20:24:44] local.INFO: ID value: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:24:44] local.INFO: ID empty? NO  
[2026-07-28 20:24:44] local.INFO: Attempting to find record with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:24:44] local.INFO: Record not found, creating new with ID: e5ede99a-d59e-417d-91a6-212e39f9a2d9  
[2026-07-28 20:24:44] local.INFO: Created record: {"id":"e5ede99a-d59e-417d-91a6-212e39f9a2d9","type":"Credit","amount":"402.00","rate":"144.500000","lcy_amount":"402.000000","narrative":"Gain on TR-3555-2026","uniqid":"55479f8d-6423-434a-b7f3-3c15a68bf098","date":"2026-07-24","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"55479f8d-6423-434a-b7f3-3c15a68bf098","customer_id":"67b44293-55e6-41a5-883c-7d6a4dfea8ad","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:44.000000Z","created_at":"2026-07-28T17:24:44.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-107831.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":115031.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:45] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:45] local.INFO: Model: Journal  
[2026-07-28 20:24:45] local.INFO: Data received: {"id":"e66025ee-66da-4308-8d9b-315b918e9ea6","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"739ce1be-ad88-4481-8f8c-4d0226c97408","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 11:24:02","updated_at":"2026-07-24 14:05:36"} 
[2026-07-28 20:24:45] local.INFO: ID present? YES  
[2026-07-28 20:24:45] local.INFO: ID value: e66025ee-66da-4308-8d9b-315b918e9ea6  
[2026-07-28 20:24:45] local.INFO: ID empty? NO  
[2026-07-28 20:24:45] local.INFO: Attempting to find record with ID: e66025ee-66da-4308-8d9b-315b918e9ea6  
[2026-07-28 20:24:45] local.INFO: Record not found, creating new with ID: e66025ee-66da-4308-8d9b-315b918e9ea6  
[2026-07-28 20:24:45] local.INFO: Created record: {"id":"e66025ee-66da-4308-8d9b-315b918e9ea6","type":"Debit","amount":"59.00","rate":null,"lcy_amount":"59.000000","narrative":"PURCHASE OF MILK","uniqid":"739ce1be-ad88-4481-8f8c-4d0226c97408","date":"2026-07-24","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:45.000000Z","created_at":"2026-07-28T17:24:45.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5470.0,"debit_total":5470.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:24:47] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:47] local.INFO: Model: Journal  
[2026-07-28 20:24:47] local.INFO: Data received: {"id":"e7b4167f-fe91-45bb-b06f-6304ee2e38a1","type":"Debit","amount":"770000.00","rate":null,"lcy_amount":"770000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 21-7-2026","uniqid":"9bfab276-0028-4b5a-9cab-353ea3781d54","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 14:24:02","updated_at":"2026-07-24 12:31:37"} 
[2026-07-28 20:24:47] local.INFO: ID present? YES  
[2026-07-28 20:24:47] local.INFO: ID value: e7b4167f-fe91-45bb-b06f-6304ee2e38a1  
[2026-07-28 20:24:47] local.INFO: ID empty? NO  
[2026-07-28 20:24:47] local.INFO: Attempting to find record with ID: e7b4167f-fe91-45bb-b06f-6304ee2e38a1  
[2026-07-28 20:24:47] local.INFO: Record not found, creating new with ID: e7b4167f-fe91-45bb-b06f-6304ee2e38a1  
[2026-07-28 20:24:47] local.INFO: Created record: {"id":"e7b4167f-fe91-45bb-b06f-6304ee2e38a1","type":"Debit","amount":"770000.00","rate":null,"lcy_amount":"770000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 21-7-2026","uniqid":"9bfab276-0028-4b5a-9cab-353ea3781d54","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:24:47.000000Z","created_at":"2026-07-28T17:24:47.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":941448.5,"debit_total":19812326.1999999992549419403076171875,"credit_total":"18870877.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:24:48] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:48] local.INFO: Model: Journal  
[2026-07-28 20:24:48] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:24:48] local.INFO: ID present? YES  
[2026-07-28 20:24:48] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:24:48] local.INFO: ID empty? NO  
[2026-07-28 20:24:48] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:24:48] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:24:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:24:48, 2026-07-28 20:24:48))  
[2026-07-28 20:24:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:24:54] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:24:54] local.INFO: Model: Journal  
[2026-07-28 20:24:54] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:24:54] local.INFO: ID present? YES  
[2026-07-28 20:24:54] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:24:54] local.INFO: ID empty? NO  
[2026-07-28 20:24:54] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:24:54] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:24:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:24:54, 2026-07-28 20:24:54))  
[2026-07-28 20:24:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:25:00] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:00] local.INFO: Model: Journal  
[2026-07-28 20:25:00] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:25:00] local.INFO: ID present? YES  
[2026-07-28 20:25:00] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:25:00] local.INFO: ID empty? NO  
[2026-07-28 20:25:00] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:25:00] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:25:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:25:00, 2026-07-28 20:25:00))  
[2026-07-28 20:25:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:25:07] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:07] local.INFO: Model: Journal  
[2026-07-28 20:25:07] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-28 20:25:07] local.INFO: ID present? YES  
[2026-07-28 20:25:07] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:25:07] local.INFO: ID empty? NO  
[2026-07-28 20:25:07] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:25:07] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-28 20:25:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-28 20:25:07, 2026-07-28 20:25:07))  
[2026-07-28 20:25:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-28 20:25:08] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:08] local.INFO: Model: Journal  
[2026-07-28 20:25:08] local.INFO: Data received: {"id":"e8d44fb7-442d-468a-b4ea-b323755aa8a0","type":"Credit","amount":"2125.00","rate":"6.000000","lcy_amount":"2125.000000","narrative":"Gain on TR-3576-2026","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 11:46:28","updated_at":"2026-07-26 11:46:28"} 
[2026-07-28 20:25:08] local.INFO: ID present? YES  
[2026-07-28 20:25:08] local.INFO: ID value: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:25:08] local.INFO: ID empty? NO  
[2026-07-28 20:25:08] local.INFO: Attempting to find record with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:25:08] local.INFO: Record not found, creating new with ID: e8d44fb7-442d-468a-b4ea-b323755aa8a0  
[2026-07-28 20:25:08] local.INFO: Created record: {"id":"e8d44fb7-442d-468a-b4ea-b323755aa8a0","type":"Credit","amount":"2125.00","rate":"6.000000","lcy_amount":"2125.000000","narrative":"Gain on TR-3576-2026","uniqid":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","date":"2026-07-26","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"1af6b956-9cce-4c14-bd4d-5d44ade23b25","customer_id":"a3f54425-4198-4000-9bdb-8c5784fc098c","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:08.000000Z","created_at":"2026-07-28T17:25:08.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-109956.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":117156.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:25:09] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:09] local.INFO: Model: Journal  
[2026-07-28 20:25:09] local.INFO: Data received: {"id":"e91f01c6-b5b2-4e41-8e8a-92fe6ea0b364","type":"Debit","amount":"195.00","rate":null,"lcy_amount":"25155.000000","narrative":"USD WITHDRAWAL","uniqid":"6d5014ec-31b5-4aac-aae5-4a15d21f1a3c","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-20 18:43:08","updated_at":"2026-07-24 12:33:43"} 
[2026-07-28 20:25:09] local.INFO: ID present? YES  
[2026-07-28 20:25:09] local.INFO: ID value: e91f01c6-b5b2-4e41-8e8a-92fe6ea0b364  
[2026-07-28 20:25:09] local.INFO: ID empty? NO  
[2026-07-28 20:25:09] local.INFO: Attempting to find record with ID: e91f01c6-b5b2-4e41-8e8a-92fe6ea0b364  
[2026-07-28 20:25:09] local.INFO: Record not found, creating new with ID: e91f01c6-b5b2-4e41-8e8a-92fe6ea0b364  
[2026-07-28 20:25:09] local.INFO: Created record: {"id":"e91f01c6-b5b2-4e41-8e8a-92fe6ea0b364","type":"Debit","amount":"195.00","rate":null,"lcy_amount":"25155.000000","narrative":"USD WITHDRAWAL","uniqid":"6d5014ec-31b5-4aac-aae5-4a15d21f1a3c","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:25:09.000000Z","created_at":"2026-07-28T17:25:09.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":3909.0,"debit_total":33719.0,"credit_total":"29810.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:10] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:10] local.INFO: Model: Journal  
[2026-07-28 20:25:10] local.INFO: Data received: {"id":"e951049e-8e23-44c6-98d6-450d53146f84","type":"Credit","amount":"2400.00","rate":"0.040000","lcy_amount":"2400.000000","narrative":"Gain on TR-3594-2026","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 12:28:28","updated_at":"2026-07-28 12:28:28"} 
[2026-07-28 20:25:10] local.INFO: ID present? YES  
[2026-07-28 20:25:10] local.INFO: ID value: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:25:10] local.INFO: ID empty? NO  
[2026-07-28 20:25:10] local.INFO: Attempting to find record with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:25:10] local.INFO: Record not found, creating new with ID: e951049e-8e23-44c6-98d6-450d53146f84  
[2026-07-28 20:25:10] local.INFO: Created record: {"id":"e951049e-8e23-44c6-98d6-450d53146f84","type":"Credit","amount":"2400.00","rate":"0.040000","lcy_amount":"2400.000000","narrative":"Gain on TR-3594-2026","uniqid":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"07b31533-d750-4d10-ad1a-0fbf0ee4249d","customer_id":"292c0ea6-fbb1-4053-87bc-54c303f4d9b8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:10.000000Z","created_at":"2026-07-28T17:25:10.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-112356.6900000000023283064365386962890625,"debit_total":"7200.00","credit_total":119556.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:08.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:25:12] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:12] local.INFO: Model: Journal  
[2026-07-28 20:25:12] local.INFO: Data received: {"id":"e9634d61-10d6-4d32-ab98-d621cd7083d0","type":"Credit","amount":"32000.00","rate":"128.000000","lcy_amount":"32000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:25:12] local.INFO: ID present? YES  
[2026-07-28 20:25:12] local.INFO: ID value: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:25:12] local.INFO: ID empty? NO  
[2026-07-28 20:25:12] local.INFO: Attempting to find record with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:25:12] local.INFO: Record not found, creating new with ID: e9634d61-10d6-4d32-ab98-d621cd7083d0  
[2026-07-28 20:25:12] local.INFO: Created record: {"id":"e9634d61-10d6-4d32-ab98-d621cd7083d0","type":"Credit","amount":"32000.00","rate":"128.000000","lcy_amount":"32000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:12.000000Z","created_at":"2026-07-28T17:25:12.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":909448.5,"debit_total":"19812326.20","credit_total":18902877.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:13] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:13] local.INFO: Model: Journal  
[2026-07-28 20:25:13] local.INFO: Data received: {"id":"e9cf41c9-65aa-4944-8458-6f40b6b13e44","type":"Debit","amount":"90.00","rate":null,"lcy_amount":"2893.500000","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a585bb0c-bc31-4fa9-9fd8-425489d39b13","transaction_id":null,"customer_id":null,"currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:27:00","updated_at":"2026-07-28 20:03:27"} 
[2026-07-28 20:25:13] local.INFO: ID present? YES  
[2026-07-28 20:25:13] local.INFO: ID value: e9cf41c9-65aa-4944-8458-6f40b6b13e44  
[2026-07-28 20:25:13] local.INFO: ID empty? NO  
[2026-07-28 20:25:13] local.INFO: Attempting to find record with ID: e9cf41c9-65aa-4944-8458-6f40b6b13e44  
[2026-07-28 20:25:13] local.INFO: Record found, updating...  
[2026-07-28 20:25:13] local.INFO: Before update: {"id":"e9cf41c9-65aa-4944-8458-6f40b6b13e44","type":"Debit","amount":"90.00","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","rate":null,"lcy_amount":"2893.500000","fx_category":"Funding","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"a585bb0c-bc31-4fa9-9fd8-425489d39b13","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T17:03:27.000000Z","updated_at":"2026-07-28T17:03:27.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:25:13] local.INFO: After update: {"id":"e9cf41c9-65aa-4944-8458-6f40b6b13e44","type":"Debit","amount":"90.00","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","rate":null,"lcy_amount":"2893.500000","fx_category":"Funding","narrative":"SAR WITHDRAWAL","uniqid":"9cab9df2-30da-4121-8d97-1f00505f6f17","date":"2026-07-28","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"teller_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","account_id":"a585bb0c-bc31-4fa9-9fd8-425489d39b13","transaction_id":null,"customer_id":null,"transaction_number_ref":null,"created_at":"2026-07-28T17:03:27.000000Z","updated_at":"2026-07-28T17:03:27.000000Z","synced_at":null,"deleted_at":null,"status":"Posted"} 
[2026-07-28 20:25:14] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:14] local.INFO: Model: Journal  
[2026-07-28 20:25:14] local.INFO: Data received: {"id":"edc15826-ef70-4e6d-a892-683c05a45efb","type":"Debit","amount":"195.00","rate":"127.500000","lcy_amount":"25155.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-20 09:26:19","updated_at":"2026-07-20 09:26:19"} 
[2026-07-28 20:25:14] local.INFO: ID present? YES  
[2026-07-28 20:25:14] local.INFO: ID value: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:25:14] local.INFO: ID empty? NO  
[2026-07-28 20:25:14] local.INFO: Attempting to find record with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:25:14] local.INFO: Record not found, creating new with ID: edc15826-ef70-4e6d-a892-683c05a45efb  
[2026-07-28 20:25:14] local.INFO: Created record: {"id":"edc15826-ef70-4e6d-a892-683c05a45efb","type":"Debit","amount":"195.00","rate":"127.500000","lcy_amount":"25155.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","date":"2026-07-20","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e1ee1b1f-c458-4504-96f7-4fb32a820b68","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:25:14.000000Z","created_at":"2026-07-28T17:25:14.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-701.8899999999999863575794734060764312744140625,"debit_total":69647.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:41.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:16] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:16] local.INFO: Model: Journal  
[2026-07-28 20:25:16] local.INFO: Data received: {"id":"eea1289d-f79f-41dd-9a78-e9d4e61d6b4b","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-20 09:27:51","updated_at":"2026-07-20 09:27:51"} 
[2026-07-28 20:25:16] local.INFO: ID present? YES  
[2026-07-28 20:25:16] local.INFO: ID value: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:25:16] local.INFO: ID empty? NO  
[2026-07-28 20:25:16] local.INFO: Attempting to find record with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:25:16] local.INFO: Record not found, creating new with ID: eea1289d-f79f-41dd-9a78-e9d4e61d6b4b  
[2026-07-28 20:25:16] local.INFO: Created record: {"id":"eea1289d-f79f-41dd-9a78-e9d4e61d6b4b","type":"Credit","amount":"58000.00","rate":"145.000000","lcy_amount":"58000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c70f0e53-b380-41e2-b177-7eaa3789966b","date":"2026-07-20","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c70f0e53-b380-41e2-b177-7eaa3789966b","customer_id":"a85cdd95-dc45-484a-ae5a-9ce9e0dc7e38","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:16.000000Z","created_at":"2026-07-28T17:25:16.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":851448.5,"debit_total":"19812326.20","credit_total":18960877.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:17] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:17] local.INFO: Model: Journal  
[2026-07-28 20:25:17] local.INFO: Data received: {"id":"ef141552-13b9-4161-a074-4be8e0a898c7","type":"Debit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"04112ec9-dc40-4a32-8f46-f23fccc87ba4","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-20 18:41:35","updated_at":"2026-07-24 12:45:00"} 
[2026-07-28 20:25:17] local.INFO: ID present? YES  
[2026-07-28 20:25:17] local.INFO: ID value: ef141552-13b9-4161-a074-4be8e0a898c7  
[2026-07-28 20:25:17] local.INFO: ID empty? NO  
[2026-07-28 20:25:17] local.INFO: Attempting to find record with ID: ef141552-13b9-4161-a074-4be8e0a898c7  
[2026-07-28 20:25:17] local.INFO: Record not found, creating new with ID: ef141552-13b9-4161-a074-4be8e0a898c7  
[2026-07-28 20:25:17] local.INFO: Created record: {"id":"ef141552-13b9-4161-a074-4be8e0a898c7","type":"Debit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"04112ec9-dc40-4a32-8f46-f23fccc87ba4","date":"2026-07-20","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:25:17.000000Z","created_at":"2026-07-28T17:25:17.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":9305.0,"debit_total":15645.0,"credit_total":"6340.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:22:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:18] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:18] local.INFO: Model: Journal  
[2026-07-28 20:25:18] local.INFO: Data received: {"id":"f27b0f13-ea93-4962-9af4-4cecee41949c","type":"Credit","amount":"212171.00","rate":null,"lcy_amount":"212171.000000","narrative":"MPESA DEPOSIT 21-07-2026","uniqid":"e785cc3e-a91a-47a9-975e-c958726fe1ac","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-21 18:48:02","updated_at":"2026-07-24 12:50:07"} 
[2026-07-28 20:25:18] local.INFO: ID present? YES  
[2026-07-28 20:25:18] local.INFO: ID value: f27b0f13-ea93-4962-9af4-4cecee41949c  
[2026-07-28 20:25:18] local.INFO: ID empty? NO  
[2026-07-28 20:25:18] local.INFO: Attempting to find record with ID: f27b0f13-ea93-4962-9af4-4cecee41949c  
[2026-07-28 20:25:18] local.INFO: Record not found, creating new with ID: f27b0f13-ea93-4962-9af4-4cecee41949c  
[2026-07-28 20:25:18] local.INFO: Created record: {"id":"f27b0f13-ea93-4962-9af4-4cecee41949c","type":"Credit","amount":"212171.00","rate":null,"lcy_amount":"212171.000000","narrative":"MPESA DEPOSIT 21-07-2026","uniqid":"e785cc3e-a91a-47a9-975e-c958726fe1ac","date":"2026-07-21","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:18.000000Z","created_at":"2026-07-28T17:25:18.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2562560.0,"debit_total":"4163140.00","credit_total":6725700.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T17:24:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:25:19] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:19] local.INFO: Model: Journal  
[2026-07-28 20:25:19] local.INFO: Data received: {"id":"f36f5075-8ae7-48e8-a415-0c0bc32e5fe4","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 15:08:00","updated_at":"2026-07-24 15:08:00"} 
[2026-07-28 20:25:19] local.INFO: ID present? YES  
[2026-07-28 20:25:19] local.INFO: ID value: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:25:19] local.INFO: ID empty? NO  
[2026-07-28 20:25:19] local.INFO: Attempting to find record with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:25:19] local.INFO: Record not found, creating new with ID: f36f5075-8ae7-48e8-a415-0c0bc32e5fe4  
[2026-07-28 20:25:19] local.INFO: Created record: {"id":"f36f5075-8ae7-48e8-a415-0c0bc32e5fe4","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6c3bca3d-2e54-4391-b548-fae9306f4773","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6c3bca3d-2e54-4391-b548-fae9306f4773","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:19.000000Z","created_at":"2026-07-28T17:25:19.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":807948.5,"debit_total":"19812326.20","credit_total":19004377.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:21] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:21] local.INFO: Model: Journal  
[2026-07-28 20:25:21] local.INFO: Data received: {"id":"f3dd1fd3-dc20-4f80-b82b-3a849462b871","type":"Credit","amount":"485.00","rate":null,"lcy_amount":"73332.000000","narrative":"EUR WITHDRAWAL","uniqid":"2b9a2f0d-6825-47f3-ac07-963a0224d645","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-25 18:36:09","updated_at":"2026-07-26 18:49:39"} 
[2026-07-28 20:25:21] local.INFO: ID present? YES  
[2026-07-28 20:25:21] local.INFO: ID value: f3dd1fd3-dc20-4f80-b82b-3a849462b871  
[2026-07-28 20:25:21] local.INFO: ID empty? NO  
[2026-07-28 20:25:21] local.INFO: Attempting to find record with ID: f3dd1fd3-dc20-4f80-b82b-3a849462b871  
[2026-07-28 20:25:21] local.INFO: Record not found, creating new with ID: f3dd1fd3-dc20-4f80-b82b-3a849462b871  
[2026-07-28 20:25:21] local.INFO: Created record: {"id":"f3dd1fd3-dc20-4f80-b82b-3a849462b871","type":"Credit","amount":"485.00","rate":null,"lcy_amount":"73332.000000","narrative":"EUR WITHDRAWAL","uniqid":"2b9a2f0d-6825-47f3-ac07-963a0224d645","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:25:21.000000Z","created_at":"2026-07-28T17:25:21.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3495.0,"debit_total":"18535.00","credit_total":22030.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:24:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:22] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:22] local.INFO: Model: Journal  
[2026-07-28 20:25:22] local.INFO: Data received: {"id":"f4bf4ce0-9f92-4a10-9f8a-3d1523233c36","type":"Debit","amount":"112.50","rate":"150.700000","lcy_amount":"112.500000","narrative":"Loss on TR-3598-2026","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:25:40","updated_at":"2026-07-28 17:25:40"} 
[2026-07-28 20:25:22] local.INFO: ID present? YES  
[2026-07-28 20:25:22] local.INFO: ID value: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:25:22] local.INFO: ID empty? NO  
[2026-07-28 20:25:22] local.INFO: Attempting to find record with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:25:22] local.INFO: Record not found, creating new with ID: f4bf4ce0-9f92-4a10-9f8a-3d1523233c36  
[2026-07-28 20:25:22] local.INFO: Created record: {"id":"f4bf4ce0-9f92-4a10-9f8a-3d1523233c36","type":"Debit","amount":"112.50","rate":"150.700000","lcy_amount":"112.500000","narrative":"Loss on TR-3598-2026","uniqid":"7daef726-6615-42ef-914a-f39cb5118ffb","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"7daef726-6615-42ef-914a-f39cb5118ffb","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:22.000000Z","created_at":"2026-07-28T17:25:22.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-112244.1900000000023283064365386962890625,"debit_total":7312.5,"credit_total":"119556.69","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:25:23] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:23] local.INFO: Model: Journal  
[2026-07-28 20:25:23] local.INFO: Data received: {"id":"f4cb89b0-0106-48b8-b7eb-661742614159","type":"Debit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"6a74a684-eec7-44d2-901a-f822238e5f73","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-26 16:11:07","updated_at":"2026-07-26 18:49:40"} 
[2026-07-28 20:25:23] local.INFO: ID present? YES  
[2026-07-28 20:25:23] local.INFO: ID value: f4cb89b0-0106-48b8-b7eb-661742614159  
[2026-07-28 20:25:23] local.INFO: ID empty? NO  
[2026-07-28 20:25:23] local.INFO: Attempting to find record with ID: f4cb89b0-0106-48b8-b7eb-661742614159  
[2026-07-28 20:25:23] local.INFO: Record not found, creating new with ID: f4cb89b0-0106-48b8-b7eb-661742614159  
[2026-07-28 20:25:23] local.INFO: Created record: {"id":"f4cb89b0-0106-48b8-b7eb-661742614159","type":"Debit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"6a74a684-eec7-44d2-901a-f822238e5f73","date":"2026-07-26","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:23.000000Z","created_at":"2026-07-28T17:25:23.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":907948.5,"debit_total":19912326.1999999992549419403076171875,"credit_total":"19004377.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:19.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:24] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:24] local.INFO: Model: Journal  
[2026-07-28 20:25:24] local.INFO: Data received: {"id":"f569d241-89b7-4fbf-bdf0-2cc09a6a322e","type":"Credit","amount":"200.00","rate":null,"lcy_amount":"200.000000","narrative":"REFILING OF WATER PLUS TRANSPORT 25-07-2026","uniqid":"51f0bf4c-8b7e-4c59-8aec-ddc023797654","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 15:30:47","updated_at":"2026-07-25 16:52:51"} 
[2026-07-28 20:25:24] local.INFO: ID present? YES  
[2026-07-28 20:25:24] local.INFO: ID value: f569d241-89b7-4fbf-bdf0-2cc09a6a322e  
[2026-07-28 20:25:24] local.INFO: ID empty? NO  
[2026-07-28 20:25:24] local.INFO: Attempting to find record with ID: f569d241-89b7-4fbf-bdf0-2cc09a6a322e  
[2026-07-28 20:25:24] local.INFO: Record not found, creating new with ID: f569d241-89b7-4fbf-bdf0-2cc09a6a322e  
[2026-07-28 20:25:24] local.INFO: Created record: {"id":"f569d241-89b7-4fbf-bdf0-2cc09a6a322e","type":"Credit","amount":"200.00","rate":null,"lcy_amount":"200.000000","narrative":"REFILING OF WATER PLUS TRANSPORT 25-07-2026","uniqid":"51f0bf4c-8b7e-4c59-8aec-ddc023797654","date":"2026-07-25","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:24.000000Z","created_at":"2026-07-28T17:25:24.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":907748.5,"debit_total":"19912326.20","credit_total":19004577.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:23.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:26] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:26] local.INFO: Model: Journal  
[2026-07-28 20:25:26] local.INFO: Data received: {"id":"f589edff-1b4d-4530-89ea-198be5bc2dcf","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 16:01:38","updated_at":"2026-07-24 16:01:38"} 
[2026-07-28 20:25:26] local.INFO: ID present? YES  
[2026-07-28 20:25:26] local.INFO: ID value: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:25:26] local.INFO: ID empty? NO  
[2026-07-28 20:25:26] local.INFO: Attempting to find record with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:25:26] local.INFO: Record not found, creating new with ID: f589edff-1b4d-4530-89ea-198be5bc2dcf  
[2026-07-28 20:25:26] local.INFO: Created record: {"id":"f589edff-1b4d-4530-89ea-198be5bc2dcf","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","date":"2026-07-24","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"735c8cab-ac15-4ba0-a978-7dd9a6ac3e05","customer_id":"79f69f42-ffc5-4712-9e7c-c6a7cb21df9a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:26.000000Z","created_at":"2026-07-28T17:25:26.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":900498.5,"debit_total":"19912326.20","credit_total":19011827.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:24.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:27] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:27] local.INFO: Model: Journal  
[2026-07-28 20:25:27] local.INFO: Data received: {"id":"f67b744a-7e94-486b-9bb6-846bc726d306","type":"Credit","amount":"250.00","rate":"128.000000","lcy_amount":"250.000000","narrative":"Gain on TR-3596-2026","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 13:47:47","updated_at":"2026-07-28 13:47:47"} 
[2026-07-28 20:25:27] local.INFO: ID present? YES  
[2026-07-28 20:25:27] local.INFO: ID value: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:25:27] local.INFO: ID empty? NO  
[2026-07-28 20:25:27] local.INFO: Attempting to find record with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:25:27] local.INFO: Record not found, creating new with ID: f67b744a-7e94-486b-9bb6-846bc726d306  
[2026-07-28 20:25:27] local.INFO: Created record: {"id":"f67b744a-7e94-486b-9bb6-846bc726d306","type":"Credit","amount":"250.00","rate":"128.000000","lcy_amount":"250.000000","narrative":"Gain on TR-3596-2026","uniqid":"c89da7a3-245c-4de8-92af-26e4464cf322","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c89da7a3-245c-4de8-92af-26e4464cf322","customer_id":"0377bdc7-543a-4a1f-8d55-0f6ba3d1948f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:27.000000Z","created_at":"2026-07-28T17:25:27.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-112494.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":119806.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:22.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-28 20:25:28] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:28] local.INFO: Model: Journal  
[2026-07-28 20:25:28] local.INFO: Data received: {"id":"f8ec3589-5e9b-48e6-9fa3-fed581cfdfe9","type":"Debit","amount":"1390.00","rate":null,"lcy_amount":"179310.000000","narrative":"USD WITHDRAWAL","uniqid":"d8c0b436-e4c2-40ac-861a-1e2395cc7f68","date":"2026-07-27","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-27 18:38:33","updated_at":"2026-07-28 11:48:14"} 
[2026-07-28 20:25:28] local.INFO: ID present? YES  
[2026-07-28 20:25:28] local.INFO: ID value: f8ec3589-5e9b-48e6-9fa3-fed581cfdfe9  
[2026-07-28 20:25:28] local.INFO: ID empty? NO  
[2026-07-28 20:25:28] local.INFO: Attempting to find record with ID: f8ec3589-5e9b-48e6-9fa3-fed581cfdfe9  
[2026-07-28 20:25:28] local.INFO: Record not found, creating new with ID: f8ec3589-5e9b-48e6-9fa3-fed581cfdfe9  
[2026-07-28 20:25:28] local.INFO: Created record: {"id":"f8ec3589-5e9b-48e6-9fa3-fed581cfdfe9","type":"Debit","amount":"1390.00","rate":null,"lcy_amount":"179310.000000","narrative":"USD WITHDRAWAL","uniqid":"d8c0b436-e4c2-40ac-861a-1e2395cc7f68","date":"2026-07-27","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:25:28.000000Z","created_at":"2026-07-28T17:25:28.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":5299.0,"debit_total":35109.0,"credit_total":"29810.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:29] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:29] local.INFO: Model: Journal  
[2026-07-28 20:25:29] local.INFO: Data received: {"id":"f9fb4650-c16a-45b2-bd44-6d7f3df19dda","type":"Debit","amount":"20.00","rate":"127.500000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 16:33:46","updated_at":"2026-07-24 16:33:46"} 
[2026-07-28 20:25:29] local.INFO: ID present? YES  
[2026-07-28 20:25:29] local.INFO: ID value: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:25:29] local.INFO: ID empty? NO  
[2026-07-28 20:25:29] local.INFO: Attempting to find record with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:25:29] local.INFO: Record not found, creating new with ID: f9fb4650-c16a-45b2-bd44-6d7f3df19dda  
[2026-07-28 20:25:29] local.INFO: Created record: {"id":"f9fb4650-c16a-45b2-bd44-6d7f3df19dda","type":"Debit","amount":"20.00","rate":"127.500000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","date":"2026-07-24","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"83eddf8e-9a5a-4e96-8316-d0d1fb4440f2","customer_id":"aa50300a-f29f-4cfc-b42a-dd5f474f8b5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:25:29.000000Z","created_at":"2026-07-28T17:25:29.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-681.8899999999999863575794734060764312744140625,"debit_total":69667.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:14.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:31] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:31] local.INFO: Model: Journal  
[2026-07-28 20:25:31] local.INFO: Data received: {"id":"fa1847a8-6e43-49ce-a194-a7b58250d489","type":"Debit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"f1d40ee0-0782-46eb-afbe-61c93e8a2e6b","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-25 12:11:35","updated_at":"2026-07-25 13:17:54"} 
[2026-07-28 20:25:31] local.INFO: ID present? YES  
[2026-07-28 20:25:31] local.INFO: ID value: fa1847a8-6e43-49ce-a194-a7b58250d489  
[2026-07-28 20:25:31] local.INFO: ID empty? NO  
[2026-07-28 20:25:31] local.INFO: Attempting to find record with ID: fa1847a8-6e43-49ce-a194-a7b58250d489  
[2026-07-28 20:25:31] local.INFO: Record not found, creating new with ID: fa1847a8-6e43-49ce-a194-a7b58250d489  
[2026-07-28 20:25:31] local.INFO: Created record: {"id":"fa1847a8-6e43-49ce-a194-a7b58250d489","type":"Debit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"f1d40ee0-0782-46eb-afbe-61c93e8a2e6b","date":"2026-07-25","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:31.000000Z","created_at":"2026-07-28T17:25:31.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1100498.5,"debit_total":20112326.1999999992549419403076171875,"credit_total":"19011827.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:26.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:32] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:32] local.INFO: Model: Journal  
[2026-07-28 20:25:32] local.INFO: Data received: {"id":"fd47dfbe-c7d7-4b20-8451-d0b4985bc5f8","type":"Debit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD ADDITION","uniqid":"7da4384e-43e0-4a0f-a331-7186b476b17b","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-24 15:19:46","updated_at":"2026-07-24 16:34:32"} 
[2026-07-28 20:25:32] local.INFO: ID present? YES  
[2026-07-28 20:25:32] local.INFO: ID value: fd47dfbe-c7d7-4b20-8451-d0b4985bc5f8  
[2026-07-28 20:25:32] local.INFO: ID empty? NO  
[2026-07-28 20:25:32] local.INFO: Attempting to find record with ID: fd47dfbe-c7d7-4b20-8451-d0b4985bc5f8  
[2026-07-28 20:25:32] local.INFO: Record not found, creating new with ID: fd47dfbe-c7d7-4b20-8451-d0b4985bc5f8  
[2026-07-28 20:25:32] local.INFO: Created record: {"id":"fd47dfbe-c7d7-4b20-8451-d0b4985bc5f8","type":"Debit","amount":"20.00","rate":null,"lcy_amount":"2580.000000","narrative":"USD ADDITION","uniqid":"7da4384e-43e0-4a0f-a331-7186b476b17b","date":"2026-07-24","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-28T17:25:32.000000Z","created_at":"2026-07-28T17:25:32.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-661.8899999999999863575794734060764312744140625,"debit_total":69687.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:29.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:33] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:33] local.INFO: Model: Journal  
[2026-07-28 20:25:33] local.INFO: Data received: {"id":"fefb6607-f1ae-4720-bde6-3f0336717b62","type":"Debit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6d1da2e-8b87-4bd2-bd5e-b77a40467018","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-21 18:42:02","updated_at":"2026-07-24 13:09:49"} 
[2026-07-28 20:25:33] local.INFO: ID present? YES  
[2026-07-28 20:25:33] local.INFO: ID value: fefb6607-f1ae-4720-bde6-3f0336717b62  
[2026-07-28 20:25:33] local.INFO: ID empty? NO  
[2026-07-28 20:25:33] local.INFO: Attempting to find record with ID: fefb6607-f1ae-4720-bde6-3f0336717b62  
[2026-07-28 20:25:33] local.INFO: Record not found, creating new with ID: fefb6607-f1ae-4720-bde6-3f0336717b62  
[2026-07-28 20:25:33] local.INFO: Created record: {"id":"fefb6607-f1ae-4720-bde6-3f0336717b62","type":"Debit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6d1da2e-8b87-4bd2-bd5e-b77a40467018","date":"2026-07-21","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:25:33.000000Z","created_at":"2026-07-28T17:25:33.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":9705.0,"debit_total":16045.0,"credit_total":"6340.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:17.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:34] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:34] local.INFO: Model: Journal  
[2026-07-28 20:25:34] local.INFO: Data received: {"id":"ff7a5ac7-9ff3-4488-ac7e-58f521233a3a","type":"Credit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6d1da2e-8b87-4bd2-bd5e-b77a40467018","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-21 18:42:02","updated_at":"2026-07-24 13:10:40"} 
[2026-07-28 20:25:34] local.INFO: ID present? YES  
[2026-07-28 20:25:34] local.INFO: ID value: ff7a5ac7-9ff3-4488-ac7e-58f521233a3a  
[2026-07-28 20:25:34] local.INFO: ID empty? NO  
[2026-07-28 20:25:34] local.INFO: Attempting to find record with ID: ff7a5ac7-9ff3-4488-ac7e-58f521233a3a  
[2026-07-28 20:25:34] local.INFO: Record not found, creating new with ID: ff7a5ac7-9ff3-4488-ac7e-58f521233a3a  
[2026-07-28 20:25:34] local.INFO: Created record: {"id":"ff7a5ac7-9ff3-4488-ac7e-58f521233a3a","type":"Credit","amount":"400.00","rate":null,"lcy_amount":"60480.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6d1da2e-8b87-4bd2-bd5e-b77a40467018","date":"2026-07-21","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-28T17:25:34.000000Z","created_at":"2026-07-28T17:25:34.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3895.0,"debit_total":"18535.00","credit_total":22430.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-28 20:25:36] local.INFO: === SYNC DEBUG ===  
[2026-07-28 20:25:36] local.INFO: Model: Journal  
[2026-07-28 20:25:36] local.INFO: Data received: {"id":"ffa47d47-e146-4f4c-82f8-128796b6a0ff","type":"Credit","amount":"1650.00","rate":null,"lcy_amount":"1650.000000","narrative":"MPESA WITHDRAWAL","uniqid":"c9ab6561-00d9-4d54-92a6-56e45426c6c4","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-24 18:57:46","updated_at":"2026-07-25 10:21:19"} 
[2026-07-28 20:25:36] local.INFO: ID present? YES  
[2026-07-28 20:25:36] local.INFO: ID value: ffa47d47-e146-4f4c-82f8-128796b6a0ff  
[2026-07-28 20:25:36] local.INFO: ID empty? NO  
[2026-07-28 20:25:36] local.INFO: Attempting to find record with ID: ffa47d47-e146-4f4c-82f8-128796b6a0ff  
[2026-07-28 20:25:36] local.INFO: Record not found, creating new with ID: ffa47d47-e146-4f4c-82f8-128796b6a0ff  
[2026-07-28 20:25:36] local.INFO: Created record: {"id":"ffa47d47-e146-4f4c-82f8-128796b6a0ff","type":"Credit","amount":"1650.00","rate":null,"lcy_amount":"1650.000000","narrative":"MPESA WITHDRAWAL","uniqid":"c9ab6561-00d9-4d54-92a6-56e45426c6c4","date":"2026-07-24","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-28T17:25:36.000000Z","created_at":"2026-07-28T17:25:36.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1098848.5,"debit_total":"20112326.20","credit_total":19013477.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-29 09:33:49] local.ERROR: Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 09:33:49, ?, Open, 2026-07-29 09:33:49, 2026-07-29 09:33:49)) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 09:33:49, ?, Open, 2026-07-29 09:33:49, 2026-07-29 09:33:49)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (ErrorException(code: 0): Array to string conversion at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Array to string...', '/home/junctionf...', 723)
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Array to string...', '/home/junctionf...', 723)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(723): PDOStatement->bindValue(5, Array, 2)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(41): Illuminate\\Database\\Connection->bindValues(Object(PDOStatement), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `sh...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#77 {main}
"} 
[2026-07-29 09:35:54] local.ERROR: Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 09:35:54, ?, Open, 2026-07-29 09:35:54, 2026-07-29 09:35:54)) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 09:35:54, ?, Open, 2026-07-29 09:35:54, 2026-07-29 09:35:54)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (ErrorException(code: 0): Array to string conversion at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Array to string...', '/home/junctionf...', 723)
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Array to string...', '/home/junctionf...', 723)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(723): PDOStatement->bindValue(5, Array, 2)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(41): Illuminate\\Database\\Connection->bindValues(Object(PDOStatement), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `sh...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#77 {main}
"} 
[2026-07-29 09:48:31] local.ERROR: Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 09:48:30, ?, Open, 2026-07-29 09:48:30, 2026-07-29 09:48:30)) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 09:48:30, ?, Open, 2026-07-29 09:48:30, 2026-07-29 09:48:30)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (ErrorException(code: 0): Array to string conversion at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Array to string...', '/home/junctionf...', 723)
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Array to string...', '/home/junctionf...', 723)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(723): PDOStatement->bindValue(5, Array, 2)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(41): Illuminate\\Database\\Connection->bindValues(Object(PDOStatement), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `sh...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#77 {main}
"} 
[2026-07-29 10:35:17] local.ERROR: Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 10:35:17, ?, Open, 2026-07-29 10:35:17, 2026-07-29 10:35:17)) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 10:35:17, ?, Open, 2026-07-29 10:35:17, 2026-07-29 10:35:17)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (ErrorException(code: 0): Array to string conversion at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Array to string...', '/home/junctionf...', 723)
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Array to string...', '/home/junctionf...', 723)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(723): PDOStatement->bindValue(5, Array, 2)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(41): Illuminate\\Database\\Connection->bindValues(Object(PDOStatement), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `sh...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#77 {main}
"} 
[2026-07-29 13:19:56] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 13:19:58] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 13:23:16] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 15:01:00] local.ERROR: Class "App\Services\Role" not found {"exception":"[object] (Error(code: 0): Class \"App\\Services\\Role\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Services/SyncService.php:213)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncController.php(24): App\\Services\\SyncService->getSyncStatistics()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\SyncController->statistics()
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('statistics', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\SyncController), 'statistics')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#43 {main}
"} 
[2026-07-29 15:01:02] local.ERROR: Class "App\Services\Role" not found {"exception":"[object] (Error(code: 0): Class \"App\\Services\\Role\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Services/SyncService.php:242)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncController.php(97): App\\Services\\SyncService->getRecordsSyncedAfter(Object(Carbon\\Carbon))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\SyncController->getSyncedAfter(Object(Illuminate\\Http\\Request))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getSyncedAfter', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\SyncController), 'getSyncedAfter')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#43 {main}
"} 
[2026-07-29 15:01:03] local.ERROR: Attempt to read property "selected_branch_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"selected_branch_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php:229)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 229)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(229): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 229)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getTrialBalance(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getTrialBalance', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getTrialBalance')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 15:01:05] local.ERROR: Attempt to read property "customer" on null {"view":{"view":"/home/junctionforex/public_html/fxmate.junctionforex.co.ke/resources/views/pdf.blade.php","data":{"runtime_env":"<pre class=sf-dump id=sf-dump-1574137451 data-indent-pad=\"  \">\"<span class=sf-dump-str title=\"5 characters\">local</span>\"
</pre><script>Sfdump(\"sf-dump-1574137451\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","transaction":"<pre class=sf-dump id=sf-dump-1758381655 data-indent-pad=\"  \"><span class=sf-dump-const>null</span>
</pre><script>Sfdump(\"sf-dump-1758381655\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
"}},"exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0): Attempt to read property \"customer\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/resources/views/pdf.blade.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(123): require('/home/junctionf...')
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('/home/junctionf...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('/home/junctionf...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/View.php(207): Illuminate\\View\\Engines\\CompilerEngine->get('/home/junctionf...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\\View\\View->getContents()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\\View\\View->renderContents()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/TransactionController.php(168): Illuminate\\View\\View->render()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\TransactionController->pdf('1')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('pdf', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\TransactionController), 'pdf')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#50 {main}

[previous exception] [object] (ErrorException(code: 0): Attempt to read property \"customer\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/storage/framework/views/6a061b32a5867cf036370dbc681c5628.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 65)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/storage/framework/views/6a061b32a5867cf036370dbc681c5628.php(65): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 65)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(123): require('/home/junctionf...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('/home/junctionf...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('/home/junctionf...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/View.php(207): Illuminate\\View\\Engines\\CompilerEngine->get('/home/junctionf...', Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\\View\\View->getContents()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\\View\\View->renderContents()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/TransactionController.php(168): Illuminate\\View\\View->render()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\TransactionController->pdf('1')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('pdf', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\TransactionController), 'pdf')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#52 {main}
"} 
[2026-07-29 15:13:55] local.ERROR: Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 15:13:55, ?, Open, 2026-07-29 15:13:55, 2026-07-29 15:13:55)) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 15:13:55, ?, Open, 2026-07-29 15:13:55, 2026-07-29 15:13:55)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (ErrorException(code: 0): Array to string conversion at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Array to string...', '/home/junctionf...', 723)
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Array to string...', '/home/junctionf...', 723)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(723): PDOStatement->bindValue(5, Array, 2)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(41): Illuminate\\Database\\Connection->bindValues(Object(PDOStatement), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `sh...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#77 {main}
"} 
[2026-07-29 15:14:18] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:14:18] local.INFO: Model: Journal  
[2026-07-29 15:14:18] local.INFO: Data received: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation c3e2d3","uniqid":"BR-260729121408","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 15:14:18] local.INFO: ID present? NO  
[2026-07-29 15:14:18] local.INFO: ID value: NULL  
[2026-07-29 15:14:18] local.INFO: ID empty? YES  
[2026-07-29 15:14:18] local.INFO: No ID provided, creating new record  
[2026-07-29 15:14:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_teller_id_foreign` FOREIGN KEY (`teller_id`) REFERENCES `tellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `company_id`, `branch_id`, `teller_id`, `account_id`, `currency_id`, `id`, `updated_at`, `created_at`) values (Debit, 1.00, 1.000000, 1.00, Till reconciliation c3e2d3, BR-260729121408, 2026-07-29, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, 956ea060-53ec-49c3-80dd-a8415519d2bc, 15499d6c-d4a2-4515-985f-d1411bca3e0d, 19bf0423-7c99-431d-b712-002599c6e7b4, 02ae1b43-4223-4de7-bf46-92feb8bf00cc, 2026-07-29 15:14:18, 2026-07-29 15:14:18))  
[2026-07-29 15:14:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(74): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-29 15:15:28] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:15:28] local.INFO: Model: Journal  
[2026-07-29 15:15:28] local.INFO: Data received: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation c3e2d3","uniqid":"BR-260729121518","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 15:15:28] local.INFO: ID present? NO  
[2026-07-29 15:15:28] local.INFO: ID value: NULL  
[2026-07-29 15:15:28] local.INFO: ID empty? YES  
[2026-07-29 15:15:28] local.INFO: No ID provided, creating new record  
[2026-07-29 15:15:28] local.INFO: Created record: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation c3e2d3","uniqid":"BR-260729121518","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","id":"427f9034-ed1b-4cbe-a9cb-08e9d49cb61a","updated_at":"2026-07-29T12:15:28.000000Z","created_at":"2026-07-29T12:15:28.000000Z","account":{"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":1.0,"debit_total":1.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-20T13:22:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-29 15:20:26] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:20:26] local.INFO: Model: Journal  
[2026-07-29 15:20:26] local.INFO: Data received: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation c3e2d3","uniqid":"BR-260729122016","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 15:20:26] local.INFO: ID present? NO  
[2026-07-29 15:20:26] local.INFO: ID value: NULL  
[2026-07-29 15:20:26] local.INFO: ID empty? YES  
[2026-07-29 15:20:26] local.INFO: No ID provided, creating new record  
[2026-07-29 15:20:26] local.INFO: Created record: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation c3e2d3","uniqid":"BR-260729122016","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","id":"dd97f2ee-9bca-49cd-b6a7-7143d23170e4","updated_at":"2026-07-29T12:20:26.000000Z","created_at":"2026-07-29T12:20:26.000000Z","account":{"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":1.0,"debit_total":1.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-20T13:22:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-29 15:20:27] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:20:27] local.INFO: Model: Journal  
[2026-07-29 15:20:27] local.INFO: Data received: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation c3e2d3","uniqid":"BR-260729122016","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 15:20:27] local.INFO: ID present? NO  
[2026-07-29 15:20:27] local.INFO: ID value: NULL  
[2026-07-29 15:20:27] local.INFO: ID empty? YES  
[2026-07-29 15:20:27] local.INFO: No ID provided, creating new record  
[2026-07-29 15:20:27] local.INFO: Created record: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation c3e2d3","uniqid":"BR-260729122016","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","id":"20d4bb92-4efb-4bbb-acf9-5cfea906b67f","updated_at":"2026-07-29T12:20:27.000000Z","created_at":"2026-07-29T12:20:27.000000Z","account":{"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":2.0,"debit_total":2.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-29T12:20:26.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-29 15:27:28] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:27:28] local.INFO: Model: User  
[2026-07-29 15:27:28] local.INFO: Data received: {"id":"88674664-0bb5-464c-b61f-9d687431c0d8","name":"Riley Collins","email":"riley.collins.2746@tosagree.com","email_verified_at":"2026-07-29T12:27:17.923865+00:00","password":"$2b$12$fcfRGD8vSzLus1XwMkaOvOLantjxUjy3QVa0a1Jr6v6eaKCU4YJ3S","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"RC2746"} 
[2026-07-29 15:27:28] local.INFO: ID present? YES  
[2026-07-29 15:27:28] local.INFO: ID value: 88674664-0bb5-464c-b61f-9d687431c0d8  
[2026-07-29 15:27:28] local.INFO: ID empty? NO  
[2026-07-29 15:27:28] local.INFO: Attempting to find record with ID: 88674664-0bb5-464c-b61f-9d687431c0d8  
[2026-07-29 15:27:28] local.INFO: Record not found, creating new with ID: 88674664-0bb5-464c-b61f-9d687431c0d8  
[2026-07-29 15:27:28] local.ERROR: Sync error: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2026-07-29T12:27:17.923865+00:00' for column `fxmate`.`users`.`email_verified_at` at row 1 (Connection: mysql, SQL: insert into `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `role_id`, `google2fa_verified`, `has_added_google2fa`, `company_id`, `code`, `updated_at`, `created_at`) values (88674664-0bb5-464c-b61f-9d687431c0d8, Riley Collins, riley.collins.2746@tosagree.com, 2026-07-29T12:27:17.923865+00:00, $2b$12$fcfRGD8vSzLus1XwMkaOvOLantjxUjy3QVa0a1Jr6v6eaKCU4YJ3S, 1, 1, 0, 8839b09d-b33e-4095-871c-26271be56f14, RC2746, 2026-07-29 15:27:28, 2026-07-29 15:27:28))  
[2026-07-29 15:27:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `us...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `us...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `us...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\User))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\User), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-29 15:28:13] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:28:13] local.INFO: Model: User  
[2026-07-29 15:28:13] local.INFO: Data received: {"id":"3b1a252b-df53-4e35-806d-096f656cedeb","name":"Riley Collins","email":"riley.collins.2746@tosagree.com","email_verified_at":"2026-07-29 12:28:02","password":"$2b$12$gFqOkSR04jcGoby/WwvDpexIS2qTw6mLYljyR9bAIImjs5pAdGVQ2","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"RC2746"} 
[2026-07-29 15:28:13] local.INFO: ID present? YES  
[2026-07-29 15:28:13] local.INFO: ID value: 3b1a252b-df53-4e35-806d-096f656cedeb  
[2026-07-29 15:28:13] local.INFO: ID empty? NO  
[2026-07-29 15:28:13] local.INFO: Attempting to find record with ID: 3b1a252b-df53-4e35-806d-096f656cedeb  
[2026-07-29 15:28:13] local.INFO: Record not found, creating new with ID: 3b1a252b-df53-4e35-806d-096f656cedeb  
[2026-07-29 15:28:13] local.INFO: Created record: {"id":"3b1a252b-df53-4e35-806d-096f656cedeb","name":"Riley Collins","email":"riley.collins.2746@tosagree.com","email_verified_at":"2026-07-29 12:28:02","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"RC2746","updated_at":"2026-07-29T12:28:13.000000Z","created_at":"2026-07-29T12:28:13.000000Z"} 
[2026-07-29 15:28:15] local.ERROR: in_array(): Argument #2 ($haystack) must be of type array, Illuminate\Database\Eloquent\Collection given {"userId":"3b1a252b-df53-4e35-806d-096f656cedeb","exception":"[object] (TypeError(code: 0): in_array(): Argument #2 ($haystack) must be of type array, Illuminate\\Database\\Eloquent\\Collection given at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/BranchFundingMiddleware.php:38)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/BranchFundingMiddleware.php(38): in_array('Update branch', Object(Illuminate\\Database\\Eloquent\\Collection))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\BranchFundingMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#42 {main}
"} 
[2026-07-29 15:30:07] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:30:07] local.INFO: Model: User  
[2026-07-29 15:30:07] local.INFO: Data received: {"id":"0de19a90-8d4c-42ed-90ce-c71790d4c967","name":"Riley Collins","email":"riley.collins.2746@tosagree.com","email_verified_at":"2026-07-29 12:29:56","password":"$2b$12$Dqu..Kj0/aadSHlul6EMSOR43MP8rLYp91f7G68nBiU4GWBOUTG36","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"RC2746"} 
[2026-07-29 15:30:07] local.INFO: ID present? YES  
[2026-07-29 15:30:07] local.INFO: ID value: 0de19a90-8d4c-42ed-90ce-c71790d4c967  
[2026-07-29 15:30:07] local.INFO: ID empty? NO  
[2026-07-29 15:30:07] local.INFO: Attempting to find record with ID: 0de19a90-8d4c-42ed-90ce-c71790d4c967  
[2026-07-29 15:30:07] local.INFO: Record not found, creating new with ID: 0de19a90-8d4c-42ed-90ce-c71790d4c967  
[2026-07-29 15:30:07] local.INFO: Created record: {"id":"0de19a90-8d4c-42ed-90ce-c71790d4c967","name":"Riley Collins","email":"riley.collins.2746@tosagree.com","email_verified_at":"2026-07-29 12:29:56","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"RC2746","updated_at":"2026-07-29T12:30:07.000000Z","created_at":"2026-07-29T12:30:07.000000Z"} 
[2026-07-29 15:32:16] local.INFO: === SYNC DEBUG ===  
[2026-07-29 15:32:16] local.INFO: Model: User  
[2026-07-29 15:32:16] local.INFO: Data received: {"id":"211fcd77-cbe4-4df6-9f81-39833d0c110f","name":"Riley Collins","email":"riley.collins.2746@tosagree.com","email_verified_at":"2026-07-29 12:32:05","password":"$2b$12$.YZi8Jtjf9Y/UBXkM9AbBenPibiFtzqzbKr.oSm3olV4RakMXIs7K","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"RC2746"} 
[2026-07-29 15:32:16] local.INFO: ID present? YES  
[2026-07-29 15:32:16] local.INFO: ID value: 211fcd77-cbe4-4df6-9f81-39833d0c110f  
[2026-07-29 15:32:16] local.INFO: ID empty? NO  
[2026-07-29 15:32:16] local.INFO: Attempting to find record with ID: 211fcd77-cbe4-4df6-9f81-39833d0c110f  
[2026-07-29 15:32:16] local.INFO: Record not found, creating new with ID: 211fcd77-cbe4-4df6-9f81-39833d0c110f  
[2026-07-29 15:32:16] local.INFO: Created record: {"id":"211fcd77-cbe4-4df6-9f81-39833d0c110f","name":"Riley Collins","email":"riley.collins.2746@tosagree.com","email_verified_at":"2026-07-29 12:32:05","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"RC2746","updated_at":"2026-07-29T12:32:16.000000Z","created_at":"2026-07-29T12:32:16.000000Z"} 
[2026-07-29 16:04:20] local.INFO: === SYNC DEBUG ===  
[2026-07-29 16:04:20] local.INFO: Model: Account  
[2026-07-29 16:04:20] local.INFO: Data received: {"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","balance":"1.00","debit_total":"1.00"} 
[2026-07-29 16:04:20] local.INFO: ID present? YES  
[2026-07-29 16:04:20] local.INFO: ID value: 15499d6c-d4a2-4515-985f-d1411bca3e0d  
[2026-07-29 16:04:20] local.INFO: ID empty? NO  
[2026-07-29 16:04:20] local.INFO: Attempting to find record with ID: 15499d6c-d4a2-4515-985f-d1411bca3e0d  
[2026-07-29 16:04:20] local.INFO: Record found, updating...  
[2026-07-29 16:04:20] local.INFO: Before update: {"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":"0.00","debit_total":"0.00","credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-20T13:22:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null} 
[2026-07-29 16:04:20] local.INFO: After update: {"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":"1.00","debit_total":"1.00","credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-29T13:04:20.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null} 
[2026-07-29 16:04:21] local.INFO: === SYNC DEBUG ===  
[2026-07-29 16:04:21] local.INFO: Model: Account  
[2026-07-29 16:04:21] local.INFO: Data received: {"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","balance":"0.00","debit_total":"0.00","credit_total":"0.00","opening_balance":"0","status":"Active"} 
[2026-07-29 16:04:21] local.INFO: ID present? YES  
[2026-07-29 16:04:21] local.INFO: ID value: 15499d6c-d4a2-4515-985f-d1411bca3e0d  
[2026-07-29 16:04:21] local.INFO: ID empty? NO  
[2026-07-29 16:04:21] local.INFO: Attempting to find record with ID: 15499d6c-d4a2-4515-985f-d1411bca3e0d  
[2026-07-29 16:04:21] local.INFO: Record found, updating...  
[2026-07-29 16:04:21] local.INFO: Before update: {"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":"1.00","debit_total":"1.00","credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-29T13:04:20.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null} 
[2026-07-29 16:04:21] local.INFO: After update: {"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":"0.00","debit_total":"0.00","credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-29T13:04:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null} 
[2026-07-29 16:31:52] local.INFO: === SYNC DEBUG ===  
[2026-07-29 16:31:52] local.INFO: Model: Transaction  
[2026-07-29 16:31:52] local.INFO: Data received: {"id":"a34f39cf-bb95-4e01-aa42-a588577a3b77","date":"2026-07-29","transaction_number":"TR-9901-2026","type":"Buying","status":"Draft","amount":"1.00","rate":"1.000000","amount_paid":"1.00","amount_received":"1.00","narrative":"Till exchange adjustment","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 16:31:52] local.INFO: ID present? YES  
[2026-07-29 16:31:52] local.INFO: ID value: a34f39cf-bb95-4e01-aa42-a588577a3b77  
[2026-07-29 16:31:52] local.INFO: ID empty? NO  
[2026-07-29 16:31:52] local.INFO: Attempting to find record with ID: a34f39cf-bb95-4e01-aa42-a588577a3b77  
[2026-07-29 16:31:52] local.INFO: Record not found, creating new with ID: a34f39cf-bb95-4e01-aa42-a588577a3b77  
[2026-07-29 16:31:52] local.INFO: Created record: {"id":"a34f39cf-bb95-4e01-aa42-a588577a3b77","date":"2026-07-29","transaction_number":"TR-9901-2026","type":"Buying","status":"Draft","amount":"1.00","rate":"1.000000","amount_paid":"1.00","amount_received":"1.00","narrative":"Till exchange adjustment","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-29T13:31:52.000000Z","created_at":"2026-07-29T13:31:52.000000Z"} 
[2026-07-29 16:31:53] local.INFO: === SYNC DEBUG ===  
[2026-07-29 16:31:53] local.INFO: Model: Transaction  
[2026-07-29 16:31:53] local.INFO: Data received: {"id":"a34f39cf-bb95-4e01-aa42-a588577a3b77","status":"Completed","completed_at":"2026-07-29 13:31:42"} 
[2026-07-29 16:31:53] local.INFO: ID present? YES  
[2026-07-29 16:31:53] local.INFO: ID value: a34f39cf-bb95-4e01-aa42-a588577a3b77  
[2026-07-29 16:31:53] local.INFO: ID empty? NO  
[2026-07-29 16:31:53] local.INFO: Attempting to find record with ID: a34f39cf-bb95-4e01-aa42-a588577a3b77  
[2026-07-29 16:31:53] local.INFO: Record found, updating...  
[2026-07-29 16:31:53] local.INFO: Before update: {"id":"a34f39cf-bb95-4e01-aa42-a588577a3b77","date":"2026-07-29","transaction_number":"TR-9901-2026","type":"Buying","amount":1.0,"status":"Draft","rate":1.0,"negotiated_rate":"N","amount_paid":1.0,"amount_received":1.0,"commission_amount":null,"narrative":"Till exchange adjustment","source":null,"purpose":null,"uniqid":null,"batch_id":null,"flagged_at":null,"resolved_at":null,"resolved_by":null,"completed_at":null,"completed_by":null,"customer_id":null,"teller_id":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-29T13:31:52.000000Z","updated_at":"2026-07-29T13:31:52.000000Z","synced_at":null,"deleted_at":null,"cancellation_reason":null} 
[2026-07-29 16:31:53] local.INFO: After update: {"id":"a34f39cf-bb95-4e01-aa42-a588577a3b77","date":"2026-07-29","transaction_number":"TR-9901-2026","type":"Buying","amount":1.0,"status":"Completed","rate":1.0,"negotiated_rate":"N","amount_paid":1.0,"amount_received":1.0,"commission_amount":null,"narrative":"Till exchange adjustment","source":null,"purpose":null,"uniqid":null,"batch_id":null,"flagged_at":null,"resolved_at":null,"resolved_by":null,"completed_at":"2026-07-29 13:31:42","completed_by":null,"customer_id":null,"teller_id":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-29T13:31:52.000000Z","updated_at":"2026-07-29T13:31:53.000000Z","synced_at":null,"deleted_at":null,"cancellation_reason":null} 
[2026-07-29 16:38:28] local.INFO: === SYNC DEBUG ===  
[2026-07-29 16:38:28] local.INFO: Model: Transaction  
[2026-07-29 16:38:28] local.INFO: Data received: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f"} 
[2026-07-29 16:38:28] local.INFO: ID present? YES  
[2026-07-29 16:38:28] local.INFO: ID value: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-29 16:38:28] local.INFO: ID empty? NO  
[2026-07-29 16:38:28] local.INFO: Attempting to find record with ID: f8097909-8c7f-4ae5-b366-6cd9030e648f  
[2026-07-29 16:38:28] local.INFO: Record found, updating...  
[2026-07-29 16:38:28] local.INFO: Before update: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","transaction_number":"TR-3587-2026","type":"Selling","amount":10.0,"status":"Completed","rate":130.0,"negotiated_rate":"0","amount_paid":10.0,"amount_received":1300.0,"commission_amount":null,"narrative":null,"source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","flagged_at":null,"resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28T17:19:01.000000Z","updated_at":"2026-07-28T17:19:01.000000Z","synced_at":null,"deleted_at":null,"cancellation_reason":null} 
[2026-07-29 16:38:28] local.INFO: After update: {"id":"f8097909-8c7f-4ae5-b366-6cd9030e648f","date":"2026-07-26","transaction_number":"TR-3587-2026","type":"Selling","amount":10.0,"status":"Completed","rate":130.0,"negotiated_rate":"0","amount_paid":10.0,"amount_received":1300.0,"commission_amount":null,"narrative":null,"source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"024773fe-dee4-4a96-bbe4-41e3ee5dfeca","flagged_at":null,"resolved_at":null,"resolved_by":null,"completed_at":"2026-07-26 17:44:29","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","customer_id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-28T17:19:01.000000Z","updated_at":"2026-07-28T17:19:01.000000Z","synced_at":null,"deleted_at":null,"cancellation_reason":null} 
[2026-07-29 16:38:28] local.INFO: === SYNC DEBUG ===  
[2026-07-29 16:38:28] local.INFO: Model: Customer  
[2026-07-29 16:38:28] local.INFO: Data received: {"id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0"} 
[2026-07-29 16:38:28] local.INFO: ID present? YES  
[2026-07-29 16:38:28] local.INFO: ID value: 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0  
[2026-07-29 16:38:28] local.INFO: ID empty? NO  
[2026-07-29 16:38:28] local.INFO: Attempting to find record with ID: 7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0  
[2026-07-29 16:38:28] local.INFO: Record found, updating...  
[2026-07-29 16:38:28] local.INFO: Before update: {"id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","first_name":"MILICIA","last_name":"MILUTINOVIC","sur_name":null,"phone":"521542115","calling_code":"+62","email":null,"residence":"undefined","id_type":"Passport","id_number":"014676555","nationality":"Serbian","is_pep":null,"permanent_address":"undefined","principle_activity":"undefined","company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-28T17:17:30.000000Z","updated_at":"2026-07-28T17:17:30.000000Z","synced_at":null,"deleted_at":null} 
[2026-07-29 16:38:28] local.INFO: After update: {"id":"7bfcffd2-0dcd-4d51-8ac1-bf62806af3a0","first_name":"MILICIA","last_name":"MILUTINOVIC","sur_name":null,"phone":"521542115","calling_code":"+62","email":null,"residence":"undefined","id_type":"Passport","id_number":"014676555","nationality":"Serbian","is_pep":null,"permanent_address":"undefined","principle_activity":"undefined","company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-28T17:17:30.000000Z","updated_at":"2026-07-28T17:17:30.000000Z","synced_at":null,"deleted_at":null} 
[2026-07-29 16:52:54] local.ERROR: Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 16:52:54, ?, Open, 2026-07-29 16:52:54, 2026-07-29 16:52:54)) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 16:52:54, ?, Open, 2026-07-29 16:52:54, 2026-07-29 16:52:54)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (ErrorException(code: 0): Array to string conversion at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Array to string...', '/home/junctionf...', 723)
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Array to string...', '/home/junctionf...', 723)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(723): PDOStatement->bindValue(5, Array, 2)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(41): Illuminate\\Database\\Connection->bindValues(Object(PDOStatement), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `sh...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#77 {main}
"} 
[2026-07-29 17:04:46] local.ERROR: Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 17:04:46, ?, Open, 2026-07-29 17:04:46, 2026-07-29 17:04:46)) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 0): Array to string conversion (Connection: mysql, SQL: insert into `shifts` (`user_id`, `teller_id`, `branch_id`, `start_time`, `opening_balances`, `status`, `updated_at`, `created_at`) values (32642323-5660-4280-bedb-dd4514a905a3, 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219, f3a2e3aa-b267-4db7-a565-603e0aa93cf6, 2026-07-29 17:04:46, ?, Open, 2026-07-29 17:04:46, 2026-07-29 17:04:46)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (ErrorException(code: 0): Array to string conversion at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Array to string...', '/home/junctionf...', 723)
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Array to string...', '/home/junctionf...', 723)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(723): PDOStatement->bindValue(5, Array, 2)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(41): Illuminate\\Database\\Connection->bindValues(Object(PDOStatement), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}('insert into `sh...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('insert into `sh...', Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run('insert into `sh...', Array, Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert('insert into `sh...', Array, 'id')
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId(Object(Illuminate\\Database\\Query\\Builder), 'insert into `sh...', Array, 'id')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId(Array, 'id')
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call('insertGetId', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId(Object(Illuminate\\Database\\Eloquent\\Builder), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert(Object(Illuminate\\Database\\Eloquent\\Builder))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\\Database\\Eloquent\\Model->save()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\\Database\\Eloquent\\Builder->Illuminate\\Database\\Eloquent\\{closure}(Object(App\\Models\\Shift))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\\Models\\Shift), Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->create(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'create', Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('create', Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ShiftController.php(80): Illuminate\\Database\\Eloquent\\Model::__callStatic('create', Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ShiftController->startDay(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('startDay', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ShiftController), 'startDay')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#77 {main}
"} 
[2026-07-29 17:12:46] local.INFO: === SYNC DEBUG ===  
[2026-07-29 17:12:46] local.INFO: Model: Journal  
[2026-07-29 17:12:46] local.INFO: Data received: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation 8b41c2","uniqid":"BR-260729141236","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 17:12:46] local.INFO: ID present? NO  
[2026-07-29 17:12:46] local.INFO: ID value: NULL  
[2026-07-29 17:12:46] local.INFO: ID empty? YES  
[2026-07-29 17:12:46] local.INFO: No ID provided, creating new record  
[2026-07-29 17:12:46] local.INFO: Created record: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation 8b41c2","uniqid":"BR-260729141236","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","id":"66dbbfad-0232-416f-b2be-eff70c006a8b","updated_at":"2026-07-29T14:12:46.000000Z","created_at":"2026-07-29T14:12:46.000000Z","account":{"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":1.0,"debit_total":1.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-29T13:04:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-29 17:12:46] local.INFO: === SYNC DEBUG ===  
[2026-07-29 17:12:46] local.INFO: Model: Journal  
[2026-07-29 17:12:46] local.INFO: Data received: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation 8b41c2","uniqid":"BR-260729141236","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 17:12:46] local.INFO: ID present? NO  
[2026-07-29 17:12:46] local.INFO: ID value: NULL  
[2026-07-29 17:12:46] local.INFO: ID empty? YES  
[2026-07-29 17:12:46] local.INFO: No ID provided, creating new record  
[2026-07-29 17:12:46] local.INFO: === SYNC DEBUG ===  
[2026-07-29 17:12:46] local.INFO: Model: Journal  
[2026-07-29 17:12:46] local.INFO: Data received: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation 8b41c2","uniqid":"BR-260729141236","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 17:12:46] local.INFO: ID present? NO  
[2026-07-29 17:12:46] local.INFO: ID value: NULL  
[2026-07-29 17:12:46] local.INFO: ID empty? YES  
[2026-07-29 17:12:46] local.INFO: No ID provided, creating new record  
[2026-07-29 17:12:46] local.INFO: Created record: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation 8b41c2","uniqid":"BR-260729141236","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","id":"79e9d006-4055-420c-9f07-b2f5418a9904","updated_at":"2026-07-29T14:12:46.000000Z","created_at":"2026-07-29T14:12:46.000000Z","account":{"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":2.0,"debit_total":2.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-29T14:12:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-29 17:12:47] local.INFO: Created record: {"type":"Debit","amount":"1.00","rate":"1.000000","lcy_amount":"1.00","narrative":"Till reconciliation 8b41c2","uniqid":"BR-260729141236","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","account_id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","id":"7b3e10e2-6245-48d3-83e9-4a0e362e6e3f","updated_at":"2026-07-29T14:12:46.000000Z","created_at":"2026-07-29T14:12:46.000000Z","account":{"id":"15499d6c-d4a2-4515-985f-d1411bca3e0d","name":"KES-CASHBOX-Teller6   kes","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"5010010000000","is_fx_account":"1","balance":3.0,"debit_total":3.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"956ea060-53ec-49c3-80dd-a8415519d2bc","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-20T13:22:56.000000Z","updated_at":"2026-07-29T14:12:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-29 17:15:02] local.INFO: === SYNC DEBUG ===  
[2026-07-29 17:15:02] local.INFO: Model: Transaction  
[2026-07-29 17:15:02] local.INFO: Data received: {"id":"bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7","date":"2026-07-29","transaction_number":"TR-9902-2026","type":"Buying","status":"Draft","amount":"1.00","rate":"1.000000","amount_paid":"1.00","amount_received":"1.00","narrative":"Till exchange adjustment","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 17:15:02] local.INFO: ID present? YES  
[2026-07-29 17:15:02] local.INFO: ID value: bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7  
[2026-07-29 17:15:02] local.INFO: ID empty? NO  
[2026-07-29 17:15:02] local.INFO: Attempting to find record with ID: bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7  
[2026-07-29 17:15:02] local.INFO: Record not found, creating new with ID: bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7  
[2026-07-29 17:15:02] local.INFO: Created record: {"id":"bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7","date":"2026-07-29","transaction_number":"TR-9902-2026","type":"Buying","status":"Draft","amount":"1.00","rate":"1.000000","amount_paid":"1.00","amount_received":"1.00","narrative":"Till exchange adjustment","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-29T14:15:02.000000Z","created_at":"2026-07-29T14:15:02.000000Z"} 
[2026-07-29 17:15:03] local.INFO: === SYNC DEBUG ===  
[2026-07-29 17:15:03] local.INFO: Model: Transaction  
[2026-07-29 17:15:03] local.INFO: Data received: {"id":"bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7","amount":"2.00","amount_paid":"2.00","amount_received":"2.00","status":"Completed","completed_at":"2026-07-29 14:14:53"} 
[2026-07-29 17:15:03] local.INFO: ID present? YES  
[2026-07-29 17:15:03] local.INFO: ID value: bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7  
[2026-07-29 17:15:03] local.INFO: ID empty? NO  
[2026-07-29 17:15:03] local.INFO: Attempting to find record with ID: bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7  
[2026-07-29 17:15:03] local.INFO: Record found, updating...  
[2026-07-29 17:15:03] local.INFO: Before update: {"id":"bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7","date":"2026-07-29","transaction_number":"TR-9902-2026","type":"Buying","amount":1.0,"status":"Draft","rate":1.0,"negotiated_rate":"N","amount_paid":1.0,"amount_received":1.0,"commission_amount":null,"narrative":"Till exchange adjustment","source":null,"purpose":null,"uniqid":null,"batch_id":null,"flagged_at":null,"resolved_at":null,"resolved_by":null,"completed_at":null,"completed_by":null,"customer_id":null,"teller_id":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-29T14:15:02.000000Z","updated_at":"2026-07-29T14:15:02.000000Z","synced_at":null,"deleted_at":null,"cancellation_reason":null} 
[2026-07-29 17:15:03] local.INFO: After update: {"id":"bb1520ee-abb1-46e3-aa27-ecaedb7b8ed7","date":"2026-07-29","transaction_number":"TR-9902-2026","type":"Buying","amount":2.0,"status":"Completed","rate":1.0,"negotiated_rate":"N","amount_paid":2.0,"amount_received":2.0,"commission_amount":null,"narrative":"Till exchange adjustment","source":null,"purpose":null,"uniqid":null,"batch_id":null,"flagged_at":null,"resolved_at":null,"resolved_by":null,"completed_at":"2026-07-29 14:14:53","completed_by":null,"customer_id":null,"teller_id":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-29T14:15:02.000000Z","updated_at":"2026-07-29T14:15:03.000000Z","synced_at":null,"deleted_at":null,"cancellation_reason":null} 
[2026-07-29 18:10:46] local.ERROR: Attempt to read property "selected_branch_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"selected_branch_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php:931)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 931)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(931): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 931)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getDailyTransactionList(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getDailyTransac...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getDailyTransac...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 18:10:47] local.ERROR: Attempt to read property "selected_teller_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"selected_teller_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php:1306)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 1306)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(1306): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 1306)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getSuspiciousActivityAudit(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getSuspiciousAc...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getSuspiciousAc...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 18:10:50] local.ERROR: Attempt to read property "selected_teller_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"selected_teller_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php:1346)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 1346)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(1346): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 1346)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getPEPExposureReport(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getPEPExposureR...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getPEPExposureR...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 18:10:51] local.ERROR: Attempt to read property "selected_teller_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"selected_teller_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php:1346)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 1346)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(1346): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 1346)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getPEPExposureReport(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getPEPExposureR...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getPEPExposureR...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-07-29 18:19:17] local.INFO: === SYNC DEBUG ===  
[2026-07-29 18:19:17] local.INFO: Model: User  
[2026-07-29 18:19:17] local.INFO: Data received: {"id":"9f0cd41a-7311-4aea-bfbb-2e437f2c6192","name":"Avery Hayes","email":"avery.hayes.285df@tosagree.com","email_verified_at":"2026-07-29 15:19:06","password":"$2b$12$S4SPVI4rv6InEv98k4vIEOg83/YhnHsC5bZ5pHHn2cdxgUwrcuAyO","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"AR285D"} 
[2026-07-29 18:19:17] local.INFO: ID present? YES  
[2026-07-29 18:19:17] local.INFO: ID value: 9f0cd41a-7311-4aea-bfbb-2e437f2c6192  
[2026-07-29 18:19:17] local.INFO: ID empty? NO  
[2026-07-29 18:19:17] local.INFO: Attempting to find record with ID: 9f0cd41a-7311-4aea-bfbb-2e437f2c6192  
[2026-07-29 18:19:17] local.INFO: Record not found, creating new with ID: 9f0cd41a-7311-4aea-bfbb-2e437f2c6192  
[2026-07-29 18:19:17] local.INFO: Created record: {"id":"9f0cd41a-7311-4aea-bfbb-2e437f2c6192","name":"Avery Hayes","email":"avery.hayes.285df@tosagree.com","email_verified_at":"2026-07-29 15:19:06","role_id":1,"google2fa_verified":"1","has_added_google2fa":0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","code":"AR285D","updated_at":"2026-07-29T15:19:17.000000Z","created_at":"2026-07-29T15:19:17.000000Z"} 
[2026-07-29 18:19:18] local.INFO: === SYNC DEBUG ===  
[2026-07-29 18:19:18] local.INFO: Model: Rate  
[2026-07-29 18:19:18] local.INFO: Data received: {"id":"9f459ac5-360e-42b0-be0a-d656bbb9f722","buying":"1.000000","selling":"1.000000","avg":"1.000000","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","base_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","target_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4"} 
[2026-07-29 18:19:18] local.INFO: ID present? YES  
[2026-07-29 18:19:18] local.INFO: ID value: 9f459ac5-360e-42b0-be0a-d656bbb9f722  
[2026-07-29 18:19:18] local.INFO: ID empty? NO  
[2026-07-29 18:19:18] local.INFO: Attempting to find record with ID: 9f459ac5-360e-42b0-be0a-d656bbb9f722  
[2026-07-29 18:19:18] local.INFO: Record not found, creating new with ID: 9f459ac5-360e-42b0-be0a-d656bbb9f722  
[2026-07-29 18:19:18] local.INFO: Created record: {"id":"9f459ac5-360e-42b0-be0a-d656bbb9f722","buying":"1.000000","selling":"1.000000","avg":"1.000000","date":"2026-07-29","company_id":"8839b09d-b33e-4095-871c-26271be56f14","base_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","target_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-29T15:19:18.000000Z","created_at":"2026-07-29T15:19:18.000000Z"} 
[2026-07-31 10:52:35] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:35] local.INFO: Model: Transaction  
[2026-07-31 10:52:35] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:52:35] local.INFO: ID present? YES  
[2026-07-31 10:52:35] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:35] local.INFO: ID empty? NO  
[2026-07-31 10:52:35] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:35] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:52:35, 2026-07-31 10:52:35))  
[2026-07-31 10:52:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:52:42] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:42] local.INFO: Model: Transaction  
[2026-07-31 10:52:42] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:52:42] local.INFO: ID present? YES  
[2026-07-31 10:52:42] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:42] local.INFO: ID empty? NO  
[2026-07-31 10:52:42] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:42] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:52:42, 2026-07-31 10:52:42))  
[2026-07-31 10:52:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:52:48] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:48] local.INFO: Model: Transaction  
[2026-07-31 10:52:48] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:52:48] local.INFO: ID present? YES  
[2026-07-31 10:52:48] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:48] local.INFO: ID empty? NO  
[2026-07-31 10:52:48] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:48] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:52:48, 2026-07-31 10:52:48))  
[2026-07-31 10:52:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:52:54] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:54] local.INFO: Model: Transaction  
[2026-07-31 10:52:54] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:52:54] local.INFO: ID present? YES  
[2026-07-31 10:52:54] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:54] local.INFO: ID empty? NO  
[2026-07-31 10:52:54] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:54] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:52:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:52:54, 2026-07-31 10:52:54))  
[2026-07-31 10:52:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:52:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:55] local.INFO: Model: Transaction  
[2026-07-31 10:52:55] local.INFO: Data received: {"id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","type":"Buying","amount":1000,"rate":128.5,"negotiated_rate":"0","amount_paid":128500,"amount_received":1000,"narrative":null,"transaction_number":"TR-3600-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 10:51:24","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f37e48b8-6f35-4275-805f-f703f6089ca6","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-31 10:51:20","updated_at":"2026-07-31 10:51:24"} 
[2026-07-31 10:52:55] local.INFO: ID present? YES  
[2026-07-31 10:52:55] local.INFO: ID value: 8f3bd466-8474-4b09-abd6-5c9a4a475318  
[2026-07-31 10:52:55] local.INFO: ID empty? NO  
[2026-07-31 10:52:55] local.INFO: Attempting to find record with ID: 8f3bd466-8474-4b09-abd6-5c9a4a475318  
[2026-07-31 10:52:55] local.INFO: Record not found, creating new with ID: 8f3bd466-8474-4b09-abd6-5c9a4a475318  
[2026-07-31 10:52:55] local.INFO: Created record: {"id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","type":"Buying","amount":1000,"rate":128.5,"negotiated_rate":"0","amount_paid":128500,"amount_received":1000,"narrative":null,"transaction_number":"TR-3600-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 10:51:24","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"f37e48b8-6f35-4275-805f-f703f6089ca6","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-31T07:52:55.000000Z","created_at":"2026-07-31T07:52:55.000000Z"} 
[2026-07-31 10:52:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:57] local.INFO: Model: Journal  
[2026-07-31 10:52:57] local.INFO: Data received: {"id":"167890bc-c857-47bb-bdab-2fd1597e6885","type":"Debit","amount":"1000.00","rate":"128.500000","lcy_amount":"129000.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 10:51:24","updated_at":"2026-07-31 10:51:24"} 
[2026-07-31 10:52:57] local.INFO: ID present? YES  
[2026-07-31 10:52:57] local.INFO: ID value: 167890bc-c857-47bb-bdab-2fd1597e6885  
[2026-07-31 10:52:57] local.INFO: ID empty? NO  
[2026-07-31 10:52:57] local.INFO: Attempting to find record with ID: 167890bc-c857-47bb-bdab-2fd1597e6885  
[2026-07-31 10:52:57] local.INFO: Record not found, creating new with ID: 167890bc-c857-47bb-bdab-2fd1597e6885  
[2026-07-31 10:52:57] local.INFO: Created record: {"id":"167890bc-c857-47bb-bdab-2fd1597e6885","type":"Debit","amount":"1000.00","rate":"128.500000","lcy_amount":"129000.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T07:52:57.000000Z","created_at":"2026-07-31T07:52:57.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":338.1100000000000136424205265939235687255859375,"debit_total":70687.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:32.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:52:58] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:58] local.INFO: Model: Journal  
[2026-07-31 10:52:58] local.INFO: Data received: {"id":"7a29a78c-256b-4adb-a23d-c0743a7f9223","type":"Debit","amount":"39996.00","rate":null,"lcy_amount":"39996.000000","narrative":"KES ADDITION","uniqid":"94960036-a6be-4dfa-b2d9-498704d7f14a","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:50:50","updated_at":"2026-07-31 10:50:52"} 
[2026-07-31 10:52:58] local.INFO: ID present? YES  
[2026-07-31 10:52:58] local.INFO: ID value: 7a29a78c-256b-4adb-a23d-c0743a7f9223  
[2026-07-31 10:52:58] local.INFO: ID empty? NO  
[2026-07-31 10:52:58] local.INFO: Attempting to find record with ID: 7a29a78c-256b-4adb-a23d-c0743a7f9223  
[2026-07-31 10:52:58] local.INFO: Record not found, creating new with ID: 7a29a78c-256b-4adb-a23d-c0743a7f9223  
[2026-07-31 10:52:58] local.INFO: Created record: {"id":"7a29a78c-256b-4adb-a23d-c0743a7f9223","type":"Debit","amount":"39996.00","rate":null,"lcy_amount":"39996.000000","narrative":"KES ADDITION","uniqid":"94960036-a6be-4dfa-b2d9-498704d7f14a","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:52:58.000000Z","created_at":"2026-07-31T07:52:58.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1138844.5,"debit_total":20152322.1999999992549419403076171875,"credit_total":"19013477.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:52:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:52:59] local.INFO: Model: Journal  
[2026-07-31 10:52:59] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:52:59] local.INFO: ID present? YES  
[2026-07-31 10:52:59] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:52:59] local.INFO: ID empty? NO  
[2026-07-31 10:52:59] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:52:59] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:52:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:52:59, 2026-07-31 10:52:59))  
[2026-07-31 10:52:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:05] local.INFO: Model: Journal  
[2026-07-31 10:53:05] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:05] local.INFO: ID present? YES  
[2026-07-31 10:53:05] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:05] local.INFO: ID empty? NO  
[2026-07-31 10:53:05] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:05] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:53:05, 2026-07-31 10:53:05))  
[2026-07-31 10:53:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:12] local.INFO: Model: Journal  
[2026-07-31 10:53:12] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:12] local.INFO: ID present? YES  
[2026-07-31 10:53:12] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:12] local.INFO: ID empty? NO  
[2026-07-31 10:53:12] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:12] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:53:12, 2026-07-31 10:53:12))  
[2026-07-31 10:53:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:18] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:18] local.INFO: Model: Journal  
[2026-07-31 10:53:18] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:18] local.INFO: ID present? YES  
[2026-07-31 10:53:18] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:18] local.INFO: ID empty? NO  
[2026-07-31 10:53:18] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:18] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:53:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:53:18, 2026-07-31 10:53:18))  
[2026-07-31 10:53:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:19] local.INFO: Model: Journal  
[2026-07-31 10:53:19] local.INFO: Data received: {"id":"a19be92a-620b-46e1-8926-cfe8c6b8b78a","type":"Credit","amount":"500.00","rate":"128.500000","lcy_amount":"500.000000","narrative":"Gain on TR-3600-2026","uniqid":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:51:24","updated_at":"2026-07-31 10:51:24"} 
[2026-07-31 10:53:19] local.INFO: ID present? YES  
[2026-07-31 10:53:19] local.INFO: ID value: a19be92a-620b-46e1-8926-cfe8c6b8b78a  
[2026-07-31 10:53:19] local.INFO: ID empty? NO  
[2026-07-31 10:53:19] local.INFO: Attempting to find record with ID: a19be92a-620b-46e1-8926-cfe8c6b8b78a  
[2026-07-31 10:53:19] local.INFO: Record not found, creating new with ID: a19be92a-620b-46e1-8926-cfe8c6b8b78a  
[2026-07-31 10:53:19] local.INFO: Created record: {"id":"a19be92a-620b-46e1-8926-cfe8c6b8b78a","type":"Credit","amount":"500.00","rate":"128.500000","lcy_amount":"500.000000","narrative":"Gain on TR-3600-2026","uniqid":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:53:19.000000Z","created_at":"2026-07-31T07:53:19.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-112994.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":120306.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 10:53:20] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:20] local.INFO: Model: Journal  
[2026-07-31 10:53:20] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:20] local.INFO: ID present? YES  
[2026-07-31 10:53:20] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:20] local.INFO: ID empty? NO  
[2026-07-31 10:53:20] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:20] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:53:20, 2026-07-31 10:53:20))  
[2026-07-31 10:53:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:26] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:26] local.INFO: Model: Journal  
[2026-07-31 10:53:26] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:26] local.INFO: ID present? YES  
[2026-07-31 10:53:26] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:26] local.INFO: ID empty? NO  
[2026-07-31 10:53:26] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:26] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:53:26, 2026-07-31 10:53:26))  
[2026-07-31 10:53:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:33] local.INFO: Model: Journal  
[2026-07-31 10:53:33] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:33] local.INFO: ID present? YES  
[2026-07-31 10:53:33] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:33] local.INFO: ID empty? NO  
[2026-07-31 10:53:33] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:33] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:53:33, 2026-07-31 10:53:33))  
[2026-07-31 10:53:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:39] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:39] local.INFO: Model: Journal  
[2026-07-31 10:53:39] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:39] local.INFO: ID present? YES  
[2026-07-31 10:53:39] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:39] local.INFO: ID empty? NO  
[2026-07-31 10:53:39] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:39] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:53:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:53:39, 2026-07-31 10:53:39))  
[2026-07-31 10:53:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:40] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:40] local.INFO: Model: Journal  
[2026-07-31 10:53:40] local.INFO: Data received: {"id":"caca9344-c1f8-4eef-bfe5-0c78f3120913","type":"Debit","amount":"181974.00","rate":null,"lcy_amount":"181974.000000","narrative":"KES WITHDRAWAL","uniqid":"f1ecd381-0943-4430-9ff6-566076d88c2d","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:50:14","updated_at":"2026-07-31 10:50:16"} 
[2026-07-31 10:53:40] local.INFO: ID present? YES  
[2026-07-31 10:53:40] local.INFO: ID value: caca9344-c1f8-4eef-bfe5-0c78f3120913  
[2026-07-31 10:53:40] local.INFO: ID empty? NO  
[2026-07-31 10:53:40] local.INFO: Attempting to find record with ID: caca9344-c1f8-4eef-bfe5-0c78f3120913  
[2026-07-31 10:53:40] local.INFO: Record not found, creating new with ID: caca9344-c1f8-4eef-bfe5-0c78f3120913  
[2026-07-31 10:53:40] local.INFO: Created record: {"id":"caca9344-c1f8-4eef-bfe5-0c78f3120913","type":"Debit","amount":"181974.00","rate":null,"lcy_amount":"181974.000000","narrative":"KES WITHDRAWAL","uniqid":"f1ecd381-0943-4430-9ff6-566076d88c2d","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:53:40.000000Z","created_at":"2026-07-31T07:53:40.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":2351397.0,"debit_total":7784199.700000000186264514923095703125,"credit_total":"5432802.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:53:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:41] local.INFO: Model: Journal  
[2026-07-31 10:53:41] local.INFO: Data received: {"id":"ce302857-b6d9-4dca-9c61-3fe501b1f09c","type":"Credit","amount":"39996.00","rate":null,"lcy_amount":"39996.000000","narrative":"KES ADDITION","uniqid":"94960036-a6be-4dfa-b2d9-498704d7f14a","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:50:50","updated_at":"2026-07-31 10:50:52"} 
[2026-07-31 10:53:41] local.INFO: ID present? YES  
[2026-07-31 10:53:41] local.INFO: ID value: ce302857-b6d9-4dca-9c61-3fe501b1f09c  
[2026-07-31 10:53:41] local.INFO: ID empty? NO  
[2026-07-31 10:53:41] local.INFO: Attempting to find record with ID: ce302857-b6d9-4dca-9c61-3fe501b1f09c  
[2026-07-31 10:53:41] local.INFO: Record not found, creating new with ID: ce302857-b6d9-4dca-9c61-3fe501b1f09c  
[2026-07-31 10:53:41] local.INFO: Created record: {"id":"ce302857-b6d9-4dca-9c61-3fe501b1f09c","type":"Credit","amount":"39996.00","rate":null,"lcy_amount":"39996.000000","narrative":"KES ADDITION","uniqid":"94960036-a6be-4dfa-b2d9-498704d7f14a","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:53:41.000000Z","created_at":"2026-07-31T07:53:41.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":2311401.0,"debit_total":"7784199.70","credit_total":5472798.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T07:53:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:53:43] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:43] local.INFO: Model: Journal  
[2026-07-31 10:53:43] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:43] local.INFO: ID present? YES  
[2026-07-31 10:53:43] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:43] local.INFO: ID empty? NO  
[2026-07-31 10:53:43] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:43] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:53:43, 2026-07-31 10:53:43))  
[2026-07-31 10:53:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:49] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:49] local.INFO: Model: Journal  
[2026-07-31 10:53:49] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:49] local.INFO: ID present? YES  
[2026-07-31 10:53:49] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:49] local.INFO: ID empty? NO  
[2026-07-31 10:53:49] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:49] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:53:49, 2026-07-31 10:53:49))  
[2026-07-31 10:53:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:53:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:53:55] local.INFO: Model: Journal  
[2026-07-31 10:53:55] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:53:55] local.INFO: ID present? YES  
[2026-07-31 10:53:55] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:55] local.INFO: ID empty? NO  
[2026-07-31 10:53:55] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:55] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:53:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:53:55, 2026-07-31 10:53:55))  
[2026-07-31 10:53:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:54:01] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:54:01] local.INFO: Model: Journal  
[2026-07-31 10:54:01] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:54:01] local.INFO: ID present? YES  
[2026-07-31 10:54:01] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:54:01] local.INFO: ID empty? NO  
[2026-07-31 10:54:01] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:54:01] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:54:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:54:01, 2026-07-31 10:54:01))  
[2026-07-31 10:54:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:54:03] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:54:03] local.INFO: Model: Journal  
[2026-07-31 10:54:03] local.INFO: Data received: {"id":"ed0f4190-d47d-4506-b3bd-0ba8bf5b7223","type":"Credit","amount":"181974.00","rate":null,"lcy_amount":"181974.000000","narrative":"KES WITHDRAWAL","uniqid":"f1ecd381-0943-4430-9ff6-566076d88c2d","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:50:14","updated_at":"2026-07-31 10:50:16"} 
[2026-07-31 10:54:03] local.INFO: ID present? YES  
[2026-07-31 10:54:03] local.INFO: ID value: ed0f4190-d47d-4506-b3bd-0ba8bf5b7223  
[2026-07-31 10:54:03] local.INFO: ID empty? NO  
[2026-07-31 10:54:03] local.INFO: Attempting to find record with ID: ed0f4190-d47d-4506-b3bd-0ba8bf5b7223  
[2026-07-31 10:54:03] local.INFO: Record not found, creating new with ID: ed0f4190-d47d-4506-b3bd-0ba8bf5b7223  
[2026-07-31 10:54:03] local.INFO: Created record: {"id":"ed0f4190-d47d-4506-b3bd-0ba8bf5b7223","type":"Credit","amount":"181974.00","rate":null,"lcy_amount":"181974.000000","narrative":"KES WITHDRAWAL","uniqid":"f1ecd381-0943-4430-9ff6-566076d88c2d","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:54:03.000000Z","created_at":"2026-07-31T07:54:03.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":956870.5,"debit_total":"20152322.20","credit_total":19195451.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T07:52:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:54:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:54:04] local.INFO: Model: Journal  
[2026-07-31 10:54:04] local.INFO: Data received: {"id":"f69cfb26-b8c1-4f52-9947-9fe88d184a8b","type":"Credit","amount":"128500.00","rate":"128.500000","lcy_amount":"128500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:51:24","updated_at":"2026-07-31 10:51:24"} 
[2026-07-31 10:54:04] local.INFO: ID present? YES  
[2026-07-31 10:54:04] local.INFO: ID value: f69cfb26-b8c1-4f52-9947-9fe88d184a8b  
[2026-07-31 10:54:04] local.INFO: ID empty? NO  
[2026-07-31 10:54:04] local.INFO: Attempting to find record with ID: f69cfb26-b8c1-4f52-9947-9fe88d184a8b  
[2026-07-31 10:54:04] local.INFO: Record not found, creating new with ID: f69cfb26-b8c1-4f52-9947-9fe88d184a8b  
[2026-07-31 10:54:04] local.INFO: Created record: {"id":"f69cfb26-b8c1-4f52-9947-9fe88d184a8b","type":"Credit","amount":"128500.00","rate":"128.500000","lcy_amount":"128500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8f3bd466-8474-4b09-abd6-5c9a4a475318","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8f3bd466-8474-4b09-abd6-5c9a4a475318","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:54:04.000000Z","created_at":"2026-07-31T07:54:04.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":828370.5,"debit_total":"20152322.20","credit_total":19323951.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T07:54:03.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:58:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:58:51] local.INFO: Model: Transaction  
[2026-07-31 10:58:51] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:58:51] local.INFO: ID present? YES  
[2026-07-31 10:58:51] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:58:51] local.INFO: ID empty? NO  
[2026-07-31 10:58:51] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:58:51] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:58:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:58:51, 2026-07-31 10:58:51))  
[2026-07-31 10:58:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:58:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:58:57] local.INFO: Model: Transaction  
[2026-07-31 10:58:57] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:58:57] local.INFO: ID present? YES  
[2026-07-31 10:58:57] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:58:57] local.INFO: ID empty? NO  
[2026-07-31 10:58:57] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:58:57] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:58:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:58:57, 2026-07-31 10:58:57))  
[2026-07-31 10:58:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:03] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:03] local.INFO: Model: Transaction  
[2026-07-31 10:59:03] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:03] local.INFO: ID present? YES  
[2026-07-31 10:59:03] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:59:03] local.INFO: ID empty? NO  
[2026-07-31 10:59:03] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:59:03] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:59:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:59:03, 2026-07-31 10:59:03))  
[2026-07-31 10:59:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:09] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:09] local.INFO: Model: Transaction  
[2026-07-31 10:59:09] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:09] local.INFO: ID present? YES  
[2026-07-31 10:59:09] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:59:09] local.INFO: ID empty? NO  
[2026-07-31 10:59:09] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:59:09] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 10:59:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 10:59:09, 2026-07-31 10:59:09))  
[2026-07-31 10:59:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:11] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:11] local.INFO: Model: Transaction  
[2026-07-31 10:59:11] local.INFO: Data received: {"id":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3601-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 10:56:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"95f22f46-f6cc-4805-a95c-cff0c78d13bf","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-31 10:56:38","updated_at":"2026-07-31 10:56:41"} 
[2026-07-31 10:59:11] local.INFO: ID present? YES  
[2026-07-31 10:59:11] local.INFO: ID value: 803aa9ab-42dc-494d-b173-52055eb61529  
[2026-07-31 10:59:11] local.INFO: ID empty? NO  
[2026-07-31 10:59:11] local.INFO: Attempting to find record with ID: 803aa9ab-42dc-494d-b173-52055eb61529  
[2026-07-31 10:59:11] local.INFO: Record not found, creating new with ID: 803aa9ab-42dc-494d-b173-52055eb61529  
[2026-07-31 10:59:11] local.INFO: Created record: {"id":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3601-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 10:56:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"95f22f46-f6cc-4805-a95c-cff0c78d13bf","cancellation_reason":null,"customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-31T07:59:11.000000Z","created_at":"2026-07-31T07:59:11.000000Z"} 
[2026-07-31 10:59:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:12] local.INFO: Model: Journal  
[2026-07-31 10:59:12] local.INFO: Data received: {"id":"00b738b3-35d6-4a70-9952-117ecc44db2a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"803aa9ab-42dc-494d-b173-52055eb61529","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:56:41","updated_at":"2026-07-31 10:56:41"} 
[2026-07-31 10:59:12] local.INFO: ID present? YES  
[2026-07-31 10:59:12] local.INFO: ID value: 00b738b3-35d6-4a70-9952-117ecc44db2a  
[2026-07-31 10:59:12] local.INFO: ID empty? NO  
[2026-07-31 10:59:12] local.INFO: Attempting to find record with ID: 00b738b3-35d6-4a70-9952-117ecc44db2a  
[2026-07-31 10:59:12] local.INFO: Record not found, creating new with ID: 00b738b3-35d6-4a70-9952-117ecc44db2a  
[2026-07-31 10:59:12] local.INFO: Created record: {"id":"00b738b3-35d6-4a70-9952-117ecc44db2a","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"803aa9ab-42dc-494d-b173-52055eb61529","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:59:12.000000Z","created_at":"2026-07-31T07:59:12.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":802870.5,"debit_total":"20152322.20","credit_total":19349451.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T07:54:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:59:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:13] local.INFO: Model: Journal  
[2026-07-31 10:59:13] local.INFO: Data received: {"id":"3cdeff0b-4604-4b2b-b058-4a590e2ad988","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3601-2026","uniqid":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"803aa9ab-42dc-494d-b173-52055eb61529","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 10:56:41","updated_at":"2026-07-31 10:56:41"} 
[2026-07-31 10:59:13] local.INFO: ID present? YES  
[2026-07-31 10:59:13] local.INFO: ID value: 3cdeff0b-4604-4b2b-b058-4a590e2ad988  
[2026-07-31 10:59:13] local.INFO: ID empty? NO  
[2026-07-31 10:59:13] local.INFO: Attempting to find record with ID: 3cdeff0b-4604-4b2b-b058-4a590e2ad988  
[2026-07-31 10:59:13] local.INFO: Record not found, creating new with ID: 3cdeff0b-4604-4b2b-b058-4a590e2ad988  
[2026-07-31 10:59:13] local.INFO: Created record: {"id":"3cdeff0b-4604-4b2b-b058-4a590e2ad988","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3601-2026","uniqid":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"803aa9ab-42dc-494d-b173-52055eb61529","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T07:59:13.000000Z","created_at":"2026-07-31T07:59:13.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-113294.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":120606.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T07:53:19.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 10:59:14] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:14] local.INFO: Model: Journal  
[2026-07-31 10:59:14] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:14] local.INFO: ID present? YES  
[2026-07-31 10:59:14] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:14] local.INFO: ID empty? NO  
[2026-07-31 10:59:14] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:14] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:59:14, 2026-07-31 10:59:14))  
[2026-07-31 10:59:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:21] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:21] local.INFO: Model: Journal  
[2026-07-31 10:59:21] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:21] local.INFO: ID present? YES  
[2026-07-31 10:59:21] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:21] local.INFO: ID empty? NO  
[2026-07-31 10:59:21] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:21] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:59:21, 2026-07-31 10:59:21))  
[2026-07-31 10:59:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:27] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:27] local.INFO: Model: Journal  
[2026-07-31 10:59:27] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:27] local.INFO: ID present? YES  
[2026-07-31 10:59:27] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:27] local.INFO: ID empty? NO  
[2026-07-31 10:59:27] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:27] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:59:27, 2026-07-31 10:59:27))  
[2026-07-31 10:59:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:33] local.INFO: Model: Journal  
[2026-07-31 10:59:33] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:33] local.INFO: ID present? YES  
[2026-07-31 10:59:33] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:33] local.INFO: ID empty? NO  
[2026-07-31 10:59:33] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:33] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 10:59:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 10:59:33, 2026-07-31 10:59:33))  
[2026-07-31 10:59:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:34] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:34] local.INFO: Model: Journal  
[2026-07-31 10:59:34] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:34] local.INFO: ID present? YES  
[2026-07-31 10:59:34] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:34] local.INFO: ID empty? NO  
[2026-07-31 10:59:34] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:34] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:59:34, 2026-07-31 10:59:34))  
[2026-07-31 10:59:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:41] local.INFO: Model: Journal  
[2026-07-31 10:59:41] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:41] local.INFO: ID present? YES  
[2026-07-31 10:59:41] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:41] local.INFO: ID empty? NO  
[2026-07-31 10:59:41] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:41] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:59:41, 2026-07-31 10:59:41))  
[2026-07-31 10:59:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:47] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:47] local.INFO: Model: Journal  
[2026-07-31 10:59:47] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:47] local.INFO: ID present? YES  
[2026-07-31 10:59:47] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:47] local.INFO: ID empty? NO  
[2026-07-31 10:59:47] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:47] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:59:47, 2026-07-31 10:59:47))  
[2026-07-31 10:59:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:53] local.INFO: Model: Journal  
[2026-07-31 10:59:53] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:53] local.INFO: ID present? YES  
[2026-07-31 10:59:53] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:53] local.INFO: ID empty? NO  
[2026-07-31 10:59:53] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:53] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 10:59:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:59:53, 2026-07-31 10:59:53))  
[2026-07-31 10:59:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 10:59:54] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:54] local.INFO: Model: Journal  
[2026-07-31 10:59:54] local.INFO: Data received: {"id":"c0fc88d8-ef3b-4a2e-9acf-4ab405df64c0","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"803aa9ab-42dc-494d-b173-52055eb61529","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 10:56:41","updated_at":"2026-07-31 10:56:41"} 
[2026-07-31 10:59:54] local.INFO: ID present? YES  
[2026-07-31 10:59:54] local.INFO: ID value: c0fc88d8-ef3b-4a2e-9acf-4ab405df64c0  
[2026-07-31 10:59:54] local.INFO: ID empty? NO  
[2026-07-31 10:59:54] local.INFO: Attempting to find record with ID: c0fc88d8-ef3b-4a2e-9acf-4ab405df64c0  
[2026-07-31 10:59:54] local.INFO: Record not found, creating new with ID: c0fc88d8-ef3b-4a2e-9acf-4ab405df64c0  
[2026-07-31 10:59:54] local.INFO: Created record: {"id":"c0fc88d8-ef3b-4a2e-9acf-4ab405df64c0","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"803aa9ab-42dc-494d-b173-52055eb61529","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"803aa9ab-42dc-494d-b173-52055eb61529","customer_id":"65465c22-a13e-4bd0-9fe9-09d818e8f5a6","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T07:59:54.000000Z","created_at":"2026-07-31T07:59:54.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":538.1100000000000136424205265939235687255859375,"debit_total":70887.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T07:52:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 10:59:56] local.INFO: === SYNC DEBUG ===  
[2026-07-31 10:59:56] local.INFO: Model: Journal  
[2026-07-31 10:59:56] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 10:59:56] local.INFO: ID present? YES  
[2026-07-31 10:59:56] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:59:56] local.INFO: ID empty? NO  
[2026-07-31 10:59:56] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:59:56] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 10:59:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 10:59:56, 2026-07-31 10:59:56))  
[2026-07-31 10:59:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:00:02] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:00:02] local.INFO: Model: Journal  
[2026-07-31 11:00:02] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:00:02] local.INFO: ID present? YES  
[2026-07-31 11:00:02] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:02] local.INFO: ID empty? NO  
[2026-07-31 11:00:02] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:02] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:00:02, 2026-07-31 11:00:02))  
[2026-07-31 11:00:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:00:08] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:00:08] local.INFO: Model: Journal  
[2026-07-31 11:00:08] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:00:08] local.INFO: ID present? YES  
[2026-07-31 11:00:08] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:08] local.INFO: ID empty? NO  
[2026-07-31 11:00:08] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:08] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:00:08, 2026-07-31 11:00:08))  
[2026-07-31 11:00:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:00:14] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:00:14] local.INFO: Model: Journal  
[2026-07-31 11:00:14] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:00:14] local.INFO: ID present? YES  
[2026-07-31 11:00:14] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:14] local.INFO: ID empty? NO  
[2026-07-31 11:00:14] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:14] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:00:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:00:14, 2026-07-31 11:00:14))  
[2026-07-31 11:00:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:02:22] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:02:22] local.INFO: Model: Transaction  
[2026-07-31 11:02:22] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:02:22] local.INFO: ID present? YES  
[2026-07-31 11:02:22] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:22] local.INFO: ID empty? NO  
[2026-07-31 11:02:22] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:22] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:02:22, 2026-07-31 11:02:22))  
[2026-07-31 11:02:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:02:28] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:02:28] local.INFO: Model: Transaction  
[2026-07-31 11:02:28] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:02:28] local.INFO: ID present? YES  
[2026-07-31 11:02:28] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:28] local.INFO: ID empty? NO  
[2026-07-31 11:02:28] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:28] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:02:28, 2026-07-31 11:02:28))  
[2026-07-31 11:02:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:02:35] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:02:35] local.INFO: Model: Transaction  
[2026-07-31 11:02:35] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:02:35] local.INFO: ID present? YES  
[2026-07-31 11:02:35] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:35] local.INFO: ID empty? NO  
[2026-07-31 11:02:35] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:35] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:02:35, 2026-07-31 11:02:35))  
[2026-07-31 11:02:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:02:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:02:41] local.INFO: Model: Transaction  
[2026-07-31 11:02:41] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:02:41] local.INFO: ID present? YES  
[2026-07-31 11:02:41] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:41] local.INFO: ID empty? NO  
[2026-07-31 11:02:41] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:41] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:02:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:02:41, 2026-07-31 11:02:41))  
[2026-07-31 11:02:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:02:42] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:02:42] local.INFO: Model: Journal  
[2026-07-31 11:02:42] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:02:42] local.INFO: ID present? YES  
[2026-07-31 11:02:42] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:42] local.INFO: ID empty? NO  
[2026-07-31 11:02:42] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:42] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:02:42, 2026-07-31 11:02:42))  
[2026-07-31 11:02:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:02:48] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:02:48] local.INFO: Model: Journal  
[2026-07-31 11:02:48] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:02:48] local.INFO: ID present? YES  
[2026-07-31 11:02:48] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:48] local.INFO: ID empty? NO  
[2026-07-31 11:02:48] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:48] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:02:48, 2026-07-31 11:02:48))  
[2026-07-31 11:02:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:02:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:02:55] local.INFO: Model: Journal  
[2026-07-31 11:02:55] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:02:55] local.INFO: ID present? YES  
[2026-07-31 11:02:55] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:55] local.INFO: ID empty? NO  
[2026-07-31 11:02:55] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:55] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:02:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:02:55, 2026-07-31 11:02:55))  
[2026-07-31 11:02:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:01] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:01] local.INFO: Model: Journal  
[2026-07-31 11:03:01] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:01] local.INFO: ID present? YES  
[2026-07-31 11:03:01] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:03:01] local.INFO: ID empty? NO  
[2026-07-31 11:03:01] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:03:01] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:03:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:03:01, 2026-07-31 11:03:01))  
[2026-07-31 11:03:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:02] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:02] local.INFO: Model: Journal  
[2026-07-31 11:03:02] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:02] local.INFO: ID present? YES  
[2026-07-31 11:03:02] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:02] local.INFO: ID empty? NO  
[2026-07-31 11:03:02] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:02] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:02, 2026-07-31 11:03:02))  
[2026-07-31 11:03:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:08] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:08] local.INFO: Model: Journal  
[2026-07-31 11:03:08] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:08] local.INFO: ID present? YES  
[2026-07-31 11:03:08] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:08] local.INFO: ID empty? NO  
[2026-07-31 11:03:08] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:08] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:08, 2026-07-31 11:03:08))  
[2026-07-31 11:03:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:15] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:15] local.INFO: Model: Journal  
[2026-07-31 11:03:15] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:15] local.INFO: ID present? YES  
[2026-07-31 11:03:15] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:15] local.INFO: ID empty? NO  
[2026-07-31 11:03:15] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:15] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:15, 2026-07-31 11:03:15))  
[2026-07-31 11:03:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:21] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:21] local.INFO: Model: Journal  
[2026-07-31 11:03:21] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:21] local.INFO: ID present? YES  
[2026-07-31 11:03:21] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:21] local.INFO: ID empty? NO  
[2026-07-31 11:03:21] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:21] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:03:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:21, 2026-07-31 11:03:21))  
[2026-07-31 11:03:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:22] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:22] local.INFO: Model: Journal  
[2026-07-31 11:03:22] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:22] local.INFO: ID present? YES  
[2026-07-31 11:03:22] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:22] local.INFO: ID empty? NO  
[2026-07-31 11:03:22] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:22] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:22, 2026-07-31 11:03:22))  
[2026-07-31 11:03:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:29] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:29] local.INFO: Model: Journal  
[2026-07-31 11:03:29] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:29] local.INFO: ID present? YES  
[2026-07-31 11:03:29] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:29] local.INFO: ID empty? NO  
[2026-07-31 11:03:29] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:29] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:29, 2026-07-31 11:03:29))  
[2026-07-31 11:03:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:35] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:35] local.INFO: Model: Journal  
[2026-07-31 11:03:35] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:35] local.INFO: ID present? YES  
[2026-07-31 11:03:35] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:35] local.INFO: ID empty? NO  
[2026-07-31 11:03:35] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:35] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:35, 2026-07-31 11:03:35))  
[2026-07-31 11:03:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:03:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:03:41] local.INFO: Model: Journal  
[2026-07-31 11:03:41] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:03:41] local.INFO: ID present? YES  
[2026-07-31 11:03:41] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:41] local.INFO: ID empty? NO  
[2026-07-31 11:03:41] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:41] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:03:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:03:41, 2026-07-31 11:03:41))  
[2026-07-31 11:03:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:43:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:43:41] local.INFO: Model: Customer  
[2026-07-31 11:43:41] local.INFO: Data received: {"id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","first_name":"SVETLANA","last_name":"VOLNYKH","sur_name":null,"phone":"154215451","calling_code":"+55","email":null,"residence":"undefined","id_type":"Passport","id_number":"667763470","nationality":"Russian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-31 11:40:11","updated_at":"2026-07-31 11:40:11"} 
[2026-07-31 11:43:41] local.INFO: ID present? YES  
[2026-07-31 11:43:41] local.INFO: ID value: 4257d8fa-ba72-4e38-86d3-7b08d85c6bce  
[2026-07-31 11:43:41] local.INFO: ID empty? NO  
[2026-07-31 11:43:41] local.INFO: Attempting to find record with ID: 4257d8fa-ba72-4e38-86d3-7b08d85c6bce  
[2026-07-31 11:43:41] local.INFO: Record not found, creating new with ID: 4257d8fa-ba72-4e38-86d3-7b08d85c6bce  
[2026-07-31 11:43:41] local.INFO: Created record: {"id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","first_name":"SVETLANA","last_name":"VOLNYKH","sur_name":null,"phone":"154215451","calling_code":"+55","email":null,"residence":"undefined","id_type":"Passport","id_number":"667763470","nationality":"Russian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-31T08:43:41.000000Z","created_at":"2026-07-31T08:43:41.000000Z"} 
[2026-07-31 11:43:43] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:43:43] local.INFO: Model: Customer  
[2026-07-31 11:43:43] local.INFO: Data received: {"id":"bef3205f-3142-4e7c-b452-b4c633359901","first_name":"FAITH","last_name":"NABAKOOZA","sur_name":null,"phone":"412487122","calling_code":"+266","email":null,"residence":"undefined","id_type":"Passport","id_number":"A00817949","nationality":"Ugandan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-31 11:38:17","updated_at":"2026-07-31 11:38:17"} 
[2026-07-31 11:43:43] local.INFO: ID present? YES  
[2026-07-31 11:43:43] local.INFO: ID value: bef3205f-3142-4e7c-b452-b4c633359901  
[2026-07-31 11:43:43] local.INFO: ID empty? NO  
[2026-07-31 11:43:43] local.INFO: Attempting to find record with ID: bef3205f-3142-4e7c-b452-b4c633359901  
[2026-07-31 11:43:43] local.INFO: Record not found, creating new with ID: bef3205f-3142-4e7c-b452-b4c633359901  
[2026-07-31 11:43:43] local.INFO: Created record: {"id":"bef3205f-3142-4e7c-b452-b4c633359901","first_name":"FAITH","last_name":"NABAKOOZA","sur_name":null,"phone":"412487122","calling_code":"+266","email":null,"residence":"undefined","id_type":"Passport","id_number":"A00817949","nationality":"Ugandan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-31T08:43:43.000000Z","created_at":"2026-07-31T08:43:43.000000Z"} 
[2026-07-31 11:43:44] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:43:44] local.INFO: Model: Transaction  
[2026-07-31 11:43:44] local.INFO: Data received: {"id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3603-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 11:40:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"668b60f3-b3fc-47a6-8bc7-cc551753fdca","cancellation_reason":null,"customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-31 11:40:30","updated_at":"2026-07-31 11:40:35"} 
[2026-07-31 11:43:44] local.INFO: ID present? YES  
[2026-07-31 11:43:44] local.INFO: ID value: 68a5aae6-22b8-432a-826b-8acb93e99b4f  
[2026-07-31 11:43:44] local.INFO: ID empty? NO  
[2026-07-31 11:43:44] local.INFO: Attempting to find record with ID: 68a5aae6-22b8-432a-826b-8acb93e99b4f  
[2026-07-31 11:43:44] local.INFO: Record not found, creating new with ID: 68a5aae6-22b8-432a-826b-8acb93e99b4f  
[2026-07-31 11:43:44] local.INFO: Created record: {"id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3603-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 11:40:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"668b60f3-b3fc-47a6-8bc7-cc551753fdca","cancellation_reason":null,"customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-31T08:43:44.000000Z","created_at":"2026-07-31T08:43:44.000000Z"} 
[2026-07-31 11:43:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:43:45] local.INFO: Model: Transaction  
[2026-07-31 11:43:45] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:43:45] local.INFO: ID present? YES  
[2026-07-31 11:43:45] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:45] local.INFO: ID empty? NO  
[2026-07-31 11:43:45] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:45] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:43:45, 2026-07-31 11:43:45))  
[2026-07-31 11:43:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:43:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:43:51] local.INFO: Model: Transaction  
[2026-07-31 11:43:51] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:43:51] local.INFO: ID present? YES  
[2026-07-31 11:43:51] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:51] local.INFO: ID empty? NO  
[2026-07-31 11:43:51] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:51] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:43:51, 2026-07-31 11:43:51))  
[2026-07-31 11:43:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:43:58] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:43:58] local.INFO: Model: Transaction  
[2026-07-31 11:43:58] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:43:58] local.INFO: ID present? YES  
[2026-07-31 11:43:58] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:58] local.INFO: ID empty? NO  
[2026-07-31 11:43:58] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:58] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:43:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:43:58, 2026-07-31 11:43:58))  
[2026-07-31 11:43:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:04] local.INFO: Model: Transaction  
[2026-07-31 11:44:04] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:04] local.INFO: ID present? YES  
[2026-07-31 11:44:04] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:44:04] local.INFO: ID empty? NO  
[2026-07-31 11:44:04] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:44:04] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 11:44:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 11:44:04, 2026-07-31 11:44:04))  
[2026-07-31 11:44:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:05] local.INFO: Model: Transaction  
[2026-07-31 11:44:05] local.INFO: Data received: {"id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3602-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 11:38:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"af1c7d0b-7710-48eb-b1c0-1caaab55a73d","cancellation_reason":null,"customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-31 11:38:28","updated_at":"2026-07-31 11:38:31"} 
[2026-07-31 11:44:05] local.INFO: ID present? YES  
[2026-07-31 11:44:05] local.INFO: ID value: e19ca0b7-1ae0-42e9-ba08-b80bccff339d  
[2026-07-31 11:44:05] local.INFO: ID empty? NO  
[2026-07-31 11:44:05] local.INFO: Attempting to find record with ID: e19ca0b7-1ae0-42e9-ba08-b80bccff339d  
[2026-07-31 11:44:05] local.INFO: Record not found, creating new with ID: e19ca0b7-1ae0-42e9-ba08-b80bccff339d  
[2026-07-31 11:44:05] local.INFO: Created record: {"id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3602-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 11:38:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"af1c7d0b-7710-48eb-b1c0-1caaab55a73d","cancellation_reason":null,"customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-31T08:44:05.000000Z","created_at":"2026-07-31T08:44:05.000000Z"} 
[2026-07-31 11:44:07] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:07] local.INFO: Model: Journal  
[2026-07-31 11:44:07] local.INFO: Data received: {"id":"0ea2d918-f46b-4028-b076-644f982bbaf4","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:38:31","updated_at":"2026-07-31 11:38:31"} 
[2026-07-31 11:44:07] local.INFO: ID present? YES  
[2026-07-31 11:44:07] local.INFO: ID value: 0ea2d918-f46b-4028-b076-644f982bbaf4  
[2026-07-31 11:44:07] local.INFO: ID empty? NO  
[2026-07-31 11:44:07] local.INFO: Attempting to find record with ID: 0ea2d918-f46b-4028-b076-644f982bbaf4  
[2026-07-31 11:44:07] local.INFO: Record not found, creating new with ID: 0ea2d918-f46b-4028-b076-644f982bbaf4  
[2026-07-31 11:44:07] local.INFO: Created record: {"id":"0ea2d918-f46b-4028-b076-644f982bbaf4","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T08:44:07.000000Z","created_at":"2026-07-31T08:44:07.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":726070.5,"debit_total":"20152322.20","credit_total":19426251.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T08:36:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 11:44:08] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:08] local.INFO: Model: Journal  
[2026-07-31 11:44:08] local.INFO: Data received: {"id":"4a503c0d-c476-4233-b332-dc4e2d18332b","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3602-2026","uniqid":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:38:31","updated_at":"2026-07-31 11:38:31"} 
[2026-07-31 11:44:08] local.INFO: ID present? YES  
[2026-07-31 11:44:08] local.INFO: ID value: 4a503c0d-c476-4233-b332-dc4e2d18332b  
[2026-07-31 11:44:08] local.INFO: ID empty? NO  
[2026-07-31 11:44:08] local.INFO: Attempting to find record with ID: 4a503c0d-c476-4233-b332-dc4e2d18332b  
[2026-07-31 11:44:08] local.INFO: Record not found, creating new with ID: 4a503c0d-c476-4233-b332-dc4e2d18332b  
[2026-07-31 11:44:08] local.INFO: Created record: {"id":"4a503c0d-c476-4233-b332-dc4e2d18332b","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3602-2026","uniqid":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T08:44:08.000000Z","created_at":"2026-07-31T08:44:08.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-113894.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":121206.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T08:36:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 11:44:09] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:09] local.INFO: Model: Journal  
[2026-07-31 11:44:09] local.INFO: Data received: {"id":"50e22a70-b6b4-4633-b972-cb024c7899d2","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:40:35","updated_at":"2026-07-31 11:40:35"} 
[2026-07-31 11:44:09] local.INFO: ID present? YES  
[2026-07-31 11:44:09] local.INFO: ID value: 50e22a70-b6b4-4633-b972-cb024c7899d2  
[2026-07-31 11:44:09] local.INFO: ID empty? NO  
[2026-07-31 11:44:09] local.INFO: Attempting to find record with ID: 50e22a70-b6b4-4633-b972-cb024c7899d2  
[2026-07-31 11:44:09] local.INFO: Record not found, creating new with ID: 50e22a70-b6b4-4633-b972-cb024c7899d2  
[2026-07-31 11:44:09] local.INFO: Created record: {"id":"50e22a70-b6b4-4633-b972-cb024c7899d2","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T08:44:09.000000Z","created_at":"2026-07-31T08:44:09.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":713320.5,"debit_total":"20152322.20","credit_total":19439001.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T08:44:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 11:44:10] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:10] local.INFO: Model: Journal  
[2026-07-31 11:44:10] local.INFO: Data received: {"id":"60877e03-c71c-48cf-a2a1-b52f6a668c7a","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 11:40:35","updated_at":"2026-07-31 11:40:35"} 
[2026-07-31 11:44:10] local.INFO: ID present? YES  
[2026-07-31 11:44:10] local.INFO: ID value: 60877e03-c71c-48cf-a2a1-b52f6a668c7a  
[2026-07-31 11:44:10] local.INFO: ID empty? NO  
[2026-07-31 11:44:10] local.INFO: Attempting to find record with ID: 60877e03-c71c-48cf-a2a1-b52f6a668c7a  
[2026-07-31 11:44:10] local.INFO: Record not found, creating new with ID: 60877e03-c71c-48cf-a2a1-b52f6a668c7a  
[2026-07-31 11:44:10] local.INFO: Created record: {"id":"60877e03-c71c-48cf-a2a1-b52f6a668c7a","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T08:44:10.000000Z","created_at":"2026-07-31T08:44:10.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":938.1100000000000136424205265939235687255859375,"debit_total":71287.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T08:36:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 11:44:11] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:11] local.INFO: Model: Journal  
[2026-07-31 11:44:11] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:11] local.INFO: ID present? YES  
[2026-07-31 11:44:11] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:11] local.INFO: ID empty? NO  
[2026-07-31 11:44:11] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:11] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:44:11, 2026-07-31 11:44:11))  
[2026-07-31 11:44:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:18] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:18] local.INFO: Model: Journal  
[2026-07-31 11:44:18] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:18] local.INFO: ID present? YES  
[2026-07-31 11:44:18] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:18] local.INFO: ID empty? NO  
[2026-07-31 11:44:18] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:18] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:44:18, 2026-07-31 11:44:18))  
[2026-07-31 11:44:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:24] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:24] local.INFO: Model: Journal  
[2026-07-31 11:44:24] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:24] local.INFO: ID present? YES  
[2026-07-31 11:44:24] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:24] local.INFO: ID empty? NO  
[2026-07-31 11:44:24] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:24] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:44:24, 2026-07-31 11:44:24))  
[2026-07-31 11:44:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:30] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:30] local.INFO: Model: Journal  
[2026-07-31 11:44:30] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:30] local.INFO: ID present? YES  
[2026-07-31 11:44:30] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:30] local.INFO: ID empty? NO  
[2026-07-31 11:44:30] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:30] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 11:44:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 11:44:30, 2026-07-31 11:44:30))  
[2026-07-31 11:44:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:31] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:31] local.INFO: Model: Journal  
[2026-07-31 11:44:31] local.INFO: Data received: {"id":"8def8956-8c46-4d5c-9d22-fa564d34133a","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 11:38:31","updated_at":"2026-07-31 11:38:31"} 
[2026-07-31 11:44:31] local.INFO: ID present? YES  
[2026-07-31 11:44:31] local.INFO: ID value: 8def8956-8c46-4d5c-9d22-fa564d34133a  
[2026-07-31 11:44:31] local.INFO: ID empty? NO  
[2026-07-31 11:44:31] local.INFO: Attempting to find record with ID: 8def8956-8c46-4d5c-9d22-fa564d34133a  
[2026-07-31 11:44:31] local.INFO: Record not found, creating new with ID: 8def8956-8c46-4d5c-9d22-fa564d34133a  
[2026-07-31 11:44:31] local.INFO: Created record: {"id":"8def8956-8c46-4d5c-9d22-fa564d34133a","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e19ca0b7-1ae0-42e9-ba08-b80bccff339d","customer_id":"bef3205f-3142-4e7c-b452-b4c633359901","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T08:44:31.000000Z","created_at":"2026-07-31T08:44:31.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1238.11000000000012732925824820995330810546875,"debit_total":71587.110000000000582076609134674072265625,"credit_total":"70349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T08:44:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 11:44:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:33] local.INFO: Model: Journal  
[2026-07-31 11:44:33] local.INFO: Data received: {"id":"a3817f6e-7358-4d23-9196-dc9df30697da","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3603-2026","uniqid":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:40:35","updated_at":"2026-07-31 11:40:35"} 
[2026-07-31 11:44:33] local.INFO: ID present? YES  
[2026-07-31 11:44:33] local.INFO: ID value: a3817f6e-7358-4d23-9196-dc9df30697da  
[2026-07-31 11:44:33] local.INFO: ID empty? NO  
[2026-07-31 11:44:33] local.INFO: Attempting to find record with ID: a3817f6e-7358-4d23-9196-dc9df30697da  
[2026-07-31 11:44:33] local.INFO: Record not found, creating new with ID: a3817f6e-7358-4d23-9196-dc9df30697da  
[2026-07-31 11:44:33] local.INFO: Created record: {"id":"a3817f6e-7358-4d23-9196-dc9df30697da","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3603-2026","uniqid":"68a5aae6-22b8-432a-826b-8acb93e99b4f","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"68a5aae6-22b8-432a-826b-8acb93e99b4f","customer_id":"4257d8fa-ba72-4e38-86d3-7b08d85c6bce","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T08:44:33.000000Z","created_at":"2026-07-31T08:44:33.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-114044.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":121356.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T08:44:08.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 11:44:34] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:34] local.INFO: Model: Journal  
[2026-07-31 11:44:34] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:34] local.INFO: ID present? YES  
[2026-07-31 11:44:34] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:34] local.INFO: ID empty? NO  
[2026-07-31 11:44:34] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:34] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:44:34, 2026-07-31 11:44:34))  
[2026-07-31 11:44:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:40] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:40] local.INFO: Model: Journal  
[2026-07-31 11:44:40] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:40] local.INFO: ID present? YES  
[2026-07-31 11:44:40] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:40] local.INFO: ID empty? NO  
[2026-07-31 11:44:40] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:40] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:44:40, 2026-07-31 11:44:40))  
[2026-07-31 11:44:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:46] local.INFO: Model: Journal  
[2026-07-31 11:44:46] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:46] local.INFO: ID present? YES  
[2026-07-31 11:44:46] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:46] local.INFO: ID empty? NO  
[2026-07-31 11:44:46] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:46] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:44:46, 2026-07-31 11:44:46))  
[2026-07-31 11:44:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:53] local.INFO: Model: Journal  
[2026-07-31 11:44:53] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:53] local.INFO: ID present? YES  
[2026-07-31 11:44:53] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:53] local.INFO: ID empty? NO  
[2026-07-31 11:44:53] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:53] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 11:44:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:44:53, 2026-07-31 11:44:53))  
[2026-07-31 11:44:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:44:54] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:44:54] local.INFO: Model: Journal  
[2026-07-31 11:44:54] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:44:54] local.INFO: ID present? YES  
[2026-07-31 11:44:54] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:44:54] local.INFO: ID empty? NO  
[2026-07-31 11:44:54] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:44:54] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:44:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:44:54, 2026-07-31 11:44:54))  
[2026-07-31 11:44:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:45:00] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:45:00] local.INFO: Model: Journal  
[2026-07-31 11:45:00] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:45:00] local.INFO: ID present? YES  
[2026-07-31 11:45:00] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:00] local.INFO: ID empty? NO  
[2026-07-31 11:45:00] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:00] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:45:00, 2026-07-31 11:45:00))  
[2026-07-31 11:45:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:45:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:45:06] local.INFO: Model: Journal  
[2026-07-31 11:45:06] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:45:06] local.INFO: ID present? YES  
[2026-07-31 11:45:06] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:06] local.INFO: ID empty? NO  
[2026-07-31 11:45:06] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:06] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:45:06, 2026-07-31 11:45:06))  
[2026-07-31 11:45:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 11:45:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 11:45:13] local.INFO: Model: Journal  
[2026-07-31 11:45:13] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 11:45:13] local.INFO: ID present? YES  
[2026-07-31 11:45:13] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:13] local.INFO: ID empty? NO  
[2026-07-31 11:45:13] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:13] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 11:45:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 11:45:13, 2026-07-31 11:45:13))  
[2026-07-31 11:45:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:04:37] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:04:37] local.INFO: Model: Customer  
[2026-07-31 12:04:37] local.INFO: Data received: {"id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","first_name":"SHARON","last_name":"OGUYA","sur_name":null,"phone":"748670821","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"40121609","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-31 11:56:51","updated_at":"2026-07-31 11:56:51"} 
[2026-07-31 12:04:37] local.INFO: ID present? YES  
[2026-07-31 12:04:37] local.INFO: ID value: 9ff1d537-50f4-4cdb-93ec-7d87a50a5b92  
[2026-07-31 12:04:37] local.INFO: ID empty? NO  
[2026-07-31 12:04:37] local.INFO: Attempting to find record with ID: 9ff1d537-50f4-4cdb-93ec-7d87a50a5b92  
[2026-07-31 12:04:37] local.INFO: Record not found, creating new with ID: 9ff1d537-50f4-4cdb-93ec-7d87a50a5b92  
[2026-07-31 12:04:37] local.INFO: Created record: {"id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","first_name":"SHARON","last_name":"OGUYA","sur_name":null,"phone":"748670821","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"40121609","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-31T09:04:37.000000Z","created_at":"2026-07-31T09:04:37.000000Z"} 
[2026-07-31 12:04:38] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:04:38] local.INFO: Model: Transaction  
[2026-07-31 12:04:38] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:04:38] local.INFO: ID present? YES  
[2026-07-31 12:04:38] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:38] local.INFO: ID empty? NO  
[2026-07-31 12:04:38] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:38] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 12:04:38, 2026-07-31 12:04:38))  
[2026-07-31 12:04:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:04:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:04:45] local.INFO: Model: Transaction  
[2026-07-31 12:04:45] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:04:45] local.INFO: ID present? YES  
[2026-07-31 12:04:45] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:45] local.INFO: ID empty? NO  
[2026-07-31 12:04:45] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:45] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 12:04:45, 2026-07-31 12:04:45))  
[2026-07-31 12:04:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:04:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:04:51] local.INFO: Model: Transaction  
[2026-07-31 12:04:51] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:04:51] local.INFO: ID present? YES  
[2026-07-31 12:04:51] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:51] local.INFO: ID empty? NO  
[2026-07-31 12:04:51] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:51] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 12:04:51, 2026-07-31 12:04:51))  
[2026-07-31 12:04:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:04:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:04:57] local.INFO: Model: Transaction  
[2026-07-31 12:04:57] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:04:57] local.INFO: ID present? YES  
[2026-07-31 12:04:57] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:57] local.INFO: ID empty? NO  
[2026-07-31 12:04:57] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:57] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 12:04:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 12:04:57, 2026-07-31 12:04:57))  
[2026-07-31 12:04:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:04:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:04:59] local.INFO: Model: Transaction  
[2026-07-31 12:04:59] local.INFO: Data received: {"id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","type":"Buying","amount":110,"rate":145,"negotiated_rate":"0","amount_paid":15950,"amount_received":110,"narrative":null,"transaction_number":"TR-3604-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 11:56:58","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"80822200-de5b-4150-aa72-8fd71f55ef5d","cancellation_reason":null,"customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 11:56:57","updated_at":"2026-07-31 11:56:58"} 
[2026-07-31 12:04:59] local.INFO: ID present? YES  
[2026-07-31 12:04:59] local.INFO: ID value: aca9f7db-1783-46ed-90e6-8cdd9ba08de9  
[2026-07-31 12:04:59] local.INFO: ID empty? NO  
[2026-07-31 12:04:59] local.INFO: Attempting to find record with ID: aca9f7db-1783-46ed-90e6-8cdd9ba08de9  
[2026-07-31 12:04:59] local.INFO: Record not found, creating new with ID: aca9f7db-1783-46ed-90e6-8cdd9ba08de9  
[2026-07-31 12:04:59] local.INFO: Created record: {"id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","type":"Buying","amount":110,"rate":145,"negotiated_rate":"0","amount_paid":15950,"amount_received":110,"narrative":null,"transaction_number":"TR-3604-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 11:56:58","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"80822200-de5b-4150-aa72-8fd71f55ef5d","cancellation_reason":null,"customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-31T09:04:59.000000Z","created_at":"2026-07-31T09:04:59.000000Z"} 
[2026-07-31 12:05:00] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:00] local.INFO: Model: Journal  
[2026-07-31 12:05:00] local.INFO: Data received: {"id":"28ee170b-c12d-4a08-90a8-13745dac978c","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"62a2582b-75d7-42be-8329-ef11562c508f","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:48:09","updated_at":"2026-07-31 11:48:12"} 
[2026-07-31 12:05:00] local.INFO: ID present? YES  
[2026-07-31 12:05:00] local.INFO: ID value: 28ee170b-c12d-4a08-90a8-13745dac978c  
[2026-07-31 12:05:00] local.INFO: ID empty? NO  
[2026-07-31 12:05:00] local.INFO: Attempting to find record with ID: 28ee170b-c12d-4a08-90a8-13745dac978c  
[2026-07-31 12:05:00] local.INFO: Record not found, creating new with ID: 28ee170b-c12d-4a08-90a8-13745dac978c  
[2026-07-31 12:05:00] local.INFO: Created record: {"id":"28ee170b-c12d-4a08-90a8-13745dac978c","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"62a2582b-75d7-42be-8329-ef11562c508f","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T09:05:00.000000Z","created_at":"2026-07-31T09:05:00.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":713260.5,"debit_total":"20152322.20","credit_total":19439061.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T08:44:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 12:05:02] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:02] local.INFO: Model: Journal  
[2026-07-31 12:05:02] local.INFO: Data received: {"id":"318e1e93-0c44-47ba-9537-b3e4eb601460","type":"Credit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 31-07-2026","uniqid":"fd0fc945-62a3-4bb0-82b0-6cb9bd753ed5","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:51:09","updated_at":"2026-07-31 11:51:11"} 
[2026-07-31 12:05:02] local.INFO: ID present? YES  
[2026-07-31 12:05:02] local.INFO: ID value: 318e1e93-0c44-47ba-9537-b3e4eb601460  
[2026-07-31 12:05:02] local.INFO: ID empty? NO  
[2026-07-31 12:05:02] local.INFO: Attempting to find record with ID: 318e1e93-0c44-47ba-9537-b3e4eb601460  
[2026-07-31 12:05:02] local.INFO: Record not found, creating new with ID: 318e1e93-0c44-47ba-9537-b3e4eb601460  
[2026-07-31 12:05:02] local.INFO: Created record: {"id":"318e1e93-0c44-47ba-9537-b3e4eb601460","type":"Credit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 31-07-2026","uniqid":"fd0fc945-62a3-4bb0-82b0-6cb9bd753ed5","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T09:05:02.000000Z","created_at":"2026-07-31T09:05:02.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":-1096938.0,"debit_total":"74447077.00","credit_total":75544015.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-31T08:30:42.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-31 12:05:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:04] local.INFO: Model: Journal  
[2026-07-31 12:05:04] local.INFO: Data received: {"id":"334fc3d4-ecc6-40e3-91e0-c1132090d3d3","type":"Credit","amount":"15950.00","rate":"145.000000","lcy_amount":"15950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:56:58","updated_at":"2026-07-31 11:56:58"} 
[2026-07-31 12:05:04] local.INFO: ID present? YES  
[2026-07-31 12:05:04] local.INFO: ID value: 334fc3d4-ecc6-40e3-91e0-c1132090d3d3  
[2026-07-31 12:05:04] local.INFO: ID empty? NO  
[2026-07-31 12:05:04] local.INFO: Attempting to find record with ID: 334fc3d4-ecc6-40e3-91e0-c1132090d3d3  
[2026-07-31 12:05:04] local.INFO: Record not found, creating new with ID: 334fc3d4-ecc6-40e3-91e0-c1132090d3d3  
[2026-07-31 12:05:04] local.INFO: Created record: {"id":"334fc3d4-ecc6-40e3-91e0-c1132090d3d3","type":"Credit","amount":"15950.00","rate":"145.000000","lcy_amount":"15950.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T09:05:04.000000Z","created_at":"2026-07-31T09:05:04.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":697310.5,"debit_total":"20152322.20","credit_total":19455011.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T09:05:00.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 12:05:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:05] local.INFO: Model: Journal  
[2026-07-31 12:05:05] local.INFO: Data received: {"id":"4ecc47b0-1466-410f-8734-d79446df469d","type":"Credit","amount":"682.00","rate":"145.000000","lcy_amount":"682.000000","narrative":"Gain on TR-3604-2026","uniqid":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:56:58","updated_at":"2026-07-31 11:56:58"} 
[2026-07-31 12:05:05] local.INFO: ID present? YES  
[2026-07-31 12:05:05] local.INFO: ID value: 4ecc47b0-1466-410f-8734-d79446df469d  
[2026-07-31 12:05:05] local.INFO: ID empty? NO  
[2026-07-31 12:05:05] local.INFO: Attempting to find record with ID: 4ecc47b0-1466-410f-8734-d79446df469d  
[2026-07-31 12:05:05] local.INFO: Record not found, creating new with ID: 4ecc47b0-1466-410f-8734-d79446df469d  
[2026-07-31 12:05:05] local.INFO: Created record: {"id":"4ecc47b0-1466-410f-8734-d79446df469d","type":"Credit","amount":"682.00","rate":"145.000000","lcy_amount":"682.000000","narrative":"Gain on TR-3604-2026","uniqid":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T09:05:05.000000Z","created_at":"2026-07-31T09:05:05.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-114726.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":122038.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T08:44:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 12:05:07] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:07] local.INFO: Model: Journal  
[2026-07-31 12:05:07] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:07] local.INFO: ID present? YES  
[2026-07-31 12:05:07] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:07] local.INFO: ID empty? NO  
[2026-07-31 12:05:07] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:07] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 12:05:07, 2026-07-31 12:05:07))  
[2026-07-31 12:05:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:13] local.INFO: Model: Journal  
[2026-07-31 12:05:13] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:13] local.INFO: ID present? YES  
[2026-07-31 12:05:13] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:13] local.INFO: ID empty? NO  
[2026-07-31 12:05:13] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:13] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 12:05:13, 2026-07-31 12:05:13))  
[2026-07-31 12:05:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:19] local.INFO: Model: Journal  
[2026-07-31 12:05:19] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:19] local.INFO: ID present? YES  
[2026-07-31 12:05:19] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:19] local.INFO: ID empty? NO  
[2026-07-31 12:05:19] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:19] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 12:05:19, 2026-07-31 12:05:19))  
[2026-07-31 12:05:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:25] local.INFO: Model: Journal  
[2026-07-31 12:05:25] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:25] local.INFO: ID present? YES  
[2026-07-31 12:05:25] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:25] local.INFO: ID empty? NO  
[2026-07-31 12:05:25] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:26] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 12:05:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 12:05:26, 2026-07-31 12:05:26))  
[2026-07-31 12:05:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:27] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:27] local.INFO: Model: Journal  
[2026-07-31 12:05:27] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:27] local.INFO: ID present? YES  
[2026-07-31 12:05:27] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:27] local.INFO: ID empty? NO  
[2026-07-31 12:05:27] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:27] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:05:27, 2026-07-31 12:05:27))  
[2026-07-31 12:05:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:33] local.INFO: Model: Journal  
[2026-07-31 12:05:33] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:33] local.INFO: ID present? YES  
[2026-07-31 12:05:33] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:33] local.INFO: ID empty? NO  
[2026-07-31 12:05:33] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:33] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:05:33, 2026-07-31 12:05:33))  
[2026-07-31 12:05:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:39] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:39] local.INFO: Model: Journal  
[2026-07-31 12:05:39] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:39] local.INFO: ID present? YES  
[2026-07-31 12:05:39] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:39] local.INFO: ID empty? NO  
[2026-07-31 12:05:39] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:39] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:05:39, 2026-07-31 12:05:39))  
[2026-07-31 12:05:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:45] local.INFO: Model: Journal  
[2026-07-31 12:05:45] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:45] local.INFO: ID present? YES  
[2026-07-31 12:05:45] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:45] local.INFO: ID empty? NO  
[2026-07-31 12:05:45] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:45] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 12:05:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:05:45, 2026-07-31 12:05:45))  
[2026-07-31 12:05:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:47] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:47] local.INFO: Model: Journal  
[2026-07-31 12:05:47] local.INFO: Data received: {"id":"adc675e4-6e14-4a2a-a4fb-481cf9848642","type":"Debit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 31-07-2026","uniqid":"fd0fc945-62a3-4bb0-82b0-6cb9bd753ed5","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:51:09","updated_at":"2026-07-31 11:51:11"} 
[2026-07-31 12:05:47] local.INFO: ID present? YES  
[2026-07-31 12:05:47] local.INFO: ID value: adc675e4-6e14-4a2a-a4fb-481cf9848642  
[2026-07-31 12:05:47] local.INFO: ID empty? NO  
[2026-07-31 12:05:47] local.INFO: Attempting to find record with ID: adc675e4-6e14-4a2a-a4fb-481cf9848642  
[2026-07-31 12:05:47] local.INFO: Record not found, creating new with ID: adc675e4-6e14-4a2a-a4fb-481cf9848642  
[2026-07-31 12:05:47] local.INFO: Created record: {"id":"adc675e4-6e14-4a2a-a4fb-481cf9848642","type":"Debit","amount":"400000.00","rate":null,"lcy_amount":"400000.000000","narrative":"MPESA FLOAT 31-07-2026","uniqid":"fd0fc945-62a3-4bb0-82b0-6cb9bd753ed5","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T09:05:47.000000Z","created_at":"2026-07-31T09:05:47.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2162560.0,"debit_total":4563140.0,"credit_total":"6725700.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-28T17:25:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 12:05:48] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:48] local.INFO: Model: Journal  
[2026-07-31 12:05:48] local.INFO: Data received: {"id":"bf6b73a6-b1b4-4c4f-b18a-379296c72682","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"62a2582b-75d7-42be-8329-ef11562c508f","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 11:48:09","updated_at":"2026-07-31 11:48:12"} 
[2026-07-31 12:05:48] local.INFO: ID present? YES  
[2026-07-31 12:05:48] local.INFO: ID value: bf6b73a6-b1b4-4c4f-b18a-379296c72682  
[2026-07-31 12:05:48] local.INFO: ID empty? NO  
[2026-07-31 12:05:48] local.INFO: Attempting to find record with ID: bf6b73a6-b1b4-4c4f-b18a-379296c72682  
[2026-07-31 12:05:48] local.INFO: Record not found, creating new with ID: bf6b73a6-b1b4-4c4f-b18a-379296c72682  
[2026-07-31 12:05:48] local.INFO: Created record: {"id":"bf6b73a6-b1b4-4c4f-b18a-379296c72682","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"62a2582b-75d7-42be-8329-ef11562c508f","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T09:05:48.000000Z","created_at":"2026-07-31T09:05:48.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5530.0,"debit_total":5530.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:24:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 12:05:49] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:49] local.INFO: Model: Journal  
[2026-07-31 12:05:49] local.INFO: Data received: {"id":"c196e1b1-a90f-4713-962d-07bc67d2a5a5","type":"Debit","amount":"110.00","rate":"145.000000","lcy_amount":"16632.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 11:56:58","updated_at":"2026-07-31 11:56:58"} 
[2026-07-31 12:05:49] local.INFO: ID present? YES  
[2026-07-31 12:05:49] local.INFO: ID value: c196e1b1-a90f-4713-962d-07bc67d2a5a5  
[2026-07-31 12:05:49] local.INFO: ID empty? NO  
[2026-07-31 12:05:49] local.INFO: Attempting to find record with ID: c196e1b1-a90f-4713-962d-07bc67d2a5a5  
[2026-07-31 12:05:49] local.INFO: Record not found, creating new with ID: c196e1b1-a90f-4713-962d-07bc67d2a5a5  
[2026-07-31 12:05:49] local.INFO: Created record: {"id":"c196e1b1-a90f-4713-962d-07bc67d2a5a5","type":"Debit","amount":"110.00","rate":"145.000000","lcy_amount":"16632.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"aca9f7db-1783-46ed-90e6-8cdd9ba08de9","customer_id":"9ff1d537-50f4-4cdb-93ec-7d87a50a5b92","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-31T09:05:49.000000Z","created_at":"2026-07-31T09:05:49.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3785.0,"debit_total":18645.0,"credit_total":"22430.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-28T17:25:34.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 12:05:50] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:50] local.INFO: Model: Journal  
[2026-07-31 12:05:50] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:50] local.INFO: ID present? YES  
[2026-07-31 12:05:50] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:05:50] local.INFO: ID empty? NO  
[2026-07-31 12:05:50] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:05:50] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:05:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:05:50, 2026-07-31 12:05:50))  
[2026-07-31 12:05:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:05:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:05:57] local.INFO: Model: Journal  
[2026-07-31 12:05:57] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:05:57] local.INFO: ID present? YES  
[2026-07-31 12:05:57] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:05:57] local.INFO: ID empty? NO  
[2026-07-31 12:05:57] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:05:57] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:05:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:05:57, 2026-07-31 12:05:57))  
[2026-07-31 12:05:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:06:03] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:06:03] local.INFO: Model: Journal  
[2026-07-31 12:06:03] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:06:03] local.INFO: ID present? YES  
[2026-07-31 12:06:03] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:06:03] local.INFO: ID empty? NO  
[2026-07-31 12:06:03] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:06:03] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:06:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:06:03, 2026-07-31 12:06:03))  
[2026-07-31 12:06:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 12:06:09] local.INFO: === SYNC DEBUG ===  
[2026-07-31 12:06:09] local.INFO: Model: Journal  
[2026-07-31 12:06:09] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 12:06:09] local.INFO: ID present? YES  
[2026-07-31 12:06:09] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:06:09] local.INFO: ID empty? NO  
[2026-07-31 12:06:09] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:06:09] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 12:06:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 12:06:09, 2026-07-31 12:06:09))  
[2026-07-31 12:06:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:07:37] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:07:37] local.INFO: Model: Customer  
[2026-07-31 14:07:37] local.INFO: Data received: {"id":"f7493517-8550-4929-8f6d-5082a3947de5","first_name":"ALEKSANDER","last_name":"ALEKSIC","sur_name":null,"phone":"112454245","calling_code":"+389","email":null,"residence":"undefined","id_type":"Passport","id_number":"013208095","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-31 13:37:21","updated_at":"2026-07-31 13:37:21"} 
[2026-07-31 14:07:37] local.INFO: ID present? YES  
[2026-07-31 14:07:37] local.INFO: ID value: f7493517-8550-4929-8f6d-5082a3947de5  
[2026-07-31 14:07:37] local.INFO: ID empty? NO  
[2026-07-31 14:07:37] local.INFO: Attempting to find record with ID: f7493517-8550-4929-8f6d-5082a3947de5  
[2026-07-31 14:07:37] local.INFO: Record not found, creating new with ID: f7493517-8550-4929-8f6d-5082a3947de5  
[2026-07-31 14:07:37] local.INFO: Created record: {"id":"f7493517-8550-4929-8f6d-5082a3947de5","first_name":"ALEKSANDER","last_name":"ALEKSIC","sur_name":null,"phone":"112454245","calling_code":"+389","email":null,"residence":"undefined","id_type":"Passport","id_number":"013208095","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-31T11:07:37.000000Z","created_at":"2026-07-31T11:07:37.000000Z"} 
[2026-07-31 14:07:38] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:07:38] local.INFO: Model: Transaction  
[2026-07-31 14:07:38] local.INFO: Data received: {"id":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3605-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 13:37:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6ff019c7-2dbb-4acc-bb02-bfed6020084c","cancellation_reason":null,"customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-31 13:37:32","updated_at":"2026-07-31 13:37:33"} 
[2026-07-31 14:07:38] local.INFO: ID present? YES  
[2026-07-31 14:07:38] local.INFO: ID value: 348a7060-beba-437a-8322-f3e26ba10b4d  
[2026-07-31 14:07:38] local.INFO: ID empty? NO  
[2026-07-31 14:07:38] local.INFO: Attempting to find record with ID: 348a7060-beba-437a-8322-f3e26ba10b4d  
[2026-07-31 14:07:38] local.INFO: Record not found, creating new with ID: 348a7060-beba-437a-8322-f3e26ba10b4d  
[2026-07-31 14:07:38] local.INFO: Created record: {"id":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3605-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 13:37:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6ff019c7-2dbb-4acc-bb02-bfed6020084c","cancellation_reason":null,"customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-31T11:07:38.000000Z","created_at":"2026-07-31T11:07:38.000000Z"} 
[2026-07-31 14:07:40] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:07:40] local.INFO: Model: Transaction  
[2026-07-31 14:07:40] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:07:40] local.INFO: ID present? YES  
[2026-07-31 14:07:40] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:40] local.INFO: ID empty? NO  
[2026-07-31 14:07:40] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:40] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:07:40, 2026-07-31 14:07:40))  
[2026-07-31 14:07:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:07:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:07:46] local.INFO: Model: Transaction  
[2026-07-31 14:07:46] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:07:46] local.INFO: ID present? YES  
[2026-07-31 14:07:46] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:46] local.INFO: ID empty? NO  
[2026-07-31 14:07:46] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:46] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:07:46, 2026-07-31 14:07:46))  
[2026-07-31 14:07:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:07:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:07:52] local.INFO: Model: Transaction  
[2026-07-31 14:07:52] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:07:52] local.INFO: ID present? YES  
[2026-07-31 14:07:52] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:52] local.INFO: ID empty? NO  
[2026-07-31 14:07:52] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:52] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:07:52, 2026-07-31 14:07:52))  
[2026-07-31 14:07:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:07:58] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:07:58] local.INFO: Model: Transaction  
[2026-07-31 14:07:58] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:07:58] local.INFO: ID present? YES  
[2026-07-31 14:07:58] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:58] local.INFO: ID empty? NO  
[2026-07-31 14:07:58] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:58] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:07:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:07:58, 2026-07-31 14:07:58))  
[2026-07-31 14:07:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:03] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:03] local.INFO: Model: Transaction  
[2026-07-31 14:08:03] local.INFO: Data received: {"id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","type":"Selling","amount":7000,"rate":129.30000000000001136868377216160297393798828125,"negotiated_rate":"0","amount_paid":7000,"amount_received":905100,"narrative":null,"transaction_number":"TR-3606-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 13:40:08","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Business Proceeds / Sales","purpose":"FOREX BUSINESS","uniqid":null,"batch_id":"a4a69277-c10d-4dd7-9b7d-88cec8eec5ba","cancellation_reason":null,"customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-07-31 13:40:06","updated_at":"2026-07-31 13:40:08"} 
[2026-07-31 14:08:03] local.INFO: ID present? YES  
[2026-07-31 14:08:03] local.INFO: ID value: eef6c6a5-5678-44cc-ada4-21e96a195e84  
[2026-07-31 14:08:03] local.INFO: ID empty? NO  
[2026-07-31 14:08:03] local.INFO: Attempting to find record with ID: eef6c6a5-5678-44cc-ada4-21e96a195e84  
[2026-07-31 14:08:03] local.INFO: Record not found, creating new with ID: eef6c6a5-5678-44cc-ada4-21e96a195e84  
[2026-07-31 14:08:03] local.INFO: Created record: {"id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","type":"Selling","amount":7000,"rate":129.30000000000001136868377216160297393798828125,"negotiated_rate":"0","amount_paid":7000,"amount_received":905100,"narrative":null,"transaction_number":"TR-3606-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 13:40:08","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Business Proceeds / Sales","purpose":"FOREX BUSINESS","uniqid":null,"batch_id":"a4a69277-c10d-4dd7-9b7d-88cec8eec5ba","cancellation_reason":null,"customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-07-31T11:08:03.000000Z","created_at":"2026-07-31T11:08:03.000000Z"} 
[2026-07-31 14:08:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:04] local.INFO: Model: Journal  
[2026-07-31 14:08:04] local.INFO: Data received: {"id":"0d124bde-c7a8-41ac-b689-1ccbe1520a8b","type":"Credit","amount":"2100.00","rate":"129.300000","lcy_amount":"2100.000000","narrative":"Gain on TR-3606-2026","uniqid":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 13:40:08","updated_at":"2026-07-31 13:40:08"} 
[2026-07-31 14:08:04] local.INFO: ID present? YES  
[2026-07-31 14:08:04] local.INFO: ID value: 0d124bde-c7a8-41ac-b689-1ccbe1520a8b  
[2026-07-31 14:08:04] local.INFO: ID empty? NO  
[2026-07-31 14:08:04] local.INFO: Attempting to find record with ID: 0d124bde-c7a8-41ac-b689-1ccbe1520a8b  
[2026-07-31 14:08:04] local.INFO: Record not found, creating new with ID: 0d124bde-c7a8-41ac-b689-1ccbe1520a8b  
[2026-07-31 14:08:04] local.INFO: Created record: {"id":"0d124bde-c7a8-41ac-b689-1ccbe1520a8b","type":"Credit","amount":"2100.00","rate":"129.300000","lcy_amount":"2100.000000","narrative":"Gain on TR-3606-2026","uniqid":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:08:04.000000Z","created_at":"2026-07-31T11:08:04.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-116826.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":124138.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T09:05:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 14:08:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:05] local.INFO: Model: Journal  
[2026-07-31 14:08:05] local.INFO: Data received: {"id":"3701dc1e-72af-4651-bbf8-4432ba1e664f","type":"Credit","amount":"5300.00","rate":null,"lcy_amount":"683700.000000","narrative":"USD ADDITION","uniqid":"02b6008f-86e2-4df5-86b3-58b224c5d70d","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 13:40:40","updated_at":"2026-07-31 13:40:42"} 
[2026-07-31 14:08:05] local.INFO: ID present? YES  
[2026-07-31 14:08:05] local.INFO: ID value: 3701dc1e-72af-4651-bbf8-4432ba1e664f  
[2026-07-31 14:08:05] local.INFO: ID empty? NO  
[2026-07-31 14:08:05] local.INFO: Attempting to find record with ID: 3701dc1e-72af-4651-bbf8-4432ba1e664f  
[2026-07-31 14:08:05] local.INFO: Record not found, creating new with ID: 3701dc1e-72af-4651-bbf8-4432ba1e664f  
[2026-07-31 14:08:05] local.INFO: Created record: {"id":"3701dc1e-72af-4651-bbf8-4432ba1e664f","type":"Credit","amount":"5300.00","rate":null,"lcy_amount":"683700.000000","narrative":"USD ADDITION","uniqid":"02b6008f-86e2-4df5-86b3-58b224c5d70d","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T11:08:05.000000Z","created_at":"2026-07-31T11:08:05.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":-1.0,"debit_total":"35109.00","credit_total":35110.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:08:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:06] local.INFO: Model: Journal  
[2026-07-31 14:08:06] local.INFO: Data received: {"id":"3b97ba7c-8183-4a4b-b554-c52f6d714216","type":"Credit","amount":"7000.00","rate":"129.300000","lcy_amount":"903000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 13:40:08","updated_at":"2026-07-31 13:40:08"} 
[2026-07-31 14:08:06] local.INFO: ID present? YES  
[2026-07-31 14:08:06] local.INFO: ID value: 3b97ba7c-8183-4a4b-b554-c52f6d714216  
[2026-07-31 14:08:06] local.INFO: ID empty? NO  
[2026-07-31 14:08:06] local.INFO: Attempting to find record with ID: 3b97ba7c-8183-4a4b-b554-c52f6d714216  
[2026-07-31 14:08:06] local.INFO: Record not found, creating new with ID: 3b97ba7c-8183-4a4b-b554-c52f6d714216  
[2026-07-31 14:08:07] local.INFO: Created record: {"id":"3b97ba7c-8183-4a4b-b554-c52f6d714216","type":"Credit","amount":"7000.00","rate":"129.300000","lcy_amount":"903000.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T11:08:06.000000Z","created_at":"2026-07-31T11:08:06.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-5761.8900000000003274180926382541656494140625,"debit_total":"71587.11","credit_total":77349.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T08:44:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:08:08] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:08] local.INFO: Model: Journal  
[2026-07-31 14:08:08] local.INFO: Data received: {"id":"55a3424c-0c6f-4d3e-bfa2-7edcb36078a2","type":"Debit","amount":"905100.00","rate":"129.300000","lcy_amount":"905100.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 13:40:08","updated_at":"2026-07-31 13:40:08"} 
[2026-07-31 14:08:08] local.INFO: ID present? YES  
[2026-07-31 14:08:08] local.INFO: ID value: 55a3424c-0c6f-4d3e-bfa2-7edcb36078a2  
[2026-07-31 14:08:08] local.INFO: ID empty? NO  
[2026-07-31 14:08:08] local.INFO: Attempting to find record with ID: 55a3424c-0c6f-4d3e-bfa2-7edcb36078a2  
[2026-07-31 14:08:08] local.INFO: Record not found, creating new with ID: 55a3424c-0c6f-4d3e-bfa2-7edcb36078a2  
[2026-07-31 14:08:08] local.INFO: Created record: {"id":"55a3424c-0c6f-4d3e-bfa2-7edcb36078a2","type":"Debit","amount":"905100.00","rate":"129.300000","lcy_amount":"905100.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"eef6c6a5-5678-44cc-ada4-21e96a195e84","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"eef6c6a5-5678-44cc-ada4-21e96a195e84","customer_id":"8d49ab05-5a91-4fff-ad54-889aec68a607","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:08:08.000000Z","created_at":"2026-07-31T11:08:08.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1602410.5,"debit_total":21057422.1999999992549419403076171875,"credit_total":"19455011.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T09:05:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:08:09] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:09] local.INFO: Model: Journal  
[2026-07-31 14:08:09] local.INFO: Data received: {"id":"8559400c-d8f4-4830-8226-b0bc5a2dc7de","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3605-2026","uniqid":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"348a7060-beba-437a-8322-f3e26ba10b4d","customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 13:37:33","updated_at":"2026-07-31 13:37:33"} 
[2026-07-31 14:08:09] local.INFO: ID present? YES  
[2026-07-31 14:08:09] local.INFO: ID value: 8559400c-d8f4-4830-8226-b0bc5a2dc7de  
[2026-07-31 14:08:09] local.INFO: ID empty? NO  
[2026-07-31 14:08:09] local.INFO: Attempting to find record with ID: 8559400c-d8f4-4830-8226-b0bc5a2dc7de  
[2026-07-31 14:08:09] local.INFO: Record not found, creating new with ID: 8559400c-d8f4-4830-8226-b0bc5a2dc7de  
[2026-07-31 14:08:09] local.INFO: Created record: {"id":"8559400c-d8f4-4830-8226-b0bc5a2dc7de","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3605-2026","uniqid":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"348a7060-beba-437a-8322-f3e26ba10b4d","customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:08:09.000000Z","created_at":"2026-07-31T11:08:09.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-116976.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":124288.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T11:08:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 14:08:10] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:10] local.INFO: Model: Journal  
[2026-07-31 14:08:10] local.INFO: Data received: {"id":"8a776509-d64b-440a-abb9-d2e0df3db281","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"348a7060-beba-437a-8322-f3e26ba10b4d","customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 13:37:33","updated_at":"2026-07-31 13:37:33"} 
[2026-07-31 14:08:10] local.INFO: ID present? YES  
[2026-07-31 14:08:10] local.INFO: ID value: 8a776509-d64b-440a-abb9-d2e0df3db281  
[2026-07-31 14:08:10] local.INFO: ID empty? NO  
[2026-07-31 14:08:10] local.INFO: Attempting to find record with ID: 8a776509-d64b-440a-abb9-d2e0df3db281  
[2026-07-31 14:08:10] local.INFO: Record not found, creating new with ID: 8a776509-d64b-440a-abb9-d2e0df3db281  
[2026-07-31 14:08:10] local.INFO: Created record: {"id":"8a776509-d64b-440a-abb9-d2e0df3db281","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"348a7060-beba-437a-8322-f3e26ba10b4d","customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T11:08:10.000000Z","created_at":"2026-07-31T11:08:10.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-5661.8900000000003274180926382541656494140625,"debit_total":71687.110000000000582076609134674072265625,"credit_total":"77349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:08:07.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:08:11] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:11] local.INFO: Model: Journal  
[2026-07-31 14:08:11] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:11] local.INFO: ID present? YES  
[2026-07-31 14:08:11] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:11] local.INFO: ID empty? NO  
[2026-07-31 14:08:11] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:11] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:08:11, 2026-07-31 14:08:11))  
[2026-07-31 14:08:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:18] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:18] local.INFO: Model: Journal  
[2026-07-31 14:08:18] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:18] local.INFO: ID present? YES  
[2026-07-31 14:08:18] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:18] local.INFO: ID empty? NO  
[2026-07-31 14:08:18] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:18] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:08:18, 2026-07-31 14:08:18))  
[2026-07-31 14:08:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:24] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:24] local.INFO: Model: Journal  
[2026-07-31 14:08:24] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:24] local.INFO: ID present? YES  
[2026-07-31 14:08:24] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:24] local.INFO: ID empty? NO  
[2026-07-31 14:08:24] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:24] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:08:24, 2026-07-31 14:08:24))  
[2026-07-31 14:08:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:30] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:30] local.INFO: Model: Journal  
[2026-07-31 14:08:30] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:30] local.INFO: ID present? YES  
[2026-07-31 14:08:30] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:30] local.INFO: ID empty? NO  
[2026-07-31 14:08:30] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:30] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:08:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:08:30, 2026-07-31 14:08:30))  
[2026-07-31 14:08:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:31] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:31] local.INFO: Model: Journal  
[2026-07-31 14:08:31] local.INFO: Data received: {"id":"a6e514b3-239f-4f72-b4c9-3002194fcdf1","type":"Debit","amount":"5300.00","rate":null,"lcy_amount":"683700.000000","narrative":"USD ADDITION","uniqid":"02b6008f-86e2-4df5-86b3-58b224c5d70d","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 13:40:40","updated_at":"2026-07-31 13:40:42"} 
[2026-07-31 14:08:31] local.INFO: ID present? YES  
[2026-07-31 14:08:31] local.INFO: ID value: a6e514b3-239f-4f72-b4c9-3002194fcdf1  
[2026-07-31 14:08:31] local.INFO: ID empty? NO  
[2026-07-31 14:08:31] local.INFO: Attempting to find record with ID: a6e514b3-239f-4f72-b4c9-3002194fcdf1  
[2026-07-31 14:08:31] local.INFO: Record not found, creating new with ID: a6e514b3-239f-4f72-b4c9-3002194fcdf1  
[2026-07-31 14:08:31] local.INFO: Created record: {"id":"a6e514b3-239f-4f72-b4c9-3002194fcdf1","type":"Debit","amount":"5300.00","rate":null,"lcy_amount":"683700.000000","narrative":"USD ADDITION","uniqid":"02b6008f-86e2-4df5-86b3-58b224c5d70d","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T11:08:31.000000Z","created_at":"2026-07-31T11:08:31.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-361.8900000000003274180926382541656494140625,"debit_total":76987.110000000000582076609134674072265625,"credit_total":"77349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:08:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:08:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:33] local.INFO: Model: Journal  
[2026-07-31 14:08:33] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:33] local.INFO: ID present? YES  
[2026-07-31 14:08:33] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:33] local.INFO: ID empty? NO  
[2026-07-31 14:08:33] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:33] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:08:33, 2026-07-31 14:08:33))  
[2026-07-31 14:08:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:39] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:39] local.INFO: Model: Journal  
[2026-07-31 14:08:39] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:39] local.INFO: ID present? YES  
[2026-07-31 14:08:39] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:39] local.INFO: ID empty? NO  
[2026-07-31 14:08:39] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:39] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:08:39, 2026-07-31 14:08:39))  
[2026-07-31 14:08:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:45] local.INFO: Model: Journal  
[2026-07-31 14:08:45] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:45] local.INFO: ID present? YES  
[2026-07-31 14:08:45] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:45] local.INFO: ID empty? NO  
[2026-07-31 14:08:45] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:45] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:08:45, 2026-07-31 14:08:45))  
[2026-07-31 14:08:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:51] local.INFO: Model: Journal  
[2026-07-31 14:08:51] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:51] local.INFO: ID present? YES  
[2026-07-31 14:08:51] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:51] local.INFO: ID empty? NO  
[2026-07-31 14:08:51] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:51] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:08:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:08:51, 2026-07-31 14:08:51))  
[2026-07-31 14:08:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:53] local.INFO: Model: Journal  
[2026-07-31 14:08:53] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:53] local.INFO: ID present? YES  
[2026-07-31 14:08:53] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:08:53] local.INFO: ID empty? NO  
[2026-07-31 14:08:53] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:08:53] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:08:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:08:53, 2026-07-31 14:08:53))  
[2026-07-31 14:08:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:08:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:08:59] local.INFO: Model: Journal  
[2026-07-31 14:08:59] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:08:59] local.INFO: ID present? YES  
[2026-07-31 14:08:59] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:08:59] local.INFO: ID empty? NO  
[2026-07-31 14:08:59] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:08:59] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:08:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:08:59, 2026-07-31 14:08:59))  
[2026-07-31 14:08:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:09:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:09:05] local.INFO: Model: Journal  
[2026-07-31 14:09:05] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:09:05] local.INFO: ID present? YES  
[2026-07-31 14:09:05] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:09:05] local.INFO: ID empty? NO  
[2026-07-31 14:09:05] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:09:05] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:09:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:09:05, 2026-07-31 14:09:05))  
[2026-07-31 14:09:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:09:11] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:09:11] local.INFO: Model: Journal  
[2026-07-31 14:09:11] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:09:11] local.INFO: ID present? YES  
[2026-07-31 14:09:11] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:09:11] local.INFO: ID empty? NO  
[2026-07-31 14:09:11] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:09:11] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:09:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:09:11, 2026-07-31 14:09:11))  
[2026-07-31 14:09:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:09:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:09:13] local.INFO: Model: Journal  
[2026-07-31 14:09:13] local.INFO: Data received: {"id":"ffb341f2-9406-435f-9590-a419b525b24f","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"348a7060-beba-437a-8322-f3e26ba10b4d","customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 13:37:33","updated_at":"2026-07-31 13:37:33"} 
[2026-07-31 14:09:13] local.INFO: ID present? YES  
[2026-07-31 14:09:13] local.INFO: ID value: ffb341f2-9406-435f-9590-a419b525b24f  
[2026-07-31 14:09:13] local.INFO: ID empty? NO  
[2026-07-31 14:09:13] local.INFO: Attempting to find record with ID: ffb341f2-9406-435f-9590-a419b525b24f  
[2026-07-31 14:09:13] local.INFO: Record not found, creating new with ID: ffb341f2-9406-435f-9590-a419b525b24f  
[2026-07-31 14:09:13] local.INFO: Created record: {"id":"ffb341f2-9406-435f-9590-a419b525b24f","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"348a7060-beba-437a-8322-f3e26ba10b4d","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"348a7060-beba-437a-8322-f3e26ba10b4d","customer_id":"f7493517-8550-4929-8f6d-5082a3947de5","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:09:13.000000Z","created_at":"2026-07-31T11:09:13.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1589660.5,"debit_total":"21057422.20","credit_total":19467761.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:08:08.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:12:30] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:30] local.INFO: Model: Transaction  
[2026-07-31 14:12:30] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:12:30] local.INFO: ID present? YES  
[2026-07-31 14:12:30] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:30] local.INFO: ID empty? NO  
[2026-07-31 14:12:30] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:30] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:12:30, 2026-07-31 14:12:30))  
[2026-07-31 14:12:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:12:36] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:36] local.INFO: Model: Transaction  
[2026-07-31 14:12:36] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:12:36] local.INFO: ID present? YES  
[2026-07-31 14:12:36] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:36] local.INFO: ID empty? NO  
[2026-07-31 14:12:36] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:36] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:12:36, 2026-07-31 14:12:36))  
[2026-07-31 14:12:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:12:42] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:42] local.INFO: Model: Transaction  
[2026-07-31 14:12:42] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:12:42] local.INFO: ID present? YES  
[2026-07-31 14:12:42] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:42] local.INFO: ID empty? NO  
[2026-07-31 14:12:42] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:42] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:12:42, 2026-07-31 14:12:42))  
[2026-07-31 14:12:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:12:49] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:49] local.INFO: Model: Transaction  
[2026-07-31 14:12:49] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:12:49] local.INFO: ID present? YES  
[2026-07-31 14:12:49] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:49] local.INFO: ID empty? NO  
[2026-07-31 14:12:49] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:49] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:12:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:12:49, 2026-07-31 14:12:49))  
[2026-07-31 14:12:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:12:50] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:50] local.INFO: Model: Journal  
[2026-07-31 14:12:50] local.INFO: Data received: {"id":"2a6dba8a-583a-4596-94d9-183c393e03d5","type":"Debit","amount":"905100.00","rate":null,"lcy_amount":"905100.000000","narrative":"USD SOLD TO REMITCORE 31-07-2026","uniqid":"0e175121-efe3-4b5c-aaae-bed1f4d9aeaf","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:11:54","updated_at":"2026-07-31 14:11:57"} 
[2026-07-31 14:12:50] local.INFO: ID present? YES  
[2026-07-31 14:12:50] local.INFO: ID value: 2a6dba8a-583a-4596-94d9-183c393e03d5  
[2026-07-31 14:12:50] local.INFO: ID empty? NO  
[2026-07-31 14:12:50] local.INFO: Attempting to find record with ID: 2a6dba8a-583a-4596-94d9-183c393e03d5  
[2026-07-31 14:12:50] local.INFO: Record not found, creating new with ID: 2a6dba8a-583a-4596-94d9-183c393e03d5  
[2026-07-31 14:12:50] local.INFO: Created record: {"id":"2a6dba8a-583a-4596-94d9-183c393e03d5","type":"Debit","amount":"905100.00","rate":null,"lcy_amount":"905100.000000","narrative":"USD SOLD TO REMITCORE 31-07-2026","uniqid":"0e175121-efe3-4b5c-aaae-bed1f4d9aeaf","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:12:50.000000Z","created_at":"2026-07-31T11:12:50.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":-591838.0,"debit_total":75352177.0,"credit_total":"75944015.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-31T09:45:17.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-31 14:12:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:51] local.INFO: Model: Journal  
[2026-07-31 14:12:51] local.INFO: Data received: {"id":"79606f75-0f11-4866-ac4d-a5824fac8ed5","type":"Credit","amount":"905100.00","rate":null,"lcy_amount":"905100.000000","narrative":"USD SOLD TO REMITCORE 31-07-2026","uniqid":"0e175121-efe3-4b5c-aaae-bed1f4d9aeaf","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:11:54","updated_at":"2026-07-31 14:11:57"} 
[2026-07-31 14:12:51] local.INFO: ID present? YES  
[2026-07-31 14:12:51] local.INFO: ID value: 79606f75-0f11-4866-ac4d-a5824fac8ed5  
[2026-07-31 14:12:51] local.INFO: ID empty? NO  
[2026-07-31 14:12:51] local.INFO: Attempting to find record with ID: 79606f75-0f11-4866-ac4d-a5824fac8ed5  
[2026-07-31 14:12:51] local.INFO: Record not found, creating new with ID: 79606f75-0f11-4866-ac4d-a5824fac8ed5  
[2026-07-31 14:12:51] local.INFO: Created record: {"id":"79606f75-0f11-4866-ac4d-a5824fac8ed5","type":"Credit","amount":"905100.00","rate":null,"lcy_amount":"905100.000000","narrative":"USD SOLD TO REMITCORE 31-07-2026","uniqid":"0e175121-efe3-4b5c-aaae-bed1f4d9aeaf","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:12:51.000000Z","created_at":"2026-07-31T11:12:51.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":684560.5,"debit_total":"21057422.20","credit_total":20372861.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:09:13.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:12:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:52] local.INFO: Model: Journal  
[2026-07-31 14:12:52] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:12:52] local.INFO: ID present? YES  
[2026-07-31 14:12:52] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:12:52] local.INFO: ID empty? NO  
[2026-07-31 14:12:52] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:12:52] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:12:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:12:52, 2026-07-31 14:12:52))  
[2026-07-31 14:12:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:12:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:12:59] local.INFO: Model: Journal  
[2026-07-31 14:12:59] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:12:59] local.INFO: ID present? YES  
[2026-07-31 14:12:59] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:12:59] local.INFO: ID empty? NO  
[2026-07-31 14:12:59] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:12:59] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:12:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:12:59, 2026-07-31 14:12:59))  
[2026-07-31 14:12:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:05] local.INFO: Model: Journal  
[2026-07-31 14:13:05] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:05] local.INFO: ID present? YES  
[2026-07-31 14:13:05] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:13:05] local.INFO: ID empty? NO  
[2026-07-31 14:13:05] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:13:05] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:13:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:13:05, 2026-07-31 14:13:05))  
[2026-07-31 14:13:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:11] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:11] local.INFO: Model: Journal  
[2026-07-31 14:13:11] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:11] local.INFO: ID present? YES  
[2026-07-31 14:13:11] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:13:11] local.INFO: ID empty? NO  
[2026-07-31 14:13:11] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:13:11] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:13:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:13:11, 2026-07-31 14:13:11))  
[2026-07-31 14:13:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:12] local.INFO: Model: Journal  
[2026-07-31 14:13:12] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:12] local.INFO: ID present? YES  
[2026-07-31 14:13:12] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:12] local.INFO: ID empty? NO  
[2026-07-31 14:13:12] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:12] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:12, 2026-07-31 14:13:12))  
[2026-07-31 14:13:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:19] local.INFO: Model: Journal  
[2026-07-31 14:13:19] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:19] local.INFO: ID present? YES  
[2026-07-31 14:13:19] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:19] local.INFO: ID empty? NO  
[2026-07-31 14:13:19] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:19] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:19, 2026-07-31 14:13:19))  
[2026-07-31 14:13:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:25] local.INFO: Model: Journal  
[2026-07-31 14:13:25] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:25] local.INFO: ID present? YES  
[2026-07-31 14:13:25] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:25] local.INFO: ID empty? NO  
[2026-07-31 14:13:25] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:25] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:25, 2026-07-31 14:13:25))  
[2026-07-31 14:13:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:31] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:31] local.INFO: Model: Journal  
[2026-07-31 14:13:31] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:31] local.INFO: ID present? YES  
[2026-07-31 14:13:31] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:31] local.INFO: ID empty? NO  
[2026-07-31 14:13:31] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:31] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:13:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:31, 2026-07-31 14:13:31))  
[2026-07-31 14:13:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:32] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:32] local.INFO: Model: Journal  
[2026-07-31 14:13:32] local.INFO: Data received: {"id":"b93a0c7f-247d-4c52-b1fa-c1a572c5d33f","type":"Debit","amount":"665000.00","rate":null,"lcy_amount":"665000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 31-7-2026","uniqid":"2a36c69d-ec55-461f-878c-8b545a9a7974","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:10:30","updated_at":"2026-07-31 14:10:32"} 
[2026-07-31 14:13:32] local.INFO: ID present? YES  
[2026-07-31 14:13:32] local.INFO: ID value: b93a0c7f-247d-4c52-b1fa-c1a572c5d33f  
[2026-07-31 14:13:32] local.INFO: ID empty? NO  
[2026-07-31 14:13:32] local.INFO: Attempting to find record with ID: b93a0c7f-247d-4c52-b1fa-c1a572c5d33f  
[2026-07-31 14:13:32] local.INFO: Record not found, creating new with ID: b93a0c7f-247d-4c52-b1fa-c1a572c5d33f  
[2026-07-31 14:13:32] local.INFO: Created record: {"id":"b93a0c7f-247d-4c52-b1fa-c1a572c5d33f","type":"Debit","amount":"665000.00","rate":null,"lcy_amount":"665000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 31-7-2026","uniqid":"2a36c69d-ec55-461f-878c-8b545a9a7974","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:13:32.000000Z","created_at":"2026-07-31T11:13:32.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":2976401.0,"debit_total":8449199.6999999992549419403076171875,"credit_total":"5472798.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T07:53:41.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:13:34] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:34] local.INFO: Model: Journal  
[2026-07-31 14:13:34] local.INFO: Data received: {"id":"d3d8445e-9ecf-4054-a0a1-bebe4b75adbc","type":"Credit","amount":"665000.00","rate":null,"lcy_amount":"665000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 31-7-2026","uniqid":"2a36c69d-ec55-461f-878c-8b545a9a7974","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:10:30","updated_at":"2026-07-31 14:10:32"} 
[2026-07-31 14:13:34] local.INFO: ID present? YES  
[2026-07-31 14:13:34] local.INFO: ID value: d3d8445e-9ecf-4054-a0a1-bebe4b75adbc  
[2026-07-31 14:13:34] local.INFO: ID empty? NO  
[2026-07-31 14:13:34] local.INFO: Attempting to find record with ID: d3d8445e-9ecf-4054-a0a1-bebe4b75adbc  
[2026-07-31 14:13:34] local.INFO: Record not found, creating new with ID: d3d8445e-9ecf-4054-a0a1-bebe4b75adbc  
[2026-07-31 14:13:34] local.INFO: Created record: {"id":"d3d8445e-9ecf-4054-a0a1-bebe4b75adbc","type":"Credit","amount":"665000.00","rate":null,"lcy_amount":"665000.000000","narrative":"CASH GIVEN TO DIANI BRANCH 31-7-2026","uniqid":"2a36c69d-ec55-461f-878c-8b545a9a7974","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:13:34.000000Z","created_at":"2026-07-31T11:13:34.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":-1256838.0,"debit_total":"75352177.00","credit_total":76609015.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-07-31T11:12:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-07-31 14:13:35] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:35] local.INFO: Model: Journal  
[2026-07-31 14:13:35] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:35] local.INFO: ID present? YES  
[2026-07-31 14:13:35] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:35] local.INFO: ID empty? NO  
[2026-07-31 14:13:35] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:35] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:35, 2026-07-31 14:13:35))  
[2026-07-31 14:13:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:41] local.INFO: Model: Journal  
[2026-07-31 14:13:41] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:41] local.INFO: ID present? YES  
[2026-07-31 14:13:41] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:41] local.INFO: ID empty? NO  
[2026-07-31 14:13:41] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:41] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:41, 2026-07-31 14:13:41))  
[2026-07-31 14:13:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:47] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:47] local.INFO: Model: Journal  
[2026-07-31 14:13:47] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:47] local.INFO: ID present? YES  
[2026-07-31 14:13:47] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:47] local.INFO: ID empty? NO  
[2026-07-31 14:13:47] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:47] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:47, 2026-07-31 14:13:47))  
[2026-07-31 14:13:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:54] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:54] local.INFO: Model: Journal  
[2026-07-31 14:13:54] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:13:54] local.INFO: ID present? YES  
[2026-07-31 14:13:54] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:54] local.INFO: ID empty? NO  
[2026-07-31 14:13:54] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:54] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:13:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:13:54, 2026-07-31 14:13:54))  
[2026-07-31 14:13:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:13:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:55] local.INFO: Model: Journal  
[2026-07-31 14:13:55] local.INFO: Data received: {"id":"f0d82253-8757-4d96-967e-4e6a054600cb","type":"Credit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI BRANCH & KCB BANK","uniqid":"bcff4fbf-c65f-40f4-8046-a4da19cb742b","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:08:45","updated_at":"2026-07-31 14:08:48"} 
[2026-07-31 14:13:55] local.INFO: ID present? YES  
[2026-07-31 14:13:55] local.INFO: ID value: f0d82253-8757-4d96-967e-4e6a054600cb  
[2026-07-31 14:13:55] local.INFO: ID empty? NO  
[2026-07-31 14:13:55] local.INFO: Attempting to find record with ID: f0d82253-8757-4d96-967e-4e6a054600cb  
[2026-07-31 14:13:55] local.INFO: Record not found, creating new with ID: f0d82253-8757-4d96-967e-4e6a054600cb  
[2026-07-31 14:13:55] local.INFO: Created record: {"id":"f0d82253-8757-4d96-967e-4e6a054600cb","type":"Credit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI BRANCH & KCB BANK","uniqid":"bcff4fbf-c65f-40f4-8046-a4da19cb742b","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:13:55.000000Z","created_at":"2026-07-31T11:13:55.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":683560.5,"debit_total":"21057422.20","credit_total":20373861.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:12:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:13:56] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:13:56] local.INFO: Model: Journal  
[2026-07-31 14:13:56] local.INFO: Data received: {"id":"f16f6127-d3a0-45a4-99da-62ccb26c0b65","type":"Debit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI BRANCH & KCB BANK","uniqid":"bcff4fbf-c65f-40f4-8046-a4da19cb742b","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:08:45","updated_at":"2026-07-31 14:08:48"} 
[2026-07-31 14:13:56] local.INFO: ID present? YES  
[2026-07-31 14:13:56] local.INFO: ID value: f16f6127-d3a0-45a4-99da-62ccb26c0b65  
[2026-07-31 14:13:56] local.INFO: ID empty? NO  
[2026-07-31 14:13:56] local.INFO: Attempting to find record with ID: f16f6127-d3a0-45a4-99da-62ccb26c0b65  
[2026-07-31 14:13:56] local.INFO: Record not found, creating new with ID: f16f6127-d3a0-45a4-99da-62ccb26c0b65  
[2026-07-31 14:13:56] local.INFO: Created record: {"id":"f16f6127-d3a0-45a4-99da-62ccb26c0b65","type":"Debit","amount":"1000.00","rate":null,"lcy_amount":"1000.000000","narrative":"TRANSPORT TO NYALI BRANCH & KCB BANK","uniqid":"bcff4fbf-c65f-40f4-8046-a4da19cb742b","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:13:56.000000Z","created_at":"2026-07-31T11:13:56.000000Z","account":{"id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","name":"Travel Expense[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000019","is_fx_account":null,"balance":14050.0,"debit_total":14050.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb16c45e-e5d7-4c6d-9fa2-51cb3e635477","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:23:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 14:19:15] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:15] local.INFO: Model: Transaction  
[2026-07-31 14:19:15] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:15] local.INFO: ID present? YES  
[2026-07-31 14:19:15] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:15] local.INFO: ID empty? NO  
[2026-07-31 14:19:15] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:15] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:19:15, 2026-07-31 14:19:15))  
[2026-07-31 14:19:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:21] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:21] local.INFO: Model: Transaction  
[2026-07-31 14:19:21] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:21] local.INFO: ID present? YES  
[2026-07-31 14:19:21] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:21] local.INFO: ID empty? NO  
[2026-07-31 14:19:21] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:21] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:19:21, 2026-07-31 14:19:21))  
[2026-07-31 14:19:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:27] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:27] local.INFO: Model: Transaction  
[2026-07-31 14:19:27] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:27] local.INFO: ID present? YES  
[2026-07-31 14:19:27] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:27] local.INFO: ID empty? NO  
[2026-07-31 14:19:27] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:27] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:19:27, 2026-07-31 14:19:27))  
[2026-07-31 14:19:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:34] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:34] local.INFO: Model: Transaction  
[2026-07-31 14:19:34] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:34] local.INFO: ID present? YES  
[2026-07-31 14:19:34] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:34] local.INFO: ID empty? NO  
[2026-07-31 14:19:34] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:34] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:19:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:19:34, 2026-07-31 14:19:34))  
[2026-07-31 14:19:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:35] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:35] local.INFO: Model: Journal  
[2026-07-31 14:19:35] local.INFO: Data received: {"id":"07787845-bc9e-4fdd-bad7-c050815b952c","type":"Credit","amount":"250000.00","rate":null,"lcy_amount":"250000.000000","narrative":"KES ADDITION","uniqid":"3463f3b6-a008-4d13-b395-44479b98d540","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:17:24","updated_at":"2026-07-31 14:17:26"} 
[2026-07-31 14:19:35] local.INFO: ID present? YES  
[2026-07-31 14:19:35] local.INFO: ID value: 07787845-bc9e-4fdd-bad7-c050815b952c  
[2026-07-31 14:19:35] local.INFO: ID empty? NO  
[2026-07-31 14:19:35] local.INFO: Attempting to find record with ID: 07787845-bc9e-4fdd-bad7-c050815b952c  
[2026-07-31 14:19:35] local.INFO: Record not found, creating new with ID: 07787845-bc9e-4fdd-bad7-c050815b952c  
[2026-07-31 14:19:35] local.INFO: Created record: {"id":"07787845-bc9e-4fdd-bad7-c050815b952c","type":"Credit","amount":"250000.00","rate":null,"lcy_amount":"250000.000000","narrative":"KES ADDITION","uniqid":"3463f3b6-a008-4d13-b395-44479b98d540","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:19:35.000000Z","created_at":"2026-07-31T11:19:35.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":2726401.0,"debit_total":"8449199.70","credit_total":5722798.700000000186264514923095703125,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T11:13:32.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:19:36] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:36] local.INFO: Model: Journal  
[2026-07-31 14:19:36] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:36] local.INFO: ID present? YES  
[2026-07-31 14:19:36] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:36] local.INFO: ID empty? NO  
[2026-07-31 14:19:36] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:36] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:19:36, 2026-07-31 14:19:36))  
[2026-07-31 14:19:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:42] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:42] local.INFO: Model: Journal  
[2026-07-31 14:19:42] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:42] local.INFO: ID present? YES  
[2026-07-31 14:19:42] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:42] local.INFO: ID empty? NO  
[2026-07-31 14:19:42] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:42] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:19:42, 2026-07-31 14:19:42))  
[2026-07-31 14:19:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:49] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:49] local.INFO: Model: Journal  
[2026-07-31 14:19:49] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:49] local.INFO: ID present? YES  
[2026-07-31 14:19:49] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:49] local.INFO: ID empty? NO  
[2026-07-31 14:19:49] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:49] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:19:49, 2026-07-31 14:19:49))  
[2026-07-31 14:19:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:55] local.INFO: Model: Journal  
[2026-07-31 14:19:55] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:55] local.INFO: ID present? YES  
[2026-07-31 14:19:55] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:55] local.INFO: ID empty? NO  
[2026-07-31 14:19:55] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:55] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:19:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:19:55, 2026-07-31 14:19:55))  
[2026-07-31 14:19:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:19:56] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:56] local.INFO: Model: Journal  
[2026-07-31 14:19:56] local.INFO: Data received: {"id":"95efd8c2-015e-4738-a5c9-df1609a672c2","type":"Debit","amount":"250000.00","rate":null,"lcy_amount":"250000.000000","narrative":"KES ADDITION","uniqid":"3463f3b6-a008-4d13-b395-44479b98d540","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:17:24","updated_at":"2026-07-31 14:17:26"} 
[2026-07-31 14:19:56] local.INFO: ID present? YES  
[2026-07-31 14:19:56] local.INFO: ID value: 95efd8c2-015e-4738-a5c9-df1609a672c2  
[2026-07-31 14:19:56] local.INFO: ID empty? NO  
[2026-07-31 14:19:56] local.INFO: Attempting to find record with ID: 95efd8c2-015e-4738-a5c9-df1609a672c2  
[2026-07-31 14:19:56] local.INFO: Record not found, creating new with ID: 95efd8c2-015e-4738-a5c9-df1609a672c2  
[2026-07-31 14:19:56] local.INFO: Created record: {"id":"95efd8c2-015e-4738-a5c9-df1609a672c2","type":"Debit","amount":"250000.00","rate":null,"lcy_amount":"250000.000000","narrative":"KES ADDITION","uniqid":"3463f3b6-a008-4d13-b395-44479b98d540","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T11:19:56.000000Z","created_at":"2026-07-31T11:19:56.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":933560.5,"debit_total":21307422.1999999992549419403076171875,"credit_total":"20373861.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:13:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 14:19:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:19:57] local.INFO: Model: Journal  
[2026-07-31 14:19:57] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:19:57] local.INFO: ID present? YES  
[2026-07-31 14:19:57] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:19:57] local.INFO: ID empty? NO  
[2026-07-31 14:19:57] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:19:57] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:19:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:19:57, 2026-07-31 14:19:57))  
[2026-07-31 14:19:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:20:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:20:04] local.INFO: Model: Journal  
[2026-07-31 14:20:04] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:20:04] local.INFO: ID present? YES  
[2026-07-31 14:20:04] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:04] local.INFO: ID empty? NO  
[2026-07-31 14:20:04] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:04] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:20:04, 2026-07-31 14:20:04))  
[2026-07-31 14:20:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:20:10] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:20:10] local.INFO: Model: Journal  
[2026-07-31 14:20:10] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:20:10] local.INFO: ID present? YES  
[2026-07-31 14:20:10] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:10] local.INFO: ID empty? NO  
[2026-07-31 14:20:10] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:10] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:20:10, 2026-07-31 14:20:10))  
[2026-07-31 14:20:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:20:16] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:20:16] local.INFO: Model: Journal  
[2026-07-31 14:20:16] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:20:16] local.INFO: ID present? YES  
[2026-07-31 14:20:16] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:16] local.INFO: ID empty? NO  
[2026-07-31 14:20:16] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:16] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:20:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:20:16, 2026-07-31 14:20:16))  
[2026-07-31 14:20:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:20:17] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:20:17] local.INFO: Model: Journal  
[2026-07-31 14:20:17] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:20:17] local.INFO: ID present? YES  
[2026-07-31 14:20:17] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:17] local.INFO: ID empty? NO  
[2026-07-31 14:20:17] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:17] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:20:17, 2026-07-31 14:20:17))  
[2026-07-31 14:20:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:20:24] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:20:24] local.INFO: Model: Journal  
[2026-07-31 14:20:24] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:20:24] local.INFO: ID present? YES  
[2026-07-31 14:20:24] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:24] local.INFO: ID empty? NO  
[2026-07-31 14:20:24] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:24] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:20:24, 2026-07-31 14:20:24))  
[2026-07-31 14:20:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:20:30] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:20:30] local.INFO: Model: Journal  
[2026-07-31 14:20:30] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:20:30] local.INFO: ID present? YES  
[2026-07-31 14:20:30] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:30] local.INFO: ID empty? NO  
[2026-07-31 14:20:30] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:30] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:20:30, 2026-07-31 14:20:30))  
[2026-07-31 14:20:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:20:36] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:20:36] local.INFO: Model: Journal  
[2026-07-31 14:20:36] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:20:36] local.INFO: ID present? YES  
[2026-07-31 14:20:36] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:36] local.INFO: ID empty? NO  
[2026-07-31 14:20:36] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:36] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:20:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:20:36, 2026-07-31 14:20:36))  
[2026-07-31 14:20:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:41:26] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:41:26] local.INFO: Model: Transaction  
[2026-07-31 14:41:26] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:41:26] local.INFO: ID present? YES  
[2026-07-31 14:41:26] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:26] local.INFO: ID empty? NO  
[2026-07-31 14:41:26] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:26] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 14:41:26, 2026-07-31 14:41:26))  
[2026-07-31 14:41:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:41:32] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:41:32] local.INFO: Model: Transaction  
[2026-07-31 14:41:32] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:41:32] local.INFO: ID present? YES  
[2026-07-31 14:41:32] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:32] local.INFO: ID empty? NO  
[2026-07-31 14:41:32] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:32] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 14:41:32, 2026-07-31 14:41:32))  
[2026-07-31 14:41:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:41:38] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:41:38] local.INFO: Model: Transaction  
[2026-07-31 14:41:38] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:41:38] local.INFO: ID present? YES  
[2026-07-31 14:41:38] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:38] local.INFO: ID empty? NO  
[2026-07-31 14:41:38] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:38] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 14:41:38, 2026-07-31 14:41:38))  
[2026-07-31 14:41:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:41:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:41:45] local.INFO: Model: Transaction  
[2026-07-31 14:41:45] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:41:45] local.INFO: ID present? YES  
[2026-07-31 14:41:45] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:45] local.INFO: ID empty? NO  
[2026-07-31 14:41:45] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:45] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 14:41:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 14:41:45, 2026-07-31 14:41:45))  
[2026-07-31 14:41:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:41:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:41:46] local.INFO: Model: Transaction  
[2026-07-31 14:41:46] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:41:46] local.INFO: ID present? YES  
[2026-07-31 14:41:46] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:46] local.INFO: ID empty? NO  
[2026-07-31 14:41:46] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:46] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:41:46, 2026-07-31 14:41:46))  
[2026-07-31 14:41:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:41:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:41:52] local.INFO: Model: Transaction  
[2026-07-31 14:41:52] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:41:52] local.INFO: ID present? YES  
[2026-07-31 14:41:52] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:52] local.INFO: ID empty? NO  
[2026-07-31 14:41:52] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:52] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:41:52, 2026-07-31 14:41:52))  
[2026-07-31 14:41:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:41:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:41:59] local.INFO: Model: Transaction  
[2026-07-31 14:41:59] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:41:59] local.INFO: ID present? YES  
[2026-07-31 14:41:59] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:59] local.INFO: ID empty? NO  
[2026-07-31 14:41:59] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:59] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:41:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:41:59, 2026-07-31 14:41:59))  
[2026-07-31 14:41:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:05] local.INFO: Model: Transaction  
[2026-07-31 14:42:05] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:42:05] local.INFO: ID present? YES  
[2026-07-31 14:42:05] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:42:05] local.INFO: ID empty? NO  
[2026-07-31 14:42:05] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:42:05] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 14:42:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 14:42:05, 2026-07-31 14:42:05))  
[2026-07-31 14:42:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:06] local.INFO: Model: Journal  
[2026-07-31 14:42:06] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:06] local.INFO: ID present? YES  
[2026-07-31 14:42:06] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:06] local.INFO: ID empty? NO  
[2026-07-31 14:42:06] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:06] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:06, 2026-07-31 14:42:06))  
[2026-07-31 14:42:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:12] local.INFO: Model: Journal  
[2026-07-31 14:42:12] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:12] local.INFO: ID present? YES  
[2026-07-31 14:42:12] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:12] local.INFO: ID empty? NO  
[2026-07-31 14:42:12] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:12] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:12, 2026-07-31 14:42:12))  
[2026-07-31 14:42:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:19] local.INFO: Model: Journal  
[2026-07-31 14:42:19] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:19] local.INFO: ID present? YES  
[2026-07-31 14:42:19] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:19] local.INFO: ID empty? NO  
[2026-07-31 14:42:19] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:19] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:19, 2026-07-31 14:42:19))  
[2026-07-31 14:42:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:25] local.INFO: Model: Journal  
[2026-07-31 14:42:25] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:25] local.INFO: ID present? YES  
[2026-07-31 14:42:25] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:25] local.INFO: ID empty? NO  
[2026-07-31 14:42:25] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:25] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 14:42:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:25, 2026-07-31 14:42:25))  
[2026-07-31 14:42:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:26] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:26] local.INFO: Model: Journal  
[2026-07-31 14:42:26] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:26] local.INFO: ID present? YES  
[2026-07-31 14:42:26] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:26] local.INFO: ID empty? NO  
[2026-07-31 14:42:26] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:26] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:26, 2026-07-31 14:42:26))  
[2026-07-31 14:42:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:32] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:32] local.INFO: Model: Journal  
[2026-07-31 14:42:32] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:32] local.INFO: ID present? YES  
[2026-07-31 14:42:32] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:32] local.INFO: ID empty? NO  
[2026-07-31 14:42:32] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:32] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:32, 2026-07-31 14:42:32))  
[2026-07-31 14:42:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:38] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:38] local.INFO: Model: Journal  
[2026-07-31 14:42:38] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:38] local.INFO: ID present? YES  
[2026-07-31 14:42:38] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:38] local.INFO: ID empty? NO  
[2026-07-31 14:42:38] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:38] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:38, 2026-07-31 14:42:38))  
[2026-07-31 14:42:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:45] local.INFO: Model: Journal  
[2026-07-31 14:42:45] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:42:45] local.INFO: ID present? YES  
[2026-07-31 14:42:45] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:45] local.INFO: ID empty? NO  
[2026-07-31 14:42:45] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:45] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 14:42:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:42:45, 2026-07-31 14:42:45))  
[2026-07-31 14:42:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:46] local.INFO: Model: Journal  
[2026-07-31 14:42:46] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:42:46] local.INFO: ID present? YES  
[2026-07-31 14:42:46] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:46] local.INFO: ID empty? NO  
[2026-07-31 14:42:46] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:46] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:42:46, 2026-07-31 14:42:46))  
[2026-07-31 14:42:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:52] local.INFO: Model: Journal  
[2026-07-31 14:42:52] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:42:52] local.INFO: ID present? YES  
[2026-07-31 14:42:52] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:52] local.INFO: ID empty? NO  
[2026-07-31 14:42:52] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:52] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:42:52, 2026-07-31 14:42:52))  
[2026-07-31 14:42:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:42:58] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:42:58] local.INFO: Model: Journal  
[2026-07-31 14:42:58] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:42:58] local.INFO: ID present? YES  
[2026-07-31 14:42:58] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:58] local.INFO: ID empty? NO  
[2026-07-31 14:42:58] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:58] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:42:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:42:58, 2026-07-31 14:42:58))  
[2026-07-31 14:42:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:05] local.INFO: Model: Journal  
[2026-07-31 14:43:05] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:05] local.INFO: ID present? YES  
[2026-07-31 14:43:05] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:43:05] local.INFO: ID empty? NO  
[2026-07-31 14:43:05] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:43:05] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 14:43:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 14:43:05, 2026-07-31 14:43:05))  
[2026-07-31 14:43:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:06] local.INFO: Model: Journal  
[2026-07-31 14:43:06] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:43:06] local.INFO: ID present? YES  
[2026-07-31 14:43:06] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:06] local.INFO: ID empty? NO  
[2026-07-31 14:43:06] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:06] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 14:43:06, 2026-07-31 14:43:06))  
[2026-07-31 14:43:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:12] local.INFO: Model: Journal  
[2026-07-31 14:43:12] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:43:12] local.INFO: ID present? YES  
[2026-07-31 14:43:12] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:12] local.INFO: ID empty? NO  
[2026-07-31 14:43:12] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:12] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 14:43:12, 2026-07-31 14:43:12))  
[2026-07-31 14:43:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:18] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:18] local.INFO: Model: Journal  
[2026-07-31 14:43:18] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:43:18] local.INFO: ID present? YES  
[2026-07-31 14:43:18] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:18] local.INFO: ID empty? NO  
[2026-07-31 14:43:18] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:18] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 14:43:18, 2026-07-31 14:43:18))  
[2026-07-31 14:43:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:25] local.INFO: Model: Journal  
[2026-07-31 14:43:25] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 14:43:25] local.INFO: ID present? YES  
[2026-07-31 14:43:25] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:25] local.INFO: ID empty? NO  
[2026-07-31 14:43:25] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:25] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 14:43:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 14:43:25, 2026-07-31 14:43:25))  
[2026-07-31 14:43:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:26] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:26] local.INFO: Model: Journal  
[2026-07-31 14:43:26] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:26] local.INFO: ID present? YES  
[2026-07-31 14:43:26] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:26] local.INFO: ID empty? NO  
[2026-07-31 14:43:26] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:26] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:43:26, 2026-07-31 14:43:26))  
[2026-07-31 14:43:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:32] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:32] local.INFO: Model: Journal  
[2026-07-31 14:43:32] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:32] local.INFO: ID present? YES  
[2026-07-31 14:43:32] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:32] local.INFO: ID empty? NO  
[2026-07-31 14:43:32] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:32] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:43:32, 2026-07-31 14:43:32))  
[2026-07-31 14:43:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:38] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:38] local.INFO: Model: Journal  
[2026-07-31 14:43:38] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:38] local.INFO: ID present? YES  
[2026-07-31 14:43:38] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:38] local.INFO: ID empty? NO  
[2026-07-31 14:43:38] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:38] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:43:38, 2026-07-31 14:43:38))  
[2026-07-31 14:43:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:45] local.INFO: Model: Journal  
[2026-07-31 14:43:45] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:45] local.INFO: ID present? YES  
[2026-07-31 14:43:45] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:45] local.INFO: ID empty? NO  
[2026-07-31 14:43:45] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:45] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 14:43:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:43:45, 2026-07-31 14:43:45))  
[2026-07-31 14:43:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:46] local.INFO: Model: Journal  
[2026-07-31 14:43:46] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:46] local.INFO: ID present? YES  
[2026-07-31 14:43:46] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:46] local.INFO: ID empty? NO  
[2026-07-31 14:43:46] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:46] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:43:46, 2026-07-31 14:43:46))  
[2026-07-31 14:43:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:52] local.INFO: Model: Journal  
[2026-07-31 14:43:52] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:52] local.INFO: ID present? YES  
[2026-07-31 14:43:52] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:52] local.INFO: ID empty? NO  
[2026-07-31 14:43:52] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:52] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:43:52, 2026-07-31 14:43:52))  
[2026-07-31 14:43:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:43:58] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:43:58] local.INFO: Model: Journal  
[2026-07-31 14:43:58] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:43:58] local.INFO: ID present? YES  
[2026-07-31 14:43:58] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:58] local.INFO: ID empty? NO  
[2026-07-31 14:43:58] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:58] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:43:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:43:58, 2026-07-31 14:43:58))  
[2026-07-31 14:43:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 14:44:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 14:44:05] local.INFO: Model: Journal  
[2026-07-31 14:44:05] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 14:44:05] local.INFO: ID present? YES  
[2026-07-31 14:44:05] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:44:05] local.INFO: ID empty? NO  
[2026-07-31 14:44:05] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:44:05] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 14:44:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 14:44:05, 2026-07-31 14:44:05))  
[2026-07-31 14:44:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:20:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:20:51] local.INFO: Model: Transaction  
[2026-07-31 15:20:51] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:20:51] local.INFO: ID present? YES  
[2026-07-31 15:20:51] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:20:51] local.INFO: ID empty? NO  
[2026-07-31 15:20:51] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:20:51] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:20:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 15:20:51, 2026-07-31 15:20:51))  
[2026-07-31 15:20:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:20:58] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:20:58] local.INFO: Model: Transaction  
[2026-07-31 15:20:58] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:20:58] local.INFO: ID present? YES  
[2026-07-31 15:20:58] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:20:58] local.INFO: ID empty? NO  
[2026-07-31 15:20:58] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:20:58] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:20:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 15:20:58, 2026-07-31 15:20:58))  
[2026-07-31 15:20:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:04] local.INFO: Model: Transaction  
[2026-07-31 15:21:04] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:21:04] local.INFO: ID present? YES  
[2026-07-31 15:21:04] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:21:04] local.INFO: ID empty? NO  
[2026-07-31 15:21:04] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:21:04] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:21:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 15:21:04, 2026-07-31 15:21:04))  
[2026-07-31 15:21:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:10] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:10] local.INFO: Model: Transaction  
[2026-07-31 15:21:10] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:21:10] local.INFO: ID present? YES  
[2026-07-31 15:21:10] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:21:10] local.INFO: ID empty? NO  
[2026-07-31 15:21:10] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:21:10] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 15:21:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 15:21:10, 2026-07-31 15:21:10))  
[2026-07-31 15:21:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:12] local.INFO: Model: Transaction  
[2026-07-31 15:21:12] local.INFO: Data received: {"id":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3608-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 15:20:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0f1390a3-34bb-411c-bb91-dbb70085c7ad","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-07-31 15:20:33","updated_at":"2026-07-31 15:20:35"} 
[2026-07-31 15:21:12] local.INFO: ID present? YES  
[2026-07-31 15:21:12] local.INFO: ID value: 6df26da1-646e-4b35-af18-847c6f68a0ee  
[2026-07-31 15:21:12] local.INFO: ID empty? NO  
[2026-07-31 15:21:12] local.INFO: Attempting to find record with ID: 6df26da1-646e-4b35-af18-847c6f68a0ee  
[2026-07-31 15:21:12] local.INFO: Record not found, creating new with ID: 6df26da1-646e-4b35-af18-847c6f68a0ee  
[2026-07-31 15:21:12] local.INFO: Created record: {"id":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3608-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 15:20:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0f1390a3-34bb-411c-bb91-dbb70085c7ad","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-07-31T12:21:12.000000Z","created_at":"2026-07-31T12:21:12.000000Z"} 
[2026-07-31 15:21:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:13] local.INFO: Model: Transaction  
[2026-07-31 15:21:13] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:21:13] local.INFO: ID present? YES  
[2026-07-31 15:21:13] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:13] local.INFO: ID empty? NO  
[2026-07-31 15:21:13] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:13] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 15:21:13, 2026-07-31 15:21:13))  
[2026-07-31 15:21:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:19] local.INFO: Model: Transaction  
[2026-07-31 15:21:19] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:21:19] local.INFO: ID present? YES  
[2026-07-31 15:21:19] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:19] local.INFO: ID empty? NO  
[2026-07-31 15:21:19] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:19] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 15:21:19, 2026-07-31 15:21:19))  
[2026-07-31 15:21:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:26] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:26] local.INFO: Model: Transaction  
[2026-07-31 15:21:26] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:21:26] local.INFO: ID present? YES  
[2026-07-31 15:21:26] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:26] local.INFO: ID empty? NO  
[2026-07-31 15:21:26] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:26] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 15:21:26, 2026-07-31 15:21:26))  
[2026-07-31 15:21:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:32] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:32] local.INFO: Model: Transaction  
[2026-07-31 15:21:32] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:21:32] local.INFO: ID present? YES  
[2026-07-31 15:21:32] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:32] local.INFO: ID empty? NO  
[2026-07-31 15:21:32] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:32] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 15:21:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 15:21:32, 2026-07-31 15:21:32))  
[2026-07-31 15:21:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:33] local.INFO: Model: Journal  
[2026-07-31 15:21:33] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:21:33] local.INFO: ID present? YES  
[2026-07-31 15:21:33] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:33] local.INFO: ID empty? NO  
[2026-07-31 15:21:33] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:33] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:21:33, 2026-07-31 15:21:33))  
[2026-07-31 15:21:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:40] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:40] local.INFO: Model: Journal  
[2026-07-31 15:21:40] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:21:40] local.INFO: ID present? YES  
[2026-07-31 15:21:40] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:40] local.INFO: ID empty? NO  
[2026-07-31 15:21:40] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:40] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:21:40, 2026-07-31 15:21:40))  
[2026-07-31 15:21:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:46] local.INFO: Model: Journal  
[2026-07-31 15:21:46] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:21:46] local.INFO: ID present? YES  
[2026-07-31 15:21:46] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:46] local.INFO: ID empty? NO  
[2026-07-31 15:21:46] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:46] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:21:46, 2026-07-31 15:21:46))  
[2026-07-31 15:21:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:52] local.INFO: Model: Journal  
[2026-07-31 15:21:52] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:21:52] local.INFO: ID present? YES  
[2026-07-31 15:21:52] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:52] local.INFO: ID empty? NO  
[2026-07-31 15:21:52] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:52] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 15:21:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:21:52, 2026-07-31 15:21:52))  
[2026-07-31 15:21:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:21:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:53] local.INFO: Model: Journal  
[2026-07-31 15:21:53] local.INFO: Data received: {"id":"389dcdc6-25b9-429b-863c-9b1903632f8e","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3608-2026","uniqid":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6df26da1-646e-4b35-af18-847c6f68a0ee","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 15:20:35","updated_at":"2026-07-31 15:20:35"} 
[2026-07-31 15:21:53] local.INFO: ID present? YES  
[2026-07-31 15:21:53] local.INFO: ID value: 389dcdc6-25b9-429b-863c-9b1903632f8e  
[2026-07-31 15:21:53] local.INFO: ID empty? NO  
[2026-07-31 15:21:53] local.INFO: Attempting to find record with ID: 389dcdc6-25b9-429b-863c-9b1903632f8e  
[2026-07-31 15:21:53] local.INFO: Record not found, creating new with ID: 389dcdc6-25b9-429b-863c-9b1903632f8e  
[2026-07-31 15:21:54] local.INFO: Created record: {"id":"389dcdc6-25b9-429b-863c-9b1903632f8e","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3608-2026","uniqid":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6df26da1-646e-4b35-af18-847c6f68a0ee","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T12:21:53.000000Z","created_at":"2026-07-31T12:21:53.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-117126.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":124438.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T11:08:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 15:21:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:55] local.INFO: Model: Journal  
[2026-07-31 15:21:55] local.INFO: Data received: {"id":"452441c4-31d3-4547-b84b-2148507f3188","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"6df26da1-646e-4b35-af18-847c6f68a0ee","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 15:20:35","updated_at":"2026-07-31 15:20:35"} 
[2026-07-31 15:21:55] local.INFO: ID present? YES  
[2026-07-31 15:21:55] local.INFO: ID value: 452441c4-31d3-4547-b84b-2148507f3188  
[2026-07-31 15:21:55] local.INFO: ID empty? NO  
[2026-07-31 15:21:55] local.INFO: Attempting to find record with ID: 452441c4-31d3-4547-b84b-2148507f3188  
[2026-07-31 15:21:55] local.INFO: Record not found, creating new with ID: 452441c4-31d3-4547-b84b-2148507f3188  
[2026-07-31 15:21:55] local.INFO: Created record: {"id":"452441c4-31d3-4547-b84b-2148507f3188","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"6df26da1-646e-4b35-af18-847c6f68a0ee","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T12:21:55.000000Z","created_at":"2026-07-31T12:21:55.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-261.8899999999999863575794734060764312744140625,"debit_total":77087.110000000000582076609134674072265625,"credit_total":"77349.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:08:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 15:21:56] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:56] local.INFO: Model: Journal  
[2026-07-31 15:21:56] local.INFO: Data received: {"id":"4b5c00c9-6717-4444-ade3-7b996bcd40ba","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6df26da1-646e-4b35-af18-847c6f68a0ee","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 15:20:35","updated_at":"2026-07-31 15:20:35"} 
[2026-07-31 15:21:56] local.INFO: ID present? YES  
[2026-07-31 15:21:56] local.INFO: ID value: 4b5c00c9-6717-4444-ade3-7b996bcd40ba  
[2026-07-31 15:21:56] local.INFO: ID empty? NO  
[2026-07-31 15:21:56] local.INFO: Attempting to find record with ID: 4b5c00c9-6717-4444-ade3-7b996bcd40ba  
[2026-07-31 15:21:56] local.INFO: Record not found, creating new with ID: 4b5c00c9-6717-4444-ade3-7b996bcd40ba  
[2026-07-31 15:21:56] local.INFO: Created record: {"id":"4b5c00c9-6717-4444-ade3-7b996bcd40ba","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6df26da1-646e-4b35-af18-847c6f68a0ee","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6df26da1-646e-4b35-af18-847c6f68a0ee","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T12:21:56.000000Z","created_at":"2026-07-31T12:21:56.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":920810.5,"debit_total":"21307422.20","credit_total":20386611.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T11:19:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 15:21:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:21:57] local.INFO: Model: Journal  
[2026-07-31 15:21:57] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:21:57] local.INFO: ID present? YES  
[2026-07-31 15:21:57] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:21:57] local.INFO: ID empty? NO  
[2026-07-31 15:21:57] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:21:57] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:21:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:21:57, 2026-07-31 15:21:57))  
[2026-07-31 15:21:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:04] local.INFO: Model: Journal  
[2026-07-31 15:22:04] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:22:04] local.INFO: ID present? YES  
[2026-07-31 15:22:04] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:04] local.INFO: ID empty? NO  
[2026-07-31 15:22:04] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:04] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:22:04, 2026-07-31 15:22:04))  
[2026-07-31 15:22:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:10] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:10] local.INFO: Model: Journal  
[2026-07-31 15:22:10] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:22:10] local.INFO: ID present? YES  
[2026-07-31 15:22:10] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:10] local.INFO: ID empty? NO  
[2026-07-31 15:22:10] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:10] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:22:10, 2026-07-31 15:22:10))  
[2026-07-31 15:22:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:16] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:16] local.INFO: Model: Journal  
[2026-07-31 15:22:16] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:22:16] local.INFO: ID present? YES  
[2026-07-31 15:22:16] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:16] local.INFO: ID empty? NO  
[2026-07-31 15:22:16] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:16] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 15:22:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:22:16, 2026-07-31 15:22:16))  
[2026-07-31 15:22:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:17] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:17] local.INFO: Model: Journal  
[2026-07-31 15:22:17] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:22:17] local.INFO: ID present? YES  
[2026-07-31 15:22:17] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:17] local.INFO: ID empty? NO  
[2026-07-31 15:22:17] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:17] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 15:22:17, 2026-07-31 15:22:17))  
[2026-07-31 15:22:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:24] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:24] local.INFO: Model: Journal  
[2026-07-31 15:22:24] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:22:24] local.INFO: ID present? YES  
[2026-07-31 15:22:24] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:24] local.INFO: ID empty? NO  
[2026-07-31 15:22:24] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:24] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 15:22:24, 2026-07-31 15:22:24))  
[2026-07-31 15:22:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:30] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:30] local.INFO: Model: Journal  
[2026-07-31 15:22:30] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:22:30] local.INFO: ID present? YES  
[2026-07-31 15:22:30] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:30] local.INFO: ID empty? NO  
[2026-07-31 15:22:30] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:30] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 15:22:30, 2026-07-31 15:22:30))  
[2026-07-31 15:22:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:36] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:36] local.INFO: Model: Journal  
[2026-07-31 15:22:36] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:22:36] local.INFO: ID present? YES  
[2026-07-31 15:22:36] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:36] local.INFO: ID empty? NO  
[2026-07-31 15:22:36] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:36] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 15:22:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 15:22:36, 2026-07-31 15:22:36))  
[2026-07-31 15:22:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:37] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:37] local.INFO: Model: Journal  
[2026-07-31 15:22:37] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:22:37] local.INFO: ID present? YES  
[2026-07-31 15:22:37] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:37] local.INFO: ID empty? NO  
[2026-07-31 15:22:37] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:37] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 15:22:37, 2026-07-31 15:22:37))  
[2026-07-31 15:22:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:44] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:44] local.INFO: Model: Journal  
[2026-07-31 15:22:44] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:22:44] local.INFO: ID present? YES  
[2026-07-31 15:22:44] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:44] local.INFO: ID empty? NO  
[2026-07-31 15:22:44] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:44] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 15:22:44, 2026-07-31 15:22:44))  
[2026-07-31 15:22:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:50] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:50] local.INFO: Model: Journal  
[2026-07-31 15:22:50] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:22:50] local.INFO: ID present? YES  
[2026-07-31 15:22:50] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:50] local.INFO: ID empty? NO  
[2026-07-31 15:22:50] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:50] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 15:22:50, 2026-07-31 15:22:50))  
[2026-07-31 15:22:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:56] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:56] local.INFO: Model: Journal  
[2026-07-31 15:22:56] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 15:22:56] local.INFO: ID present? YES  
[2026-07-31 15:22:56] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:56] local.INFO: ID empty? NO  
[2026-07-31 15:22:56] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:56] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 15:22:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 15:22:56, 2026-07-31 15:22:56))  
[2026-07-31 15:22:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:22:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:22:57] local.INFO: Model: Journal  
[2026-07-31 15:22:57] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:22:57] local.INFO: ID present? YES  
[2026-07-31 15:22:57] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:22:57] local.INFO: ID empty? NO  
[2026-07-31 15:22:57] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:22:57] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:22:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:22:57, 2026-07-31 15:22:57))  
[2026-07-31 15:22:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:23:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:23:04] local.INFO: Model: Journal  
[2026-07-31 15:23:04] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:23:04] local.INFO: ID present? YES  
[2026-07-31 15:23:04] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:04] local.INFO: ID empty? NO  
[2026-07-31 15:23:04] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:04] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:23:04, 2026-07-31 15:23:04))  
[2026-07-31 15:23:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:23:10] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:23:10] local.INFO: Model: Journal  
[2026-07-31 15:23:10] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:23:10] local.INFO: ID present? YES  
[2026-07-31 15:23:10] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:10] local.INFO: ID empty? NO  
[2026-07-31 15:23:10] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:10] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:23:10, 2026-07-31 15:23:10))  
[2026-07-31 15:23:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:23:16] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:23:16] local.INFO: Model: Journal  
[2026-07-31 15:23:16] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:23:16] local.INFO: ID present? YES  
[2026-07-31 15:23:16] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:16] local.INFO: ID empty? NO  
[2026-07-31 15:23:16] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:16] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 15:23:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:23:16, 2026-07-31 15:23:16))  
[2026-07-31 15:23:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:23:17] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:23:17] local.INFO: Model: Journal  
[2026-07-31 15:23:17] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:23:17] local.INFO: ID present? YES  
[2026-07-31 15:23:17] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:17] local.INFO: ID empty? NO  
[2026-07-31 15:23:17] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:17] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:23:17, 2026-07-31 15:23:17))  
[2026-07-31 15:23:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:23:23] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:23:23] local.INFO: Model: Journal  
[2026-07-31 15:23:23] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:23:23] local.INFO: ID present? YES  
[2026-07-31 15:23:23] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:23] local.INFO: ID empty? NO  
[2026-07-31 15:23:23] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:23] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:23:23, 2026-07-31 15:23:23))  
[2026-07-31 15:23:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:23:30] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:23:30] local.INFO: Model: Journal  
[2026-07-31 15:23:30] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:23:30] local.INFO: ID present? YES  
[2026-07-31 15:23:30] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:30] local.INFO: ID empty? NO  
[2026-07-31 15:23:30] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:30] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:23:30, 2026-07-31 15:23:30))  
[2026-07-31 15:23:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 15:23:36] local.INFO: === SYNC DEBUG ===  
[2026-07-31 15:23:36] local.INFO: Model: Journal  
[2026-07-31 15:23:36] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 15:23:36] local.INFO: ID present? YES  
[2026-07-31 15:23:36] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:36] local.INFO: ID empty? NO  
[2026-07-31 15:23:36] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:36] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 15:23:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 15:23:36, 2026-07-31 15:23:36))  
[2026-07-31 15:23:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:14:29] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:29] local.INFO: Model: Customer  
[2026-07-31 17:14:29] local.INFO: Data received: {"id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","first_name":"GORDANA","last_name":"KOVACEVIC","sur_name":null,"phone":"542145124","calling_code":"+595","email":null,"residence":"undefined","id_type":"Passport","id_number":"017057370","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-07-31 17:03:18","updated_at":"2026-07-31 17:03:18"} 
[2026-07-31 17:14:29] local.INFO: ID present? YES  
[2026-07-31 17:14:29] local.INFO: ID value: 3dc6e4b5-032b-4119-9aef-d74c8ac44a4b  
[2026-07-31 17:14:29] local.INFO: ID empty? NO  
[2026-07-31 17:14:29] local.INFO: Attempting to find record with ID: 3dc6e4b5-032b-4119-9aef-d74c8ac44a4b  
[2026-07-31 17:14:29] local.INFO: Record not found, creating new with ID: 3dc6e4b5-032b-4119-9aef-d74c8ac44a4b  
[2026-07-31 17:14:29] local.INFO: Created record: {"id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","first_name":"GORDANA","last_name":"KOVACEVIC","sur_name":null,"phone":"542145124","calling_code":"+595","email":null,"residence":"undefined","id_type":"Passport","id_number":"017057370","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-07-31T14:14:29.000000Z","created_at":"2026-07-31T14:14:29.000000Z"} 
[2026-07-31 17:14:31] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:31] local.INFO: Model: Transaction  
[2026-07-31 17:14:31] local.INFO: Data received: {"id":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3609-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 17:03:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"57598524-8423-4cfb-8c4b-dfcb1c18692b","cancellation_reason":null,"customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 17:03:30","updated_at":"2026-07-31 17:03:33"} 
[2026-07-31 17:14:31] local.INFO: ID present? YES  
[2026-07-31 17:14:31] local.INFO: ID value: 171bd31c-b33d-4e66-bb52-176c23bde25a  
[2026-07-31 17:14:31] local.INFO: ID empty? NO  
[2026-07-31 17:14:31] local.INFO: Attempting to find record with ID: 171bd31c-b33d-4e66-bb52-176c23bde25a  
[2026-07-31 17:14:31] local.INFO: Record not found, creating new with ID: 171bd31c-b33d-4e66-bb52-176c23bde25a  
[2026-07-31 17:14:31] local.INFO: Created record: {"id":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3609-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 17:03:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"57598524-8423-4cfb-8c4b-dfcb1c18692b","cancellation_reason":null,"customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-07-31T14:14:31.000000Z","created_at":"2026-07-31T14:14:31.000000Z"} 
[2026-07-31 17:14:32] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:32] local.INFO: Model: Transaction  
[2026-07-31 17:14:32] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:14:32] local.INFO: ID present? YES  
[2026-07-31 17:14:32] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:32] local.INFO: ID empty? NO  
[2026-07-31 17:14:32] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:32] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 17:14:32, 2026-07-31 17:14:32))  
[2026-07-31 17:14:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:14:38] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:38] local.INFO: Model: Transaction  
[2026-07-31 17:14:38] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:14:38] local.INFO: ID present? YES  
[2026-07-31 17:14:38] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:38] local.INFO: ID empty? NO  
[2026-07-31 17:14:38] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:38] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 17:14:38, 2026-07-31 17:14:38))  
[2026-07-31 17:14:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:14:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:45] local.INFO: Model: Transaction  
[2026-07-31 17:14:45] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:14:45] local.INFO: ID present? YES  
[2026-07-31 17:14:45] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:45] local.INFO: ID empty? NO  
[2026-07-31 17:14:45] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:45] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 17:14:45, 2026-07-31 17:14:45))  
[2026-07-31 17:14:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:14:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:51] local.INFO: Model: Transaction  
[2026-07-31 17:14:51] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:14:51] local.INFO: ID present? YES  
[2026-07-31 17:14:51] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:51] local.INFO: ID empty? NO  
[2026-07-31 17:14:51] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:51] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 17:14:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 17:14:51, 2026-07-31 17:14:51))  
[2026-07-31 17:14:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:14:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:52] local.INFO: Model: Transaction  
[2026-07-31 17:14:52] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:14:52] local.INFO: ID present? YES  
[2026-07-31 17:14:52] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:14:52] local.INFO: ID empty? NO  
[2026-07-31 17:14:52] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:14:52] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:14:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 17:14:52, 2026-07-31 17:14:52))  
[2026-07-31 17:14:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:14:58] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:14:58] local.INFO: Model: Transaction  
[2026-07-31 17:14:58] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:14:58] local.INFO: ID present? YES  
[2026-07-31 17:14:58] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:14:58] local.INFO: ID empty? NO  
[2026-07-31 17:14:58] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:14:58] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:14:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 17:14:58, 2026-07-31 17:14:58))  
[2026-07-31 17:14:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:04] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:04] local.INFO: Model: Transaction  
[2026-07-31 17:15:04] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:15:04] local.INFO: ID present? YES  
[2026-07-31 17:15:04] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:15:04] local.INFO: ID empty? NO  
[2026-07-31 17:15:04] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:15:04] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:15:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 17:15:04, 2026-07-31 17:15:04))  
[2026-07-31 17:15:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:11] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:11] local.INFO: Model: Transaction  
[2026-07-31 17:15:11] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:15:11] local.INFO: ID present? YES  
[2026-07-31 17:15:11] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:15:11] local.INFO: ID empty? NO  
[2026-07-31 17:15:11] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:15:11] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 17:15:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 17:15:11, 2026-07-31 17:15:11))  
[2026-07-31 17:15:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:12] local.INFO: Model: Journal  
[2026-07-31 17:15:12] local.INFO: Data received: {"id":"16a2de4b-a6d6-4fdf-af89-c46cdb9be8d9","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3609-2026","uniqid":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"171bd31c-b33d-4e66-bb52-176c23bde25a","customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 17:03:33","updated_at":"2026-07-31 17:03:33"} 
[2026-07-31 17:15:12] local.INFO: ID present? YES  
[2026-07-31 17:15:12] local.INFO: ID value: 16a2de4b-a6d6-4fdf-af89-c46cdb9be8d9  
[2026-07-31 17:15:12] local.INFO: ID empty? NO  
[2026-07-31 17:15:12] local.INFO: Attempting to find record with ID: 16a2de4b-a6d6-4fdf-af89-c46cdb9be8d9  
[2026-07-31 17:15:12] local.INFO: Record not found, creating new with ID: 16a2de4b-a6d6-4fdf-af89-c46cdb9be8d9  
[2026-07-31 17:15:12] local.INFO: Created record: {"id":"16a2de4b-a6d6-4fdf-af89-c46cdb9be8d9","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3609-2026","uniqid":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"171bd31c-b33d-4e66-bb52-176c23bde25a","customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T14:15:12.000000Z","created_at":"2026-07-31T14:15:12.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-117746.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":125058.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T12:21:54.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 17:15:14] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:14] local.INFO: Model: Journal  
[2026-07-31 17:15:14] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:14] local.INFO: ID present? YES  
[2026-07-31 17:15:14] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:14] local.INFO: ID empty? NO  
[2026-07-31 17:15:14] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:14] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:14, 2026-07-31 17:15:14))  
[2026-07-31 17:15:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:20] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:20] local.INFO: Model: Journal  
[2026-07-31 17:15:20] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:20] local.INFO: ID present? YES  
[2026-07-31 17:15:20] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:20] local.INFO: ID empty? NO  
[2026-07-31 17:15:20] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:20] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:20, 2026-07-31 17:15:20))  
[2026-07-31 17:15:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:26] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:26] local.INFO: Model: Journal  
[2026-07-31 17:15:26] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:26] local.INFO: ID present? YES  
[2026-07-31 17:15:26] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:26] local.INFO: ID empty? NO  
[2026-07-31 17:15:26] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:26] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:26, 2026-07-31 17:15:26))  
[2026-07-31 17:15:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:33] local.INFO: Model: Journal  
[2026-07-31 17:15:33] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:33] local.INFO: ID present? YES  
[2026-07-31 17:15:33] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:33] local.INFO: ID empty? NO  
[2026-07-31 17:15:33] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:33] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 17:15:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:33, 2026-07-31 17:15:33))  
[2026-07-31 17:15:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:34] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:34] local.INFO: Model: Journal  
[2026-07-31 17:15:34] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:34] local.INFO: ID present? YES  
[2026-07-31 17:15:34] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:34] local.INFO: ID empty? NO  
[2026-07-31 17:15:34] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:34] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:34, 2026-07-31 17:15:34))  
[2026-07-31 17:15:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:40] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:40] local.INFO: Model: Journal  
[2026-07-31 17:15:40] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:40] local.INFO: ID present? YES  
[2026-07-31 17:15:40] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:40] local.INFO: ID empty? NO  
[2026-07-31 17:15:40] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:40] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:40, 2026-07-31 17:15:40))  
[2026-07-31 17:15:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:46] local.INFO: Model: Journal  
[2026-07-31 17:15:46] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:46] local.INFO: ID present? YES  
[2026-07-31 17:15:46] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:46] local.INFO: ID empty? NO  
[2026-07-31 17:15:46] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:46] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:46, 2026-07-31 17:15:46))  
[2026-07-31 17:15:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:53] local.INFO: Model: Journal  
[2026-07-31 17:15:53] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:15:53] local.INFO: ID present? YES  
[2026-07-31 17:15:53] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:53] local.INFO: ID empty? NO  
[2026-07-31 17:15:53] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:53] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 17:15:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:15:53, 2026-07-31 17:15:53))  
[2026-07-31 17:15:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:15:54] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:54] local.INFO: Model: Journal  
[2026-07-31 17:15:54] local.INFO: Data received: {"id":"8898e3ae-3f77-4f56-adc9-be02de2897f8","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"171bd31c-b33d-4e66-bb52-176c23bde25a","customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 17:03:33","updated_at":"2026-07-31 17:03:33"} 
[2026-07-31 17:15:54] local.INFO: ID present? YES  
[2026-07-31 17:15:54] local.INFO: ID value: 8898e3ae-3f77-4f56-adc9-be02de2897f8  
[2026-07-31 17:15:54] local.INFO: ID empty? NO  
[2026-07-31 17:15:54] local.INFO: Attempting to find record with ID: 8898e3ae-3f77-4f56-adc9-be02de2897f8  
[2026-07-31 17:15:54] local.INFO: Record not found, creating new with ID: 8898e3ae-3f77-4f56-adc9-be02de2897f8  
[2026-07-31 17:15:54] local.INFO: Created record: {"id":"8898e3ae-3f77-4f56-adc9-be02de2897f8","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"171bd31c-b33d-4e66-bb52-176c23bde25a","customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-31T14:15:54.000000Z","created_at":"2026-07-31T14:15:54.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-3685.0,"debit_total":18745.0,"credit_total":"22430.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T09:05:49.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 17:15:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:15:55] local.INFO: Model: Journal  
[2026-07-31 17:15:55] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:15:55] local.INFO: ID present? YES  
[2026-07-31 17:15:55] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:15:55] local.INFO: ID empty? NO  
[2026-07-31 17:15:55] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:15:55] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:15:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 17:15:55, 2026-07-31 17:15:55))  
[2026-07-31 17:15:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:01] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:01] local.INFO: Model: Journal  
[2026-07-31 17:16:01] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:01] local.INFO: ID present? YES  
[2026-07-31 17:16:01] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:01] local.INFO: ID empty? NO  
[2026-07-31 17:16:01] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:01] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 17:16:01, 2026-07-31 17:16:01))  
[2026-07-31 17:16:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:08] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:08] local.INFO: Model: Journal  
[2026-07-31 17:16:08] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:08] local.INFO: ID present? YES  
[2026-07-31 17:16:08] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:08] local.INFO: ID empty? NO  
[2026-07-31 17:16:08] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:08] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 17:16:08, 2026-07-31 17:16:08))  
[2026-07-31 17:16:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:14] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:14] local.INFO: Model: Journal  
[2026-07-31 17:16:14] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:14] local.INFO: ID present? YES  
[2026-07-31 17:16:14] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:14] local.INFO: ID empty? NO  
[2026-07-31 17:16:14] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:14] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 17:16:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 17:16:14, 2026-07-31 17:16:14))  
[2026-07-31 17:16:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:15] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:15] local.INFO: Model: Journal  
[2026-07-31 17:16:15] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:16:15] local.INFO: ID present? YES  
[2026-07-31 17:16:15] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:15] local.INFO: ID empty? NO  
[2026-07-31 17:16:15] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:15] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 17:16:15, 2026-07-31 17:16:15))  
[2026-07-31 17:16:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:21] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:21] local.INFO: Model: Journal  
[2026-07-31 17:16:21] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:16:21] local.INFO: ID present? YES  
[2026-07-31 17:16:21] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:21] local.INFO: ID empty? NO  
[2026-07-31 17:16:21] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:21] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 17:16:21, 2026-07-31 17:16:21))  
[2026-07-31 17:16:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:27] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:27] local.INFO: Model: Journal  
[2026-07-31 17:16:27] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:16:27] local.INFO: ID present? YES  
[2026-07-31 17:16:27] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:27] local.INFO: ID empty? NO  
[2026-07-31 17:16:27] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:27] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 17:16:27, 2026-07-31 17:16:27))  
[2026-07-31 17:16:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:34] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:34] local.INFO: Model: Journal  
[2026-07-31 17:16:34] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 17:16:34] local.INFO: ID present? YES  
[2026-07-31 17:16:34] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:34] local.INFO: ID empty? NO  
[2026-07-31 17:16:34] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:34] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 17:16:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 17:16:34, 2026-07-31 17:16:34))  
[2026-07-31 17:16:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:35] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:35] local.INFO: Model: Journal  
[2026-07-31 17:16:35] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:35] local.INFO: ID present? YES  
[2026-07-31 17:16:35] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:35] local.INFO: ID empty? NO  
[2026-07-31 17:16:35] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:35] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:16:35, 2026-07-31 17:16:35))  
[2026-07-31 17:16:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:41] local.INFO: Model: Journal  
[2026-07-31 17:16:41] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:41] local.INFO: ID present? YES  
[2026-07-31 17:16:41] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:41] local.INFO: ID empty? NO  
[2026-07-31 17:16:41] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:41] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:16:41, 2026-07-31 17:16:41))  
[2026-07-31 17:16:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:47] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:47] local.INFO: Model: Journal  
[2026-07-31 17:16:47] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:47] local.INFO: ID present? YES  
[2026-07-31 17:16:47] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:47] local.INFO: ID empty? NO  
[2026-07-31 17:16:47] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:47] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:16:47, 2026-07-31 17:16:47))  
[2026-07-31 17:16:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:54] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:54] local.INFO: Model: Journal  
[2026-07-31 17:16:54] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:54] local.INFO: ID present? YES  
[2026-07-31 17:16:54] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:54] local.INFO: ID empty? NO  
[2026-07-31 17:16:54] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:54] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 17:16:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:16:54, 2026-07-31 17:16:54))  
[2026-07-31 17:16:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:16:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:55] local.INFO: Model: Journal  
[2026-07-31 17:16:55] local.INFO: Data received: {"id":"da05a2e6-ce3e-4509-b84c-91b97ffea57e","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"171bd31c-b33d-4e66-bb52-176c23bde25a","customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 17:03:33","updated_at":"2026-07-31 17:03:33"} 
[2026-07-31 17:16:55] local.INFO: ID present? YES  
[2026-07-31 17:16:55] local.INFO: ID value: da05a2e6-ce3e-4509-b84c-91b97ffea57e  
[2026-07-31 17:16:55] local.INFO: ID empty? NO  
[2026-07-31 17:16:55] local.INFO: Attempting to find record with ID: da05a2e6-ce3e-4509-b84c-91b97ffea57e  
[2026-07-31 17:16:55] local.INFO: Record not found, creating new with ID: da05a2e6-ce3e-4509-b84c-91b97ffea57e  
[2026-07-31 17:16:55] local.INFO: Created record: {"id":"da05a2e6-ce3e-4509-b84c-91b97ffea57e","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"171bd31c-b33d-4e66-bb52-176c23bde25a","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"171bd31c-b33d-4e66-bb52-176c23bde25a","customer_id":"3dc6e4b5-032b-4119-9aef-d74c8ac44a4b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T14:16:55.000000Z","created_at":"2026-07-31T14:16:55.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":906310.5,"debit_total":"21307422.20","credit_total":20401111.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T12:21:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 17:16:56] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:16:56] local.INFO: Model: Journal  
[2026-07-31 17:16:56] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:16:56] local.INFO: ID present? YES  
[2026-07-31 17:16:56] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:16:56] local.INFO: ID empty? NO  
[2026-07-31 17:16:56] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:16:56] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:16:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:16:56, 2026-07-31 17:16:56))  
[2026-07-31 17:16:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:17:03] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:17:03] local.INFO: Model: Journal  
[2026-07-31 17:17:03] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:17:03] local.INFO: ID present? YES  
[2026-07-31 17:17:03] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:03] local.INFO: ID empty? NO  
[2026-07-31 17:17:03] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:03] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:17:03, 2026-07-31 17:17:03))  
[2026-07-31 17:17:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:17:10] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:17:10] local.INFO: Model: Journal  
[2026-07-31 17:17:10] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:17:10] local.INFO: ID present? YES  
[2026-07-31 17:17:10] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:10] local.INFO: ID empty? NO  
[2026-07-31 17:17:10] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:10] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:17:10, 2026-07-31 17:17:10))  
[2026-07-31 17:17:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 17:17:16] local.INFO: === SYNC DEBUG ===  
[2026-07-31 17:17:16] local.INFO: Model: Journal  
[2026-07-31 17:17:16] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 17:17:16] local.INFO: ID present? YES  
[2026-07-31 17:17:16] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:16] local.INFO: ID empty? NO  
[2026-07-31 17:17:16] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:16] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 17:17:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 17:17:16, 2026-07-31 17:17:16))  
[2026-07-31 17:17:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:01:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:01:46] local.INFO: Model: Transaction  
[2026-07-31 18:01:46] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:01:46] local.INFO: ID present? YES  
[2026-07-31 18:01:46] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:46] local.INFO: ID empty? NO  
[2026-07-31 18:01:46] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:46] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:01:46, 2026-07-31 18:01:46))  
[2026-07-31 18:01:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:01:52] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:01:52] local.INFO: Model: Transaction  
[2026-07-31 18:01:52] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:01:52] local.INFO: ID present? YES  
[2026-07-31 18:01:52] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:52] local.INFO: ID empty? NO  
[2026-07-31 18:01:52] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:52] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:01:52, 2026-07-31 18:01:52))  
[2026-07-31 18:01:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:01:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:01:59] local.INFO: Model: Transaction  
[2026-07-31 18:01:59] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:01:59] local.INFO: ID present? YES  
[2026-07-31 18:01:59] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:59] local.INFO: ID empty? NO  
[2026-07-31 18:01:59] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:59] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:01:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:01:59, 2026-07-31 18:01:59))  
[2026-07-31 18:01:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:05] local.INFO: Model: Transaction  
[2026-07-31 18:02:05] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:05] local.INFO: ID present? YES  
[2026-07-31 18:02:05] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:02:05] local.INFO: ID empty? NO  
[2026-07-31 18:02:05] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:02:05] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:02:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:02:05, 2026-07-31 18:02:05))  
[2026-07-31 18:02:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:06] local.INFO: Model: Transaction  
[2026-07-31 18:02:06] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:02:06] local.INFO: ID present? YES  
[2026-07-31 18:02:06] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:06] local.INFO: ID empty? NO  
[2026-07-31 18:02:06] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:06] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:02:06, 2026-07-31 18:02:06))  
[2026-07-31 18:02:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:13] local.INFO: Model: Transaction  
[2026-07-31 18:02:13] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:02:13] local.INFO: ID present? YES  
[2026-07-31 18:02:13] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:13] local.INFO: ID empty? NO  
[2026-07-31 18:02:13] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:13] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:02:13, 2026-07-31 18:02:13))  
[2026-07-31 18:02:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:19] local.INFO: Model: Transaction  
[2026-07-31 18:02:19] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:02:19] local.INFO: ID present? YES  
[2026-07-31 18:02:19] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:19] local.INFO: ID empty? NO  
[2026-07-31 18:02:19] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:19] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:02:19, 2026-07-31 18:02:19))  
[2026-07-31 18:02:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:25] local.INFO: Model: Transaction  
[2026-07-31 18:02:25] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:02:25] local.INFO: ID present? YES  
[2026-07-31 18:02:25] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:25] local.INFO: ID empty? NO  
[2026-07-31 18:02:25] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:25] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:02:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:02:25, 2026-07-31 18:02:25))  
[2026-07-31 18:02:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:27] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:27] local.INFO: Model: Journal  
[2026-07-31 18:02:27] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:27] local.INFO: ID present? YES  
[2026-07-31 18:02:27] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:27] local.INFO: ID empty? NO  
[2026-07-31 18:02:27] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:27] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:02:27, 2026-07-31 18:02:27))  
[2026-07-31 18:02:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:33] local.INFO: Model: Journal  
[2026-07-31 18:02:33] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:33] local.INFO: ID present? YES  
[2026-07-31 18:02:33] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:33] local.INFO: ID empty? NO  
[2026-07-31 18:02:33] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:33] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:02:33, 2026-07-31 18:02:33))  
[2026-07-31 18:02:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:39] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:39] local.INFO: Model: Journal  
[2026-07-31 18:02:39] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:39] local.INFO: ID present? YES  
[2026-07-31 18:02:39] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:39] local.INFO: ID empty? NO  
[2026-07-31 18:02:39] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:39] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:02:39, 2026-07-31 18:02:39))  
[2026-07-31 18:02:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:46] local.INFO: Model: Journal  
[2026-07-31 18:02:46] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:46] local.INFO: ID present? YES  
[2026-07-31 18:02:46] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:46] local.INFO: ID empty? NO  
[2026-07-31 18:02:46] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:46] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:02:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:02:46, 2026-07-31 18:02:46))  
[2026-07-31 18:02:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:47] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:47] local.INFO: Model: Journal  
[2026-07-31 18:02:47] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:47] local.INFO: ID present? YES  
[2026-07-31 18:02:47] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:47] local.INFO: ID empty? NO  
[2026-07-31 18:02:47] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:47] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:02:47, 2026-07-31 18:02:47))  
[2026-07-31 18:02:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:53] local.INFO: Model: Journal  
[2026-07-31 18:02:53] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:53] local.INFO: ID present? YES  
[2026-07-31 18:02:53] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:53] local.INFO: ID empty? NO  
[2026-07-31 18:02:53] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:53] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:02:53, 2026-07-31 18:02:53))  
[2026-07-31 18:02:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:02:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:02:59] local.INFO: Model: Journal  
[2026-07-31 18:02:59] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:02:59] local.INFO: ID present? YES  
[2026-07-31 18:02:59] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:59] local.INFO: ID empty? NO  
[2026-07-31 18:02:59] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:59] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:02:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:02:59, 2026-07-31 18:02:59))  
[2026-07-31 18:02:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:06] local.INFO: Model: Journal  
[2026-07-31 18:03:06] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:03:06] local.INFO: ID present? YES  
[2026-07-31 18:03:06] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:03:06] local.INFO: ID empty? NO  
[2026-07-31 18:03:06] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:03:06] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:03:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:03:06, 2026-07-31 18:03:06))  
[2026-07-31 18:03:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:07] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:07] local.INFO: Model: Journal  
[2026-07-31 18:03:07] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:03:07] local.INFO: ID present? YES  
[2026-07-31 18:03:07] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:07] local.INFO: ID empty? NO  
[2026-07-31 18:03:07] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:07] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:03:07, 2026-07-31 18:03:07))  
[2026-07-31 18:03:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:13] local.INFO: Model: Journal  
[2026-07-31 18:03:13] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:03:13] local.INFO: ID present? YES  
[2026-07-31 18:03:13] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:13] local.INFO: ID empty? NO  
[2026-07-31 18:03:13] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:13] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:03:13, 2026-07-31 18:03:13))  
[2026-07-31 18:03:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:19] local.INFO: Model: Journal  
[2026-07-31 18:03:19] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:03:19] local.INFO: ID present? YES  
[2026-07-31 18:03:19] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:19] local.INFO: ID empty? NO  
[2026-07-31 18:03:19] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:19] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:03:19, 2026-07-31 18:03:19))  
[2026-07-31 18:03:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:25] local.INFO: Model: Journal  
[2026-07-31 18:03:25] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:03:25] local.INFO: ID present? YES  
[2026-07-31 18:03:25] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:25] local.INFO: ID empty? NO  
[2026-07-31 18:03:25] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:25] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:03:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:03:25, 2026-07-31 18:03:25))  
[2026-07-31 18:03:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:27] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:27] local.INFO: Model: Journal  
[2026-07-31 18:03:27] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:03:27] local.INFO: ID present? YES  
[2026-07-31 18:03:27] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:27] local.INFO: ID empty? NO  
[2026-07-31 18:03:27] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:27] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:03:27, 2026-07-31 18:03:27))  
[2026-07-31 18:03:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:33] local.INFO: Model: Journal  
[2026-07-31 18:03:33] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:03:33] local.INFO: ID present? YES  
[2026-07-31 18:03:33] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:33] local.INFO: ID empty? NO  
[2026-07-31 18:03:33] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:33] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:03:33, 2026-07-31 18:03:33))  
[2026-07-31 18:03:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:39] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:39] local.INFO: Model: Journal  
[2026-07-31 18:03:39] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:03:39] local.INFO: ID present? YES  
[2026-07-31 18:03:39] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:39] local.INFO: ID empty? NO  
[2026-07-31 18:03:39] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:39] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:03:39, 2026-07-31 18:03:39))  
[2026-07-31 18:03:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:45] local.INFO: Model: Journal  
[2026-07-31 18:03:45] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:03:45] local.INFO: ID present? YES  
[2026-07-31 18:03:45] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:45] local.INFO: ID empty? NO  
[2026-07-31 18:03:45] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:45] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:03:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:03:45, 2026-07-31 18:03:45))  
[2026-07-31 18:03:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:47] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:47] local.INFO: Model: Journal  
[2026-07-31 18:03:47] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:03:47] local.INFO: ID present? YES  
[2026-07-31 18:03:47] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:47] local.INFO: ID empty? NO  
[2026-07-31 18:03:47] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:47] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:03:47, 2026-07-31 18:03:47))  
[2026-07-31 18:03:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:53] local.INFO: Model: Journal  
[2026-07-31 18:03:53] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:03:53] local.INFO: ID present? YES  
[2026-07-31 18:03:53] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:53] local.INFO: ID empty? NO  
[2026-07-31 18:03:53] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:53] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:03:53, 2026-07-31 18:03:53))  
[2026-07-31 18:03:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:03:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:03:59] local.INFO: Model: Journal  
[2026-07-31 18:03:59] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:03:59] local.INFO: ID present? YES  
[2026-07-31 18:03:59] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:59] local.INFO: ID empty? NO  
[2026-07-31 18:03:59] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:59] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:03:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:03:59, 2026-07-31 18:03:59))  
[2026-07-31 18:03:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:04:05] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:04:05] local.INFO: Model: Journal  
[2026-07-31 18:04:05] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:04:05] local.INFO: ID present? YES  
[2026-07-31 18:04:05] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:04:05] local.INFO: ID empty? NO  
[2026-07-31 18:04:05] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:04:05] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:04:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:04:05, 2026-07-31 18:04:05))  
[2026-07-31 18:04:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:04:07] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:04:07] local.INFO: Model: Journal  
[2026-07-31 18:04:07] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:04:07] local.INFO: ID present? YES  
[2026-07-31 18:04:07] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:07] local.INFO: ID empty? NO  
[2026-07-31 18:04:07] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:07] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:04:07, 2026-07-31 18:04:07))  
[2026-07-31 18:04:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:04:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:04:13] local.INFO: Model: Journal  
[2026-07-31 18:04:13] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:04:13] local.INFO: ID present? YES  
[2026-07-31 18:04:13] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:13] local.INFO: ID empty? NO  
[2026-07-31 18:04:13] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:13] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:04:13, 2026-07-31 18:04:13))  
[2026-07-31 18:04:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:04:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:04:19] local.INFO: Model: Journal  
[2026-07-31 18:04:19] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:04:19] local.INFO: ID present? YES  
[2026-07-31 18:04:19] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:19] local.INFO: ID empty? NO  
[2026-07-31 18:04:19] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:19] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:04:19, 2026-07-31 18:04:19))  
[2026-07-31 18:04:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:04:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:04:25] local.INFO: Model: Journal  
[2026-07-31 18:04:25] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:04:25] local.INFO: ID present? YES  
[2026-07-31 18:04:25] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:25] local.INFO: ID empty? NO  
[2026-07-31 18:04:25] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:25] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:04:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:04:25, 2026-07-31 18:04:25))  
[2026-07-31 18:04:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:13] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:13] local.INFO: Model: Transaction  
[2026-07-31 18:46:13] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:46:13] local.INFO: ID present? YES  
[2026-07-31 18:46:13] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:13] local.INFO: ID empty? NO  
[2026-07-31 18:46:13] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:13] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:46:13, 2026-07-31 18:46:13))  
[2026-07-31 18:46:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:19] local.INFO: Model: Transaction  
[2026-07-31 18:46:19] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:46:19] local.INFO: ID present? YES  
[2026-07-31 18:46:19] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:19] local.INFO: ID empty? NO  
[2026-07-31 18:46:19] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:19] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:46:19, 2026-07-31 18:46:19))  
[2026-07-31 18:46:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:25] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:25] local.INFO: Model: Transaction  
[2026-07-31 18:46:25] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:46:25] local.INFO: ID present? YES  
[2026-07-31 18:46:25] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:25] local.INFO: ID empty? NO  
[2026-07-31 18:46:25] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:25] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:46:25, 2026-07-31 18:46:25))  
[2026-07-31 18:46:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:31] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:31] local.INFO: Model: Transaction  
[2026-07-31 18:46:31] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:46:31] local.INFO: ID present? YES  
[2026-07-31 18:46:31] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:31] local.INFO: ID empty? NO  
[2026-07-31 18:46:31] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:31] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-07-31 18:46:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-07-31 18:46:31, 2026-07-31 18:46:31))  
[2026-07-31 18:46:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:33] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:33] local.INFO: Model: Transaction  
[2026-07-31 18:46:33] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:46:33] local.INFO: ID present? YES  
[2026-07-31 18:46:33] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:33] local.INFO: ID empty? NO  
[2026-07-31 18:46:33] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:33] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:46:33, 2026-07-31 18:46:33))  
[2026-07-31 18:46:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:39] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:39] local.INFO: Model: Transaction  
[2026-07-31 18:46:39] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:46:39] local.INFO: ID present? YES  
[2026-07-31 18:46:39] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:39] local.INFO: ID empty? NO  
[2026-07-31 18:46:39] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:39] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:46:39, 2026-07-31 18:46:39))  
[2026-07-31 18:46:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:45] local.INFO: Model: Transaction  
[2026-07-31 18:46:45] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:46:45] local.INFO: ID present? YES  
[2026-07-31 18:46:45] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:45] local.INFO: ID empty? NO  
[2026-07-31 18:46:45] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:45] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:46:45, 2026-07-31 18:46:45))  
[2026-07-31 18:46:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:51] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:51] local.INFO: Model: Transaction  
[2026-07-31 18:46:51] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:46:51] local.INFO: ID present? YES  
[2026-07-31 18:46:51] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:51] local.INFO: ID empty? NO  
[2026-07-31 18:46:51] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:51] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-07-31 18:46:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-07-31 18:46:51, 2026-07-31 18:46:51))  
[2026-07-31 18:46:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:46:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:53] local.INFO: Model: Journal  
[2026-07-31 18:46:53] local.INFO: Data received: {"id":"00b0fe78-767d-4b0e-956b-44c4e213ff74","type":"Debit","amount":"6900.00","rate":null,"lcy_amount":"6900.000000","narrative":"MPESA WITHDRAWAL 31-07-2026","uniqid":"9b9738a3-d83f-4006-a58f-13a48dbb2559","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 18:44:29","updated_at":"2026-07-31 18:44:31"} 
[2026-07-31 18:46:53] local.INFO: ID present? YES  
[2026-07-31 18:46:53] local.INFO: ID value: 00b0fe78-767d-4b0e-956b-44c4e213ff74  
[2026-07-31 18:46:53] local.INFO: ID empty? NO  
[2026-07-31 18:46:53] local.INFO: Attempting to find record with ID: 00b0fe78-767d-4b0e-956b-44c4e213ff74  
[2026-07-31 18:46:53] local.INFO: Record not found, creating new with ID: 00b0fe78-767d-4b0e-956b-44c4e213ff74  
[2026-07-31 18:46:53] local.INFO: Created record: {"id":"00b0fe78-767d-4b0e-956b-44c4e213ff74","type":"Debit","amount":"6900.00","rate":null,"lcy_amount":"6900.000000","narrative":"MPESA WITHDRAWAL 31-07-2026","uniqid":"9b9738a3-d83f-4006-a58f-13a48dbb2559","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T15:46:53.000000Z","created_at":"2026-07-31T15:46:53.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2155660.0,"debit_total":4570040.0,"credit_total":"6725700.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-31T09:05:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 18:46:54] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:54] local.INFO: Model: Journal  
[2026-07-31 18:46:54] local.INFO: Data received: {"id":"13c72f4f-b1ee-4a1d-a441-69e4199ee873","type":"Credit","amount":"9986.00","rate":null,"lcy_amount":"9986.000000","narrative":"WU PAID OUT SA 31-07-2026","uniqid":"b645cc60-b099-4ab8-83b5-0714479b63ba","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 18:44:57","updated_at":"2026-07-31 18:45:00"} 
[2026-07-31 18:46:54] local.INFO: ID present? YES  
[2026-07-31 18:46:54] local.INFO: ID value: 13c72f4f-b1ee-4a1d-a441-69e4199ee873  
[2026-07-31 18:46:54] local.INFO: ID empty? NO  
[2026-07-31 18:46:54] local.INFO: Attempting to find record with ID: 13c72f4f-b1ee-4a1d-a441-69e4199ee873  
[2026-07-31 18:46:54] local.INFO: Record not found, creating new with ID: 13c72f4f-b1ee-4a1d-a441-69e4199ee873  
[2026-07-31 18:46:54] local.INFO: Created record: {"id":"13c72f4f-b1ee-4a1d-a441-69e4199ee873","type":"Credit","amount":"9986.00","rate":null,"lcy_amount":"9986.000000","narrative":"WU PAID OUT SA 31-07-2026","uniqid":"b645cc60-b099-4ab8-83b5-0714479b63ba","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T15:46:54.000000Z","created_at":"2026-07-31T15:46:54.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":896324.5,"debit_total":"21307422.20","credit_total":20411097.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T14:16:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 18:46:55] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:46:55] local.INFO: Model: Journal  
[2026-07-31 18:46:55] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:46:55] local.INFO: ID present? YES  
[2026-07-31 18:46:55] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:46:55] local.INFO: ID empty? NO  
[2026-07-31 18:46:55] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:46:55] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:46:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:46:55, 2026-07-31 18:46:55))  
[2026-07-31 18:46:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:01] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:01] local.INFO: Model: Journal  
[2026-07-31 18:47:01] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:01] local.INFO: ID present? YES  
[2026-07-31 18:47:01] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:01] local.INFO: ID empty? NO  
[2026-07-31 18:47:01] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:01] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:47:01, 2026-07-31 18:47:01))  
[2026-07-31 18:47:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:07] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:07] local.INFO: Model: Journal  
[2026-07-31 18:47:07] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:07] local.INFO: ID present? YES  
[2026-07-31 18:47:07] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:07] local.INFO: ID empty? NO  
[2026-07-31 18:47:07] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:07] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:47:07, 2026-07-31 18:47:07))  
[2026-07-31 18:47:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:14] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:14] local.INFO: Model: Journal  
[2026-07-31 18:47:14] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:14] local.INFO: ID present? YES  
[2026-07-31 18:47:14] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:14] local.INFO: ID empty? NO  
[2026-07-31 18:47:14] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:14] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-07-31 18:47:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:47:14, 2026-07-31 18:47:14))  
[2026-07-31 18:47:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:15] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:15] local.INFO: Model: Journal  
[2026-07-31 18:47:15] local.INFO: Data received: {"id":"549fe239-e54b-4a43-83af-2815c6c0de9c","type":"Debit","amount":"360.00","rate":null,"lcy_amount":"54432.000000","narrative":"EUR WITHDRAWAL","uniqid":"e2458cf1-cb9e-4e5e-ae35-c25be24d9817","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 18:46:02","updated_at":"2026-07-31 18:46:04"} 
[2026-07-31 18:47:15] local.INFO: ID present? YES  
[2026-07-31 18:47:15] local.INFO: ID value: 549fe239-e54b-4a43-83af-2815c6c0de9c  
[2026-07-31 18:47:15] local.INFO: ID empty? NO  
[2026-07-31 18:47:15] local.INFO: Attempting to find record with ID: 549fe239-e54b-4a43-83af-2815c6c0de9c  
[2026-07-31 18:47:15] local.INFO: Record not found, creating new with ID: 549fe239-e54b-4a43-83af-2815c6c0de9c  
[2026-07-31 18:47:15] local.INFO: Created record: {"id":"549fe239-e54b-4a43-83af-2815c6c0de9c","type":"Debit","amount":"360.00","rate":null,"lcy_amount":"54432.000000","narrative":"EUR WITHDRAWAL","uniqid":"e2458cf1-cb9e-4e5e-ae35-c25be24d9817","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-31T15:47:15.000000Z","created_at":"2026-07-31T15:47:15.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":10065.0,"debit_total":16405.0,"credit_total":"6340.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-28T17:25:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 18:47:16] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:16] local.INFO: Model: Journal  
[2026-07-31 18:47:16] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:16] local.INFO: ID present? YES  
[2026-07-31 18:47:16] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:16] local.INFO: ID empty? NO  
[2026-07-31 18:47:16] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:16] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:47:16, 2026-07-31 18:47:16))  
[2026-07-31 18:47:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:22] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:22] local.INFO: Model: Journal  
[2026-07-31 18:47:22] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:22] local.INFO: ID present? YES  
[2026-07-31 18:47:22] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:22] local.INFO: ID empty? NO  
[2026-07-31 18:47:22] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:22] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:47:22, 2026-07-31 18:47:22))  
[2026-07-31 18:47:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:29] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:29] local.INFO: Model: Journal  
[2026-07-31 18:47:29] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:29] local.INFO: ID present? YES  
[2026-07-31 18:47:29] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:29] local.INFO: ID empty? NO  
[2026-07-31 18:47:29] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:29] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:47:29, 2026-07-31 18:47:29))  
[2026-07-31 18:47:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:35] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:35] local.INFO: Model: Journal  
[2026-07-31 18:47:35] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:35] local.INFO: ID present? YES  
[2026-07-31 18:47:35] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:35] local.INFO: ID empty? NO  
[2026-07-31 18:47:35] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:35] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-07-31 18:47:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:47:35, 2026-07-31 18:47:35))  
[2026-07-31 18:47:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:36] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:36] local.INFO: Model: Journal  
[2026-07-31 18:47:36] local.INFO: Data received: {"id":"89f81719-eb19-4172-a474-f7912f45b674","type":"Credit","amount":"100.00","rate":null,"lcy_amount":"12900.000000","narrative":"USD WITHDRAWAL","uniqid":"a9d5d213-45b6-4104-b670-c0695e967131","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 18:45:44","updated_at":"2026-07-31 18:45:45"} 
[2026-07-31 18:47:36] local.INFO: ID present? YES  
[2026-07-31 18:47:36] local.INFO: ID value: 89f81719-eb19-4172-a474-f7912f45b674  
[2026-07-31 18:47:36] local.INFO: ID empty? NO  
[2026-07-31 18:47:36] local.INFO: Attempting to find record with ID: 89f81719-eb19-4172-a474-f7912f45b674  
[2026-07-31 18:47:36] local.INFO: Record not found, creating new with ID: 89f81719-eb19-4172-a474-f7912f45b674  
[2026-07-31 18:47:36] local.INFO: Created record: {"id":"89f81719-eb19-4172-a474-f7912f45b674","type":"Credit","amount":"100.00","rate":null,"lcy_amount":"12900.000000","narrative":"USD WITHDRAWAL","uniqid":"a9d5d213-45b6-4104-b670-c0695e967131","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T15:47:36.000000Z","created_at":"2026-07-31T15:47:36.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-361.8899999999999863575794734060764312744140625,"debit_total":"77087.11","credit_total":77449.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T12:21:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 18:47:37] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:37] local.INFO: Model: Journal  
[2026-07-31 18:47:37] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:47:37] local.INFO: ID present? YES  
[2026-07-31 18:47:37] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:37] local.INFO: ID empty? NO  
[2026-07-31 18:47:37] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:37] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:47:37, 2026-07-31 18:47:37))  
[2026-07-31 18:47:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:43] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:43] local.INFO: Model: Journal  
[2026-07-31 18:47:43] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:47:43] local.INFO: ID present? YES  
[2026-07-31 18:47:43] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:43] local.INFO: ID empty? NO  
[2026-07-31 18:47:43] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:43] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:47:43, 2026-07-31 18:47:43))  
[2026-07-31 18:47:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:50] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:50] local.INFO: Model: Journal  
[2026-07-31 18:47:50] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:47:50] local.INFO: ID present? YES  
[2026-07-31 18:47:50] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:50] local.INFO: ID empty? NO  
[2026-07-31 18:47:50] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:50] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:47:50, 2026-07-31 18:47:50))  
[2026-07-31 18:47:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:56] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:56] local.INFO: Model: Journal  
[2026-07-31 18:47:56] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:47:56] local.INFO: ID present? YES  
[2026-07-31 18:47:56] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:56] local.INFO: ID empty? NO  
[2026-07-31 18:47:56] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:56] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-07-31 18:47:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-07-31 18:47:56, 2026-07-31 18:47:56))  
[2026-07-31 18:47:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:47:57] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:47:57] local.INFO: Model: Journal  
[2026-07-31 18:47:57] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:47:57] local.INFO: ID present? YES  
[2026-07-31 18:47:57] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:47:57] local.INFO: ID empty? NO  
[2026-07-31 18:47:57] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:47:57] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:47:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:47:57, 2026-07-31 18:47:57))  
[2026-07-31 18:47:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:06] local.INFO: Model: Journal  
[2026-07-31 18:48:06] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:48:06] local.INFO: ID present? YES  
[2026-07-31 18:48:06] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:06] local.INFO: ID empty? NO  
[2026-07-31 18:48:06] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:06] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:48:06, 2026-07-31 18:48:06))  
[2026-07-31 18:48:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:12] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:12] local.INFO: Model: Journal  
[2026-07-31 18:48:12] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:48:12] local.INFO: ID present? YES  
[2026-07-31 18:48:12] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:12] local.INFO: ID empty? NO  
[2026-07-31 18:48:12] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:12] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:48:12, 2026-07-31 18:48:12))  
[2026-07-31 18:48:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:19] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:19] local.INFO: Model: Journal  
[2026-07-31 18:48:19] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-07-31 18:48:19] local.INFO: ID present? YES  
[2026-07-31 18:48:19] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:19] local.INFO: ID empty? NO  
[2026-07-31 18:48:19] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:19] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-07-31 18:48:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-07-31 18:48:19, 2026-07-31 18:48:19))  
[2026-07-31 18:48:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:20] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:20] local.INFO: Model: Journal  
[2026-07-31 18:48:20] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:48:20] local.INFO: ID present? YES  
[2026-07-31 18:48:20] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:20] local.INFO: ID empty? NO  
[2026-07-31 18:48:20] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:20] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:48:20, 2026-07-31 18:48:20))  
[2026-07-31 18:48:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:26] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:26] local.INFO: Model: Journal  
[2026-07-31 18:48:26] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:48:26] local.INFO: ID present? YES  
[2026-07-31 18:48:26] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:26] local.INFO: ID empty? NO  
[2026-07-31 18:48:26] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:26] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:48:26, 2026-07-31 18:48:26))  
[2026-07-31 18:48:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:32] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:32] local.INFO: Model: Journal  
[2026-07-31 18:48:32] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:48:32] local.INFO: ID present? YES  
[2026-07-31 18:48:32] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:32] local.INFO: ID empty? NO  
[2026-07-31 18:48:32] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:32] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:48:32, 2026-07-31 18:48:32))  
[2026-07-31 18:48:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:39] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:39] local.INFO: Model: Journal  
[2026-07-31 18:48:39] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:48:39] local.INFO: ID present? YES  
[2026-07-31 18:48:39] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:39] local.INFO: ID empty? NO  
[2026-07-31 18:48:39] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:39] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-07-31 18:48:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:48:39, 2026-07-31 18:48:39))  
[2026-07-31 18:48:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:40] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:40] local.INFO: Model: Journal  
[2026-07-31 18:48:40] local.INFO: Data received: {"id":"aa484fda-046c-46d0-90c1-3688cb87d9e0","type":"Debit","amount":"116486.00","rate":null,"lcy_amount":"116486.000000","narrative":"MPESA DEPOSIT 31-07-2026","uniqid":"403ceee9-739e-413d-a7b3-348a0b4857a6","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 18:45:25","updated_at":"2026-07-31 18:45:27"} 
[2026-07-31 18:48:40] local.INFO: ID present? YES  
[2026-07-31 18:48:40] local.INFO: ID value: aa484fda-046c-46d0-90c1-3688cb87d9e0  
[2026-07-31 18:48:40] local.INFO: ID empty? NO  
[2026-07-31 18:48:40] local.INFO: Attempting to find record with ID: aa484fda-046c-46d0-90c1-3688cb87d9e0  
[2026-07-31 18:48:40] local.INFO: Record not found, creating new with ID: aa484fda-046c-46d0-90c1-3688cb87d9e0  
[2026-07-31 18:48:40] local.INFO: Created record: {"id":"aa484fda-046c-46d0-90c1-3688cb87d9e0","type":"Debit","amount":"116486.00","rate":null,"lcy_amount":"116486.000000","narrative":"MPESA DEPOSIT 31-07-2026","uniqid":"403ceee9-739e-413d-a7b3-348a0b4857a6","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T15:48:40.000000Z","created_at":"2026-07-31T15:48:40.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1012810.5,"debit_total":21423908.1999999992549419403076171875,"credit_total":"20411097.70","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T15:46:54.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 18:48:41] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:41] local.INFO: Model: Journal  
[2026-07-31 18:48:41] local.INFO: Data received: {"id":"b3350dc7-e3dc-4f2d-b4ae-5f5743acf68a","type":"Debit","amount":"100.00","rate":null,"lcy_amount":"12900.000000","narrative":"USD WITHDRAWAL","uniqid":"a9d5d213-45b6-4104-b670-c0695e967131","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-07-31 18:45:44","updated_at":"2026-07-31 18:45:45"} 
[2026-07-31 18:48:41] local.INFO: ID present? YES  
[2026-07-31 18:48:41] local.INFO: ID value: b3350dc7-e3dc-4f2d-b4ae-5f5743acf68a  
[2026-07-31 18:48:41] local.INFO: ID empty? NO  
[2026-07-31 18:48:41] local.INFO: Attempting to find record with ID: b3350dc7-e3dc-4f2d-b4ae-5f5743acf68a  
[2026-07-31 18:48:41] local.INFO: Record not found, creating new with ID: b3350dc7-e3dc-4f2d-b4ae-5f5743acf68a  
[2026-07-31 18:48:41] local.INFO: Created record: {"id":"b3350dc7-e3dc-4f2d-b4ae-5f5743acf68a","type":"Debit","amount":"100.00","rate":null,"lcy_amount":"12900.000000","narrative":"USD WITHDRAWAL","uniqid":"a9d5d213-45b6-4104-b670-c0695e967131","date":"2026-07-31","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-07-31T15:48:41.000000Z","created_at":"2026-07-31T15:48:41.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":99.0,"debit_total":35209.0,"credit_total":"35110.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T11:08:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 18:48:42] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:42] local.INFO: Model: Journal  
[2026-07-31 18:48:42] local.INFO: Data received: {"id":"bceebdc2-efc1-4e32-bb87-5b219c4e72f3","type":"Credit","amount":"360.00","rate":null,"lcy_amount":"54432.000000","narrative":"EUR WITHDRAWAL","uniqid":"e2458cf1-cb9e-4e5e-ae35-c25be24d9817","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 18:46:02","updated_at":"2026-07-31 18:46:04"} 
[2026-07-31 18:48:42] local.INFO: ID present? YES  
[2026-07-31 18:48:42] local.INFO: ID value: bceebdc2-efc1-4e32-bb87-5b219c4e72f3  
[2026-07-31 18:48:42] local.INFO: ID empty? NO  
[2026-07-31 18:48:42] local.INFO: Attempting to find record with ID: bceebdc2-efc1-4e32-bb87-5b219c4e72f3  
[2026-07-31 18:48:42] local.INFO: Record not found, creating new with ID: bceebdc2-efc1-4e32-bb87-5b219c4e72f3  
[2026-07-31 18:48:42] local.INFO: Created record: {"id":"bceebdc2-efc1-4e32-bb87-5b219c4e72f3","type":"Credit","amount":"360.00","rate":null,"lcy_amount":"54432.000000","narrative":"EUR WITHDRAWAL","uniqid":"e2458cf1-cb9e-4e5e-ae35-c25be24d9817","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-07-31T15:48:42.000000Z","created_at":"2026-07-31T15:48:42.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":-4045.0,"debit_total":"18745.00","credit_total":22790.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T14:15:54.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 18:48:43] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:43] local.INFO: Model: Journal  
[2026-07-31 18:48:43] local.INFO: Data received: {"id":"cc35d872-ed73-4470-aba4-454008090364","type":"Credit","amount":"6900.00","rate":null,"lcy_amount":"6900.000000","narrative":"MPESA WITHDRAWAL 31-07-2026","uniqid":"9b9738a3-d83f-4006-a58f-13a48dbb2559","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 18:44:29","updated_at":"2026-07-31 18:44:31"} 
[2026-07-31 18:48:43] local.INFO: ID present? YES  
[2026-07-31 18:48:43] local.INFO: ID value: cc35d872-ed73-4470-aba4-454008090364  
[2026-07-31 18:48:43] local.INFO: ID empty? NO  
[2026-07-31 18:48:43] local.INFO: Attempting to find record with ID: cc35d872-ed73-4470-aba4-454008090364  
[2026-07-31 18:48:43] local.INFO: Record not found, creating new with ID: cc35d872-ed73-4470-aba4-454008090364  
[2026-07-31 18:48:43] local.INFO: Created record: {"id":"cc35d872-ed73-4470-aba4-454008090364","type":"Credit","amount":"6900.00","rate":null,"lcy_amount":"6900.000000","narrative":"MPESA WITHDRAWAL 31-07-2026","uniqid":"9b9738a3-d83f-4006-a58f-13a48dbb2559","date":"2026-07-31","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T15:48:43.000000Z","created_at":"2026-07-31T15:48:43.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":1005910.5,"debit_total":"21423908.20","credit_total":20417997.6999999992549419403076171875,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T15:48:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-07-31 18:48:45] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:45] local.INFO: Model: Journal  
[2026-07-31 18:48:45] local.INFO: Data received: {"id":"df07a09e-80c1-4a56-b027-abe8053895f5","type":"Debit","amount":"9986.00","rate":null,"lcy_amount":"9986.000000","narrative":"WU PAID OUT SA 31-07-2026","uniqid":"b645cc60-b099-4ab8-83b5-0714479b63ba","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 18:44:57","updated_at":"2026-07-31 18:45:00"} 
[2026-07-31 18:48:45] local.INFO: ID present? YES  
[2026-07-31 18:48:45] local.INFO: ID value: df07a09e-80c1-4a56-b027-abe8053895f5  
[2026-07-31 18:48:45] local.INFO: ID empty? NO  
[2026-07-31 18:48:45] local.INFO: Attempting to find record with ID: df07a09e-80c1-4a56-b027-abe8053895f5  
[2026-07-31 18:48:45] local.INFO: Record not found, creating new with ID: df07a09e-80c1-4a56-b027-abe8053895f5  
[2026-07-31 18:48:45] local.INFO: Created record: {"id":"df07a09e-80c1-4a56-b027-abe8053895f5","type":"Debit","amount":"9986.00","rate":null,"lcy_amount":"9986.000000","narrative":"WU PAID OUT SA 31-07-2026","uniqid":"b645cc60-b099-4ab8-83b5-0714479b63ba","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T15:48:45.000000Z","created_at":"2026-07-31T15:48:45.000000Z","account":{"id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","name":"Western Union - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000006","is_fx_account":null,"balance":1134630.0,"debit_total":1160230.0,"credit_total":"25600.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"a28afc38-859b-4f22-9bf4-1b0809adf602","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:24:54.000000Z","updated_at":"2026-07-28T17:21:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 18:48:46] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:46] local.INFO: Model: Journal  
[2026-07-31 18:48:46] local.INFO: Data received: {"id":"e60eaeae-676e-422b-b9d2-42f31d63bac7","type":"Credit","amount":"116486.00","rate":null,"lcy_amount":"116486.000000","narrative":"MPESA DEPOSIT 31-07-2026","uniqid":"403ceee9-739e-413d-a7b3-348a0b4857a6","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 18:45:25","updated_at":"2026-07-31 18:45:27"} 
[2026-07-31 18:48:46] local.INFO: ID present? YES  
[2026-07-31 18:48:46] local.INFO: ID value: e60eaeae-676e-422b-b9d2-42f31d63bac7  
[2026-07-31 18:48:46] local.INFO: ID empty? NO  
[2026-07-31 18:48:46] local.INFO: Attempting to find record with ID: e60eaeae-676e-422b-b9d2-42f31d63bac7  
[2026-07-31 18:48:46] local.INFO: Record not found, creating new with ID: e60eaeae-676e-422b-b9d2-42f31d63bac7  
[2026-07-31 18:48:46] local.INFO: Created record: {"id":"e60eaeae-676e-422b-b9d2-42f31d63bac7","type":"Credit","amount":"116486.00","rate":null,"lcy_amount":"116486.000000","narrative":"MPESA DEPOSIT 31-07-2026","uniqid":"403ceee9-739e-413d-a7b3-348a0b4857a6","date":"2026-07-31","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-07-31T15:48:46.000000Z","created_at":"2026-07-31T15:48:46.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2272146.0,"debit_total":"4570040.00","credit_total":6842186.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-31T15:46:53.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-07-31 18:48:47] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:47] local.INFO: Model: Journal  
[2026-07-31 18:48:47] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:48:47] local.INFO: ID present? YES  
[2026-07-31 18:48:47] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:48:47] local.INFO: ID empty? NO  
[2026-07-31 18:48:47] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:48:47] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:48:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:48:47, 2026-07-31 18:48:47))  
[2026-07-31 18:48:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:53] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:53] local.INFO: Model: Journal  
[2026-07-31 18:48:53] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:48:53] local.INFO: ID present? YES  
[2026-07-31 18:48:53] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:48:53] local.INFO: ID empty? NO  
[2026-07-31 18:48:53] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:48:53] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:48:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:48:53, 2026-07-31 18:48:53))  
[2026-07-31 18:48:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:48:59] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:48:59] local.INFO: Model: Journal  
[2026-07-31 18:48:59] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:49:00] local.INFO: ID present? YES  
[2026-07-31 18:49:00] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:49:00] local.INFO: ID empty? NO  
[2026-07-31 18:49:00] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:49:00] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:49:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:49:00, 2026-07-31 18:49:00))  
[2026-07-31 18:49:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-07-31 18:49:06] local.INFO: === SYNC DEBUG ===  
[2026-07-31 18:49:06] local.INFO: Model: Journal  
[2026-07-31 18:49:06] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-07-31 18:49:06] local.INFO: ID present? YES  
[2026-07-31 18:49:06] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:49:06] local.INFO: ID empty? NO  
[2026-07-31 18:49:06] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:49:06] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-07-31 18:49:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-07-31 18:49:06, 2026-07-31 18:49:06))  
[2026-07-31 18:49:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:23:53] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:23:53] local.INFO: Model: Customer  
[2026-08-01 11:23:53] local.INFO: Data received: {"id":"86ec418e-838b-480e-ac96-32b305d78b89","first_name":"EMMANUEL","last_name":"MATIVO","sur_name":null,"phone":"768492505","calling_code":"+254","email":null,"residence":"Ukunda, Kenya","id_type":"National ID","id_number":"29857813","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-01 11:16:42","updated_at":"2026-08-01 11:16:42"} 
[2026-08-01 11:23:53] local.INFO: ID present? YES  
[2026-08-01 11:23:53] local.INFO: ID value: 86ec418e-838b-480e-ac96-32b305d78b89  
[2026-08-01 11:23:53] local.INFO: ID empty? NO  
[2026-08-01 11:23:53] local.INFO: Attempting to find record with ID: 86ec418e-838b-480e-ac96-32b305d78b89  
[2026-08-01 11:23:53] local.INFO: Record not found, creating new with ID: 86ec418e-838b-480e-ac96-32b305d78b89  
[2026-08-01 11:23:53] local.INFO: Created record: {"id":"86ec418e-838b-480e-ac96-32b305d78b89","first_name":"EMMANUEL","last_name":"MATIVO","sur_name":null,"phone":"768492505","calling_code":"+254","email":null,"residence":"Ukunda, Kenya","id_type":"National ID","id_number":"29857813","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-01T08:23:53.000000Z","created_at":"2026-08-01T08:23:53.000000Z"} 
[2026-08-01 11:23:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:23:54] local.INFO: Model: Customer  
[2026-08-01 11:23:54] local.INFO: Data received: {"id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","first_name":"NIKOLA","last_name":"IVETIC","sur_name":null,"phone":"112452454","calling_code":"+389","email":null,"residence":"undefined","id_type":"Passport","id_number":"018309961","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-01 11:21:55","updated_at":"2026-08-01 11:21:55"} 
[2026-08-01 11:23:54] local.INFO: ID present? YES  
[2026-08-01 11:23:54] local.INFO: ID value: 9368f2ef-b9d5-42a9-8900-a6fda23d2ba7  
[2026-08-01 11:23:54] local.INFO: ID empty? NO  
[2026-08-01 11:23:54] local.INFO: Attempting to find record with ID: 9368f2ef-b9d5-42a9-8900-a6fda23d2ba7  
[2026-08-01 11:23:54] local.INFO: Record not found, creating new with ID: 9368f2ef-b9d5-42a9-8900-a6fda23d2ba7  
[2026-08-01 11:23:54] local.INFO: Created record: {"id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","first_name":"NIKOLA","last_name":"IVETIC","sur_name":null,"phone":"112452454","calling_code":"+389","email":null,"residence":"undefined","id_type":"Passport","id_number":"018309961","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-01T08:23:54.000000Z","created_at":"2026-08-01T08:23:54.000000Z"} 
[2026-08-01 11:23:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:23:55] local.INFO: Model: Customer  
[2026-08-01 11:23:55] local.INFO: Data received: {"id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","first_name":"NEHEMIAH","last_name":"NGUGI","sur_name":null,"phone":"713388473","calling_code":"+254","email":null,"residence":"Kwale County, Kenya","id_type":"National ID","id_number":"3929790","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-01 11:17:45","updated_at":"2026-08-01 11:17:45"} 
[2026-08-01 11:23:55] local.INFO: ID present? YES  
[2026-08-01 11:23:55] local.INFO: ID value: e2ed7dac-fc26-4f80-9e33-5079b365180a  
[2026-08-01 11:23:55] local.INFO: ID empty? NO  
[2026-08-01 11:23:55] local.INFO: Attempting to find record with ID: e2ed7dac-fc26-4f80-9e33-5079b365180a  
[2026-08-01 11:23:55] local.INFO: Record not found, creating new with ID: e2ed7dac-fc26-4f80-9e33-5079b365180a  
[2026-08-01 11:23:55] local.INFO: Created record: {"id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","first_name":"NEHEMIAH","last_name":"NGUGI","sur_name":null,"phone":"713388473","calling_code":"+254","email":null,"residence":"Kwale County, Kenya","id_type":"National ID","id_number":"3929790","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-01T08:23:55.000000Z","created_at":"2026-08-01T08:23:55.000000Z"} 
[2026-08-01 11:23:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:23:57] local.INFO: Model: Transaction  
[2026-08-01 11:23:57] local.INFO: Data received: {"id":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","type":"Buying","amount":200,"rate":128,"negotiated_rate":"0","amount_paid":25600,"amount_received":200,"narrative":null,"transaction_number":"TR-3614-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:21:04","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8fcfb3aa-35a5-427e-9f78-024001885d87","cancellation_reason":null,"customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 11:21:02","updated_at":"2026-08-01 11:21:04"} 
[2026-08-01 11:23:57] local.INFO: ID present? YES  
[2026-08-01 11:23:57] local.INFO: ID value: 0819b463-f117-46a9-a326-245866b5708b  
[2026-08-01 11:23:57] local.INFO: ID empty? NO  
[2026-08-01 11:23:57] local.INFO: Attempting to find record with ID: 0819b463-f117-46a9-a326-245866b5708b  
[2026-08-01 11:23:57] local.INFO: Record not found, creating new with ID: 0819b463-f117-46a9-a326-245866b5708b  
[2026-08-01 11:23:57] local.INFO: Created record: {"id":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","type":"Buying","amount":200,"rate":128,"negotiated_rate":"0","amount_paid":25600,"amount_received":200,"narrative":null,"transaction_number":"TR-3614-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:21:04","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8fcfb3aa-35a5-427e-9f78-024001885d87","cancellation_reason":null,"customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T08:23:57.000000Z","created_at":"2026-08-01T08:23:57.000000Z"} 
[2026-08-01 11:23:58] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:23:58] local.INFO: Model: Transaction  
[2026-08-01 11:23:58] local.INFO: Data received: {"id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3613-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:20:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0c65ab43-4ce3-44b4-9ef5-05cfce83b313","cancellation_reason":null,"customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-01 11:20:29","updated_at":"2026-08-01 11:20:31"} 
[2026-08-01 11:23:58] local.INFO: ID present? YES  
[2026-08-01 11:23:58] local.INFO: ID value: 2b79766e-550a-4079-b1e7-b36231f5bfe0  
[2026-08-01 11:23:58] local.INFO: ID empty? NO  
[2026-08-01 11:23:58] local.INFO: Attempting to find record with ID: 2b79766e-550a-4079-b1e7-b36231f5bfe0  
[2026-08-01 11:23:58] local.INFO: Record not found, creating new with ID: 2b79766e-550a-4079-b1e7-b36231f5bfe0  
[2026-08-01 11:23:58] local.INFO: Created record: {"id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3613-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:20:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0c65ab43-4ce3-44b4-9ef5-05cfce83b313","cancellation_reason":null,"customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-01T08:23:58.000000Z","created_at":"2026-08-01T08:23:58.000000Z"} 
[2026-08-01 11:24:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:00] local.INFO: Model: Transaction  
[2026-08-01 11:24:00] local.INFO: Data received: {"id":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","type":"Buying","amount":60,"rate":125,"negotiated_rate":"0","amount_paid":7500,"amount_received":60,"narrative":null,"transaction_number":"TR-3610-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:17:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"e0e063b0-11d2-417c-a00a-cb9bbfd52733","cancellation_reason":null,"customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 11:16:58","updated_at":"2026-08-01 11:17:05"} 
[2026-08-01 11:24:00] local.INFO: ID present? YES  
[2026-08-01 11:24:00] local.INFO: ID value: 2bd51811-b603-4366-bb11-ca772d958db6  
[2026-08-01 11:24:00] local.INFO: ID empty? NO  
[2026-08-01 11:24:00] local.INFO: Attempting to find record with ID: 2bd51811-b603-4366-bb11-ca772d958db6  
[2026-08-01 11:24:00] local.INFO: Record not found, creating new with ID: 2bd51811-b603-4366-bb11-ca772d958db6  
[2026-08-01 11:24:00] local.INFO: Created record: {"id":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","type":"Buying","amount":60,"rate":125,"negotiated_rate":"0","amount_paid":7500,"amount_received":60,"narrative":null,"transaction_number":"TR-3610-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:17:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"e0e063b0-11d2-417c-a00a-cb9bbfd52733","cancellation_reason":null,"customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T08:24:00.000000Z","created_at":"2026-08-01T08:24:00.000000Z"} 
[2026-08-01 11:24:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:01] local.INFO: Model: Transaction  
[2026-08-01 11:24:01] local.INFO: Data received: {"id":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","type":"Buying","amount":1250,"rate":128.5,"negotiated_rate":"0","amount_paid":160625,"amount_received":1250,"narrative":null,"transaction_number":"TR-3612-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:18:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4e4052a5-206c-4b5e-b48d-d7e7930d4cb7","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 11:18:31","updated_at":"2026-08-01 11:18:33"} 
[2026-08-01 11:24:01] local.INFO: ID present? YES  
[2026-08-01 11:24:01] local.INFO: ID value: 4983c708-ce32-4dc7-b321-d2df9950f632  
[2026-08-01 11:24:01] local.INFO: ID empty? NO  
[2026-08-01 11:24:01] local.INFO: Attempting to find record with ID: 4983c708-ce32-4dc7-b321-d2df9950f632  
[2026-08-01 11:24:01] local.INFO: Record not found, creating new with ID: 4983c708-ce32-4dc7-b321-d2df9950f632  
[2026-08-01 11:24:01] local.INFO: Created record: {"id":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","type":"Buying","amount":1250,"rate":128.5,"negotiated_rate":"0","amount_paid":160625,"amount_received":1250,"narrative":null,"transaction_number":"TR-3612-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:18:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"4e4052a5-206c-4b5e-b48d-d7e7930d4cb7","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T08:24:01.000000Z","created_at":"2026-08-01T08:24:01.000000Z"} 
[2026-08-01 11:24:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:02] local.INFO: Model: Transaction  
[2026-08-01 11:24:02] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:24:02] local.INFO: ID present? YES  
[2026-08-01 11:24:02] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:02] local.INFO: ID empty? NO  
[2026-08-01 11:24:02] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:02] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 11:24:02, 2026-08-01 11:24:02))  
[2026-08-01 11:24:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:09] local.INFO: Model: Transaction  
[2026-08-01 11:24:09] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:24:09] local.INFO: ID present? YES  
[2026-08-01 11:24:09] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:09] local.INFO: ID empty? NO  
[2026-08-01 11:24:09] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:09] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 11:24:09, 2026-08-01 11:24:09))  
[2026-08-01 11:24:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:15] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:15] local.INFO: Model: Transaction  
[2026-08-01 11:24:15] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:24:15] local.INFO: ID present? YES  
[2026-08-01 11:24:15] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:15] local.INFO: ID empty? NO  
[2026-08-01 11:24:15] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:15] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 11:24:15, 2026-08-01 11:24:15))  
[2026-08-01 11:24:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:21] local.INFO: Model: Transaction  
[2026-08-01 11:24:21] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:24:21] local.INFO: ID present? YES  
[2026-08-01 11:24:21] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:21] local.INFO: ID empty? NO  
[2026-08-01 11:24:21] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:21] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 11:24:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 11:24:21, 2026-08-01 11:24:21))  
[2026-08-01 11:24:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:22] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:22] local.INFO: Model: Transaction  
[2026-08-01 11:24:22] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:24:22] local.INFO: ID present? YES  
[2026-08-01 11:24:22] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:22] local.INFO: ID empty? NO  
[2026-08-01 11:24:22] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:22] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 11:24:22, 2026-08-01 11:24:22))  
[2026-08-01 11:24:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:29] local.INFO: Model: Transaction  
[2026-08-01 11:24:29] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:24:29] local.INFO: ID present? YES  
[2026-08-01 11:24:29] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:29] local.INFO: ID empty? NO  
[2026-08-01 11:24:29] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:29] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 11:24:29, 2026-08-01 11:24:29))  
[2026-08-01 11:24:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:35] local.INFO: Model: Transaction  
[2026-08-01 11:24:35] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:24:35] local.INFO: ID present? YES  
[2026-08-01 11:24:35] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:35] local.INFO: ID empty? NO  
[2026-08-01 11:24:35] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:35] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 11:24:35, 2026-08-01 11:24:35))  
[2026-08-01 11:24:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:41] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:41] local.INFO: Model: Transaction  
[2026-08-01 11:24:41] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:24:41] local.INFO: ID present? YES  
[2026-08-01 11:24:41] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:41] local.INFO: ID empty? NO  
[2026-08-01 11:24:41] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:41] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 11:24:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 11:24:41, 2026-08-01 11:24:41))  
[2026-08-01 11:24:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:42] local.INFO: Model: Transaction  
[2026-08-01 11:24:42] local.INFO: Data received: {"id":"b0b172da-4e01-4131-83a5-057258daa5ec","date":"2026-08-01","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3611-2026","commission_amount":null,"flagged_at":null,"status":"Draft","resolved_at":null,"resolved_by":null,"completed_at":null,"completed_by":null,"source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"23253e7b-7042-4578-8524-30fb905580ce","cancellation_reason":null,"customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-01 11:17:58","updated_at":"2026-08-01 11:17:58"} 
[2026-08-01 11:24:42] local.INFO: ID present? YES  
[2026-08-01 11:24:42] local.INFO: ID value: b0b172da-4e01-4131-83a5-057258daa5ec  
[2026-08-01 11:24:42] local.INFO: ID empty? NO  
[2026-08-01 11:24:42] local.INFO: Attempting to find record with ID: b0b172da-4e01-4131-83a5-057258daa5ec  
[2026-08-01 11:24:42] local.INFO: Record not found, creating new with ID: b0b172da-4e01-4131-83a5-057258daa5ec  
[2026-08-01 11:24:42] local.INFO: Created record: {"id":"b0b172da-4e01-4131-83a5-057258daa5ec","date":"2026-08-01","type":"Buying","amount":40,"rate":145,"negotiated_rate":"0","amount_paid":5800,"amount_received":40,"narrative":null,"transaction_number":"TR-3611-2026","commission_amount":null,"flagged_at":null,"status":"Draft","resolved_at":null,"resolved_by":null,"completed_at":null,"completed_by":null,"source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"23253e7b-7042-4578-8524-30fb905580ce","cancellation_reason":null,"customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-01T08:24:42.000000Z","created_at":"2026-08-01T08:24:42.000000Z"} 
[2026-08-01 11:24:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:44] local.INFO: Model: Transaction  
[2026-08-01 11:24:44] local.INFO: Data received: {"id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","type":"Buying","amount":30,"rate":125,"negotiated_rate":"0","amount_paid":3750,"amount_received":30,"narrative":null,"transaction_number":"TR-3615-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:22:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"b0f14b12-3379-46fc-bf6b-da4d27a2fe37","cancellation_reason":null,"customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 11:22:16","updated_at":"2026-08-01 11:22:18"} 
[2026-08-01 11:24:44] local.INFO: ID present? YES  
[2026-08-01 11:24:44] local.INFO: ID value: b2f2982f-7c58-4793-9c89-0daaecee7dc6  
[2026-08-01 11:24:44] local.INFO: ID empty? NO  
[2026-08-01 11:24:44] local.INFO: Attempting to find record with ID: b2f2982f-7c58-4793-9c89-0daaecee7dc6  
[2026-08-01 11:24:44] local.INFO: Record not found, creating new with ID: b2f2982f-7c58-4793-9c89-0daaecee7dc6  
[2026-08-01 11:24:44] local.INFO: Created record: {"id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","type":"Buying","amount":30,"rate":125,"negotiated_rate":"0","amount_paid":3750,"amount_received":30,"narrative":null,"transaction_number":"TR-3615-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 11:22:18","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Payment for Services","uniqid":null,"batch_id":"b0f14b12-3379-46fc-bf6b-da4d27a2fe37","cancellation_reason":null,"customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T08:24:44.000000Z","created_at":"2026-08-01T08:24:44.000000Z"} 
[2026-08-01 11:24:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:45] local.INFO: Model: Journal  
[2026-08-01 11:24:45] local.INFO: Data received: {"id":"033fe62f-e545-4a1f-84ad-cd8e945a317d","type":"Debit","amount":"200.00","rate":"128.000000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0819b463-f117-46a9-a326-245866b5708b","customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 11:21:04","updated_at":"2026-08-01 11:21:04"} 
[2026-08-01 11:24:45] local.INFO: ID present? YES  
[2026-08-01 11:24:45] local.INFO: ID value: 033fe62f-e545-4a1f-84ad-cd8e945a317d  
[2026-08-01 11:24:45] local.INFO: ID empty? NO  
[2026-08-01 11:24:45] local.INFO: Attempting to find record with ID: 033fe62f-e545-4a1f-84ad-cd8e945a317d  
[2026-08-01 11:24:45] local.INFO: Record not found, creating new with ID: 033fe62f-e545-4a1f-84ad-cd8e945a317d  
[2026-08-01 11:24:45] local.INFO: Created record: {"id":"033fe62f-e545-4a1f-84ad-cd8e945a317d","type":"Debit","amount":"200.00","rate":"128.000000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0819b463-f117-46a9-a326-245866b5708b","customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T08:24:45.000000Z","created_at":"2026-08-01T08:24:45.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":200.0,"debit_total":77649.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T16:02:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:24:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:46] local.INFO: Model: Journal  
[2026-08-01 11:24:46] local.INFO: Data received: {"id":"19ca8b50-ca7f-4eb6-886f-007e89f14c92","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"37376329-ecce-455d-b4e5-a9035576a1d9","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:22:40","updated_at":"2026-08-01 11:22:42"} 
[2026-08-01 11:24:46] local.INFO: ID present? YES  
[2026-08-01 11:24:46] local.INFO: ID value: 19ca8b50-ca7f-4eb6-886f-007e89f14c92  
[2026-08-01 11:24:46] local.INFO: ID empty? NO  
[2026-08-01 11:24:46] local.INFO: Attempting to find record with ID: 19ca8b50-ca7f-4eb6-886f-007e89f14c92  
[2026-08-01 11:24:46] local.INFO: Record not found, creating new with ID: 19ca8b50-ca7f-4eb6-886f-007e89f14c92  
[2026-08-01 11:24:46] local.INFO: Created record: {"id":"19ca8b50-ca7f-4eb6-886f-007e89f14c92","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"37376329-ecce-455d-b4e5-a9035576a1d9","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:24:46.000000Z","created_at":"2026-08-01T08:24:46.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":56778.0,"debit_total":"21529595.10","credit_total":21472817.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T16:03:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:24:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:48] local.INFO: Model: Journal  
[2026-08-01 11:24:48] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:24:48] local.INFO: ID present? YES  
[2026-08-01 11:24:48] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:24:48] local.INFO: ID empty? NO  
[2026-08-01 11:24:48] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:24:48] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:24:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:24:48, 2026-08-01 11:24:48))  
[2026-08-01 11:24:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:24:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:24:54] local.INFO: Model: Journal  
[2026-08-01 11:24:54] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:24:54] local.INFO: ID present? YES  
[2026-08-01 11:24:54] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:24:54] local.INFO: ID empty? NO  
[2026-08-01 11:24:54] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:24:54] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:24:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:24:54, 2026-08-01 11:24:54))  
[2026-08-01 11:24:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:07] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:07] local.INFO: Model: Journal  
[2026-08-01 11:25:07] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:25:07] local.INFO: ID present? YES  
[2026-08-01 11:25:07] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:25:07] local.INFO: ID empty? NO  
[2026-08-01 11:25:07] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:25:07] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:25:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:25:07, 2026-08-01 11:25:07))  
[2026-08-01 11:25:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:13] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:13] local.INFO: Model: Journal  
[2026-08-01 11:25:13] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:25:13] local.INFO: ID present? YES  
[2026-08-01 11:25:13] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:25:13] local.INFO: ID empty? NO  
[2026-08-01 11:25:13] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:25:13] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 11:25:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:25:13, 2026-08-01 11:25:13))  
[2026-08-01 11:25:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:15] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:15] local.INFO: Model: Journal  
[2026-08-01 11:25:15] local.INFO: Data received: {"id":"396ba9d4-f2d6-4214-a976-a00b24299fe9","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-01 11:20:31","updated_at":"2026-08-01 11:20:31"} 
[2026-08-01 11:25:15] local.INFO: ID present? YES  
[2026-08-01 11:25:15] local.INFO: ID value: 396ba9d4-f2d6-4214-a976-a00b24299fe9  
[2026-08-01 11:25:15] local.INFO: ID empty? NO  
[2026-08-01 11:25:15] local.INFO: Attempting to find record with ID: 396ba9d4-f2d6-4214-a976-a00b24299fe9  
[2026-08-01 11:25:15] local.INFO: Record not found, creating new with ID: 396ba9d4-f2d6-4214-a976-a00b24299fe9  
[2026-08-01 11:25:15] local.INFO: Created record: {"id":"396ba9d4-f2d6-4214-a976-a00b24299fe9","type":"Debit","amount":"40.00","rate":"145.000000","lcy_amount":"6048.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-01T08:25:15.000000Z","created_at":"2026-08-01T08:25:15.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":40.0,"debit_total":22830.0,"credit_total":"22790.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-07-31T16:01:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:25:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:16] local.INFO: Model: Journal  
[2026-08-01 11:25:16] local.INFO: Data received: {"id":"571bbe8c-4d38-4d1a-bc4f-9ae466f22c02","type":"Credit","amount":"25600.00","rate":"128.000000","lcy_amount":"25600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0819b463-f117-46a9-a326-245866b5708b","customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:21:04","updated_at":"2026-08-01 11:21:04"} 
[2026-08-01 11:25:16] local.INFO: ID present? YES  
[2026-08-01 11:25:16] local.INFO: ID value: 571bbe8c-4d38-4d1a-bc4f-9ae466f22c02  
[2026-08-01 11:25:16] local.INFO: ID empty? NO  
[2026-08-01 11:25:16] local.INFO: Attempting to find record with ID: 571bbe8c-4d38-4d1a-bc4f-9ae466f22c02  
[2026-08-01 11:25:16] local.INFO: Record not found, creating new with ID: 571bbe8c-4d38-4d1a-bc4f-9ae466f22c02  
[2026-08-01 11:25:16] local.INFO: Created record: {"id":"571bbe8c-4d38-4d1a-bc4f-9ae466f22c02","type":"Credit","amount":"25600.00","rate":"128.000000","lcy_amount":"25600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0819b463-f117-46a9-a326-245866b5708b","customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:25:16.000000Z","created_at":"2026-08-01T08:25:16.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":31178.0,"debit_total":"21529595.10","credit_total":21498417.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:24:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:25:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:17] local.INFO: Model: Journal  
[2026-08-01 11:25:17] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:25:17] local.INFO: ID present? YES  
[2026-08-01 11:25:17] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:17] local.INFO: ID empty? NO  
[2026-08-01 11:25:17] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:17] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:25:17, 2026-08-01 11:25:17))  
[2026-08-01 11:25:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:23] local.INFO: Model: Journal  
[2026-08-01 11:25:23] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:25:23] local.INFO: ID present? YES  
[2026-08-01 11:25:23] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:23] local.INFO: ID empty? NO  
[2026-08-01 11:25:23] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:23] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:25:23, 2026-08-01 11:25:23))  
[2026-08-01 11:25:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:30] local.INFO: Model: Journal  
[2026-08-01 11:25:30] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:25:30] local.INFO: ID present? YES  
[2026-08-01 11:25:30] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:30] local.INFO: ID empty? NO  
[2026-08-01 11:25:30] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:30] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:25:30, 2026-08-01 11:25:30))  
[2026-08-01 11:25:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:36] local.INFO: Model: Journal  
[2026-08-01 11:25:36] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:25:36] local.INFO: ID present? YES  
[2026-08-01 11:25:36] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:36] local.INFO: ID empty? NO  
[2026-08-01 11:25:36] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:36] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 11:25:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:25:36, 2026-08-01 11:25:36))  
[2026-08-01 11:25:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:37] local.INFO: Model: Journal  
[2026-08-01 11:25:37] local.INFO: Data received: {"id":"7d1173ea-ccbe-4207-a6c6-8454f8da8f2b","type":"Credit","amount":"160625.00","rate":"128.500000","lcy_amount":"160625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4983c708-ce32-4dc7-b321-d2df9950f632","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:18:33","updated_at":"2026-08-01 11:18:33"} 
[2026-08-01 11:25:37] local.INFO: ID present? YES  
[2026-08-01 11:25:37] local.INFO: ID value: 7d1173ea-ccbe-4207-a6c6-8454f8da8f2b  
[2026-08-01 11:25:37] local.INFO: ID empty? NO  
[2026-08-01 11:25:37] local.INFO: Attempting to find record with ID: 7d1173ea-ccbe-4207-a6c6-8454f8da8f2b  
[2026-08-01 11:25:37] local.INFO: Record not found, creating new with ID: 7d1173ea-ccbe-4207-a6c6-8454f8da8f2b  
[2026-08-01 11:25:37] local.INFO: Created record: {"id":"7d1173ea-ccbe-4207-a6c6-8454f8da8f2b","type":"Credit","amount":"160625.00","rate":"128.500000","lcy_amount":"160625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"4983c708-ce32-4dc7-b321-d2df9950f632","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:25:37.000000Z","created_at":"2026-08-01T08:25:37.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-129447.0,"debit_total":"21529595.10","credit_total":21659042.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:25:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:25:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:38] local.INFO: Model: Journal  
[2026-08-01 11:25:38] local.INFO: Data received: {"id":"85758ef0-f6c1-4b85-9a25-15667341a113","type":"Credit","amount":"200.00","rate":"128.000000","lcy_amount":"200.000000","narrative":"Gain on TR-3614-2026","uniqid":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0819b463-f117-46a9-a326-245866b5708b","customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:21:04","updated_at":"2026-08-01 11:21:04"} 
[2026-08-01 11:25:38] local.INFO: ID present? YES  
[2026-08-01 11:25:38] local.INFO: ID value: 85758ef0-f6c1-4b85-9a25-15667341a113  
[2026-08-01 11:25:38] local.INFO: ID empty? NO  
[2026-08-01 11:25:38] local.INFO: Attempting to find record with ID: 85758ef0-f6c1-4b85-9a25-15667341a113  
[2026-08-01 11:25:38] local.INFO: Record not found, creating new with ID: 85758ef0-f6c1-4b85-9a25-15667341a113  
[2026-08-01 11:25:38] local.INFO: Created record: {"id":"85758ef0-f6c1-4b85-9a25-15667341a113","type":"Credit","amount":"200.00","rate":"128.000000","lcy_amount":"200.000000","narrative":"Gain on TR-3614-2026","uniqid":"0819b463-f117-46a9-a326-245866b5708b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0819b463-f117-46a9-a326-245866b5708b","customer_id":"d717d4be-e9e2-4637-891f-0998ab6c3d01","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:25:38.000000Z","created_at":"2026-08-01T08:25:38.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-117946.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":125258.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T14:15:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 11:25:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:40] local.INFO: Model: Journal  
[2026-08-01 11:25:40] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:25:40] local.INFO: ID present? YES  
[2026-08-01 11:25:40] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:40] local.INFO: ID empty? NO  
[2026-08-01 11:25:40] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:40] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 11:25:40, 2026-08-01 11:25:40))  
[2026-08-01 11:25:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:46] local.INFO: Model: Journal  
[2026-08-01 11:25:46] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:25:46] local.INFO: ID present? YES  
[2026-08-01 11:25:46] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:46] local.INFO: ID empty? NO  
[2026-08-01 11:25:46] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:46] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 11:25:46, 2026-08-01 11:25:46))  
[2026-08-01 11:25:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:52] local.INFO: Model: Journal  
[2026-08-01 11:25:52] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:25:52] local.INFO: ID present? YES  
[2026-08-01 11:25:52] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:52] local.INFO: ID empty? NO  
[2026-08-01 11:25:52] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:52] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 11:25:52, 2026-08-01 11:25:52))  
[2026-08-01 11:25:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:25:58] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:25:58] local.INFO: Model: Journal  
[2026-08-01 11:25:58] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:25:58] local.INFO: ID present? YES  
[2026-08-01 11:25:58] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:58] local.INFO: ID empty? NO  
[2026-08-01 11:25:58] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:58] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 11:25:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 11:25:58, 2026-08-01 11:25:58))  
[2026-08-01 11:25:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:00] local.INFO: Model: Journal  
[2026-08-01 11:26:00] local.INFO: Data received: {"id":"8d33aa12-5b17-4dcb-a558-73511ba103dd","type":"Credit","amount":"7500.00","rate":"125.000000","lcy_amount":"7500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"2bd51811-b603-4366-bb11-ca772d958db6","customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:17:05","updated_at":"2026-08-01 11:17:05"} 
[2026-08-01 11:26:00] local.INFO: ID present? YES  
[2026-08-01 11:26:00] local.INFO: ID value: 8d33aa12-5b17-4dcb-a558-73511ba103dd  
[2026-08-01 11:26:00] local.INFO: ID empty? NO  
[2026-08-01 11:26:00] local.INFO: Attempting to find record with ID: 8d33aa12-5b17-4dcb-a558-73511ba103dd  
[2026-08-01 11:26:00] local.INFO: Record not found, creating new with ID: 8d33aa12-5b17-4dcb-a558-73511ba103dd  
[2026-08-01 11:26:00] local.INFO: Created record: {"id":"8d33aa12-5b17-4dcb-a558-73511ba103dd","type":"Credit","amount":"7500.00","rate":"125.000000","lcy_amount":"7500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"2bd51811-b603-4366-bb11-ca772d958db6","customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:00.000000Z","created_at":"2026-08-01T08:26:00.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-136947.0,"debit_total":"21529595.10","credit_total":21666542.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:25:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:01] local.INFO: Model: Journal  
[2026-08-01 11:26:01] local.INFO: Data received: {"id":"91ac9bb7-e1ec-4df4-9b18-7a9dfd0c695e","type":"Debit","amount":"220000.00","rate":null,"lcy_amount":"220000.000000","narrative":"KES ADDITION","uniqid":"ce2bd341-f240-4650-87ff-58d29466d51c","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:23:36","updated_at":"2026-08-01 11:23:39"} 
[2026-08-01 11:26:01] local.INFO: ID present? YES  
[2026-08-01 11:26:01] local.INFO: ID value: 91ac9bb7-e1ec-4df4-9b18-7a9dfd0c695e  
[2026-08-01 11:26:01] local.INFO: ID empty? NO  
[2026-08-01 11:26:01] local.INFO: Attempting to find record with ID: 91ac9bb7-e1ec-4df4-9b18-7a9dfd0c695e  
[2026-08-01 11:26:01] local.INFO: Record not found, creating new with ID: 91ac9bb7-e1ec-4df4-9b18-7a9dfd0c695e  
[2026-08-01 11:26:01] local.INFO: Created record: {"id":"91ac9bb7-e1ec-4df4-9b18-7a9dfd0c695e","type":"Debit","amount":"220000.00","rate":null,"lcy_amount":"220000.000000","narrative":"KES ADDITION","uniqid":"ce2bd341-f240-4650-87ff-58d29466d51c","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:01.000000Z","created_at":"2026-08-01T08:26:01.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":83053.0,"debit_total":21749595.100000001490116119384765625,"credit_total":"21666542.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:26:00.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:02] local.INFO: Model: Journal  
[2026-08-01 11:26:02] local.INFO: Data received: {"id":"9684592f-7ace-4d84-816b-3be08bc91fd9","type":"Debit","amount":"1250.00","rate":"128.500000","lcy_amount":"161250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4983c708-ce32-4dc7-b321-d2df9950f632","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 11:18:33","updated_at":"2026-08-01 11:18:33"} 
[2026-08-01 11:26:02] local.INFO: ID present? YES  
[2026-08-01 11:26:02] local.INFO: ID value: 9684592f-7ace-4d84-816b-3be08bc91fd9  
[2026-08-01 11:26:02] local.INFO: ID empty? NO  
[2026-08-01 11:26:02] local.INFO: Attempting to find record with ID: 9684592f-7ace-4d84-816b-3be08bc91fd9  
[2026-08-01 11:26:02] local.INFO: Record not found, creating new with ID: 9684592f-7ace-4d84-816b-3be08bc91fd9  
[2026-08-01 11:26:02] local.INFO: Created record: {"id":"9684592f-7ace-4d84-816b-3be08bc91fd9","type":"Debit","amount":"1250.00","rate":"128.500000","lcy_amount":"161250.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"4983c708-ce32-4dc7-b321-d2df9950f632","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T08:26:02.000000Z","created_at":"2026-08-01T08:26:02.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1450.0,"debit_total":78899.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:24:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:03] local.INFO: Model: Journal  
[2026-08-01 11:26:03] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:26:03] local.INFO: ID present? YES  
[2026-08-01 11:26:03] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:03] local.INFO: ID empty? NO  
[2026-08-01 11:26:03] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:03] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 11:26:03, 2026-08-01 11:26:03))  
[2026-08-01 11:26:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:10] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:10] local.INFO: Model: Journal  
[2026-08-01 11:26:10] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:26:10] local.INFO: ID present? YES  
[2026-08-01 11:26:10] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:10] local.INFO: ID empty? NO  
[2026-08-01 11:26:10] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:10] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 11:26:10, 2026-08-01 11:26:10))  
[2026-08-01 11:26:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:16] local.INFO: Model: Journal  
[2026-08-01 11:26:16] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:26:16] local.INFO: ID present? YES  
[2026-08-01 11:26:16] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:16] local.INFO: ID empty? NO  
[2026-08-01 11:26:16] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:16] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 11:26:16, 2026-08-01 11:26:16))  
[2026-08-01 11:26:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:22] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:22] local.INFO: Model: Journal  
[2026-08-01 11:26:22] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 11:26:22] local.INFO: ID present? YES  
[2026-08-01 11:26:22] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:22] local.INFO: ID empty? NO  
[2026-08-01 11:26:22] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:22] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 11:26:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 11:26:22, 2026-08-01 11:26:22))  
[2026-08-01 11:26:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:23] local.INFO: Model: Journal  
[2026-08-01 11:26:23] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:26:23] local.INFO: ID present? YES  
[2026-08-01 11:26:23] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:23] local.INFO: ID empty? NO  
[2026-08-01 11:26:23] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:23] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:26:23, 2026-08-01 11:26:23))  
[2026-08-01 11:26:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:30] local.INFO: Model: Journal  
[2026-08-01 11:26:30] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:26:30] local.INFO: ID present? YES  
[2026-08-01 11:26:30] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:30] local.INFO: ID empty? NO  
[2026-08-01 11:26:30] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:30] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:26:30, 2026-08-01 11:26:30))  
[2026-08-01 11:26:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:36] local.INFO: Model: Journal  
[2026-08-01 11:26:36] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:26:36] local.INFO: ID present? YES  
[2026-08-01 11:26:36] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:36] local.INFO: ID empty? NO  
[2026-08-01 11:26:36] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:36] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:26:36, 2026-08-01 11:26:36))  
[2026-08-01 11:26:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:42] local.INFO: Model: Journal  
[2026-08-01 11:26:42] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:26:42] local.INFO: ID present? YES  
[2026-08-01 11:26:42] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:42] local.INFO: ID empty? NO  
[2026-08-01 11:26:42] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:42] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 11:26:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:26:42, 2026-08-01 11:26:42))  
[2026-08-01 11:26:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:43] local.INFO: Model: Journal  
[2026-08-01 11:26:43] local.INFO: Data received: {"id":"ba0946d4-6e03-4fb2-bbc6-dfc59ec35b46","type":"Credit","amount":"625.00","rate":"128.500000","lcy_amount":"625.000000","narrative":"Gain on TR-3612-2026","uniqid":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4983c708-ce32-4dc7-b321-d2df9950f632","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:18:33","updated_at":"2026-08-01 11:18:33"} 
[2026-08-01 11:26:43] local.INFO: ID present? YES  
[2026-08-01 11:26:43] local.INFO: ID value: ba0946d4-6e03-4fb2-bbc6-dfc59ec35b46  
[2026-08-01 11:26:43] local.INFO: ID empty? NO  
[2026-08-01 11:26:43] local.INFO: Attempting to find record with ID: ba0946d4-6e03-4fb2-bbc6-dfc59ec35b46  
[2026-08-01 11:26:43] local.INFO: Record not found, creating new with ID: ba0946d4-6e03-4fb2-bbc6-dfc59ec35b46  
[2026-08-01 11:26:43] local.INFO: Created record: {"id":"ba0946d4-6e03-4fb2-bbc6-dfc59ec35b46","type":"Credit","amount":"625.00","rate":"128.500000","lcy_amount":"625.000000","narrative":"Gain on TR-3612-2026","uniqid":"4983c708-ce32-4dc7-b321-d2df9950f632","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"4983c708-ce32-4dc7-b321-d2df9950f632","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:43.000000Z","created_at":"2026-08-01T08:26:43.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-118571.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":125883.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T08:25:38.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 11:26:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:45] local.INFO: Model: Journal  
[2026-08-01 11:26:45] local.INFO: Data received: {"id":"bf38489b-beb9-4b08-a082-d113fc1dbb23","type":"Debit","amount":"60.00","rate":"125.000000","lcy_amount":"7740.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"2bd51811-b603-4366-bb11-ca772d958db6","customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 11:17:05","updated_at":"2026-08-01 11:17:05"} 
[2026-08-01 11:26:45] local.INFO: ID present? YES  
[2026-08-01 11:26:45] local.INFO: ID value: bf38489b-beb9-4b08-a082-d113fc1dbb23  
[2026-08-01 11:26:45] local.INFO: ID empty? NO  
[2026-08-01 11:26:45] local.INFO: Attempting to find record with ID: bf38489b-beb9-4b08-a082-d113fc1dbb23  
[2026-08-01 11:26:45] local.INFO: Record not found, creating new with ID: bf38489b-beb9-4b08-a082-d113fc1dbb23  
[2026-08-01 11:26:45] local.INFO: Created record: {"id":"bf38489b-beb9-4b08-a082-d113fc1dbb23","type":"Debit","amount":"60.00","rate":"125.000000","lcy_amount":"7740.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"2bd51811-b603-4366-bb11-ca772d958db6","customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T08:26:45.000000Z","created_at":"2026-08-01T08:26:45.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1510.0,"debit_total":78959.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:26:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:46] local.INFO: Model: Journal  
[2026-08-01 11:26:46] local.INFO: Data received: {"id":"c055ed44-85e4-4427-9d5a-acabd918a790","type":"Credit","amount":"240.00","rate":"125.000000","lcy_amount":"240.000000","narrative":"Gain on TR-3610-2026","uniqid":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"2bd51811-b603-4366-bb11-ca772d958db6","customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:17:05","updated_at":"2026-08-01 11:17:05"} 
[2026-08-01 11:26:46] local.INFO: ID present? YES  
[2026-08-01 11:26:46] local.INFO: ID value: c055ed44-85e4-4427-9d5a-acabd918a790  
[2026-08-01 11:26:46] local.INFO: ID empty? NO  
[2026-08-01 11:26:46] local.INFO: Attempting to find record with ID: c055ed44-85e4-4427-9d5a-acabd918a790  
[2026-08-01 11:26:46] local.INFO: Record not found, creating new with ID: c055ed44-85e4-4427-9d5a-acabd918a790  
[2026-08-01 11:26:46] local.INFO: Created record: {"id":"c055ed44-85e4-4427-9d5a-acabd918a790","type":"Credit","amount":"240.00","rate":"125.000000","lcy_amount":"240.000000","narrative":"Gain on TR-3610-2026","uniqid":"2bd51811-b603-4366-bb11-ca772d958db6","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"2bd51811-b603-4366-bb11-ca772d958db6","customer_id":"86ec418e-838b-480e-ac96-32b305d78b89","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:46.000000Z","created_at":"2026-08-01T08:26:46.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-118811.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":126123.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T08:26:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 11:26:47] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:47] local.INFO: Model: Journal  
[2026-08-01 11:26:47] local.INFO: Data received: {"id":"c1600226-74a3-49f8-b66d-572bf2020b39","type":"Credit","amount":"120.00","rate":"125.000000","lcy_amount":"120.000000","narrative":"Gain on TR-3615-2026","uniqid":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:22:18","updated_at":"2026-08-01 11:22:18"} 
[2026-08-01 11:26:47] local.INFO: ID present? YES  
[2026-08-01 11:26:47] local.INFO: ID value: c1600226-74a3-49f8-b66d-572bf2020b39  
[2026-08-01 11:26:47] local.INFO: ID empty? NO  
[2026-08-01 11:26:47] local.INFO: Attempting to find record with ID: c1600226-74a3-49f8-b66d-572bf2020b39  
[2026-08-01 11:26:47] local.INFO: Record not found, creating new with ID: c1600226-74a3-49f8-b66d-572bf2020b39  
[2026-08-01 11:26:47] local.INFO: Created record: {"id":"c1600226-74a3-49f8-b66d-572bf2020b39","type":"Credit","amount":"120.00","rate":"125.000000","lcy_amount":"120.000000","narrative":"Gain on TR-3615-2026","uniqid":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:47.000000Z","created_at":"2026-08-01T08:26:47.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-118931.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":126243.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T08:26:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 11:26:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:48] local.INFO: Model: Journal  
[2026-08-01 11:26:48] local.INFO: Data received: {"id":"cdaa0f86-2847-4bbf-9df9-cd3145600e66","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:20:31","updated_at":"2026-08-01 11:20:31"} 
[2026-08-01 11:26:48] local.INFO: ID present? YES  
[2026-08-01 11:26:48] local.INFO: ID value: cdaa0f86-2847-4bbf-9df9-cd3145600e66  
[2026-08-01 11:26:48] local.INFO: ID empty? NO  
[2026-08-01 11:26:48] local.INFO: Attempting to find record with ID: cdaa0f86-2847-4bbf-9df9-cd3145600e66  
[2026-08-01 11:26:48] local.INFO: Record not found, creating new with ID: cdaa0f86-2847-4bbf-9df9-cd3145600e66  
[2026-08-01 11:26:48] local.INFO: Created record: {"id":"cdaa0f86-2847-4bbf-9df9-cd3145600e66","type":"Credit","amount":"5800.00","rate":"145.000000","lcy_amount":"5800.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:48.000000Z","created_at":"2026-08-01T08:26:48.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":77253.0,"debit_total":"21749595.10","credit_total":21672342.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:26:01.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:49] local.INFO: Model: Journal  
[2026-08-01 11:26:49] local.INFO: Data received: {"id":"d57daf42-7f11-44fd-91f2-54ac3344a8ec","type":"Credit","amount":"3750.00","rate":"125.000000","lcy_amount":"3750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:22:18","updated_at":"2026-08-01 11:22:18"} 
[2026-08-01 11:26:49] local.INFO: ID present? YES  
[2026-08-01 11:26:49] local.INFO: ID value: d57daf42-7f11-44fd-91f2-54ac3344a8ec  
[2026-08-01 11:26:49] local.INFO: ID empty? NO  
[2026-08-01 11:26:49] local.INFO: Attempting to find record with ID: d57daf42-7f11-44fd-91f2-54ac3344a8ec  
[2026-08-01 11:26:49] local.INFO: Record not found, creating new with ID: d57daf42-7f11-44fd-91f2-54ac3344a8ec  
[2026-08-01 11:26:49] local.INFO: Created record: {"id":"d57daf42-7f11-44fd-91f2-54ac3344a8ec","type":"Credit","amount":"3750.00","rate":"125.000000","lcy_amount":"3750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:49.000000Z","created_at":"2026-08-01T08:26:49.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":73503.0,"debit_total":"21749595.10","credit_total":21676092.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:26:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:51] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:51] local.INFO: Model: Journal  
[2026-08-01 11:26:51] local.INFO: Data received: {"id":"d9a2210c-1dd1-4f5b-a54e-f84776e6d29e","type":"Credit","amount":"220000.00","rate":null,"lcy_amount":"220000.000000","narrative":"KES ADDITION","uniqid":"ce2bd341-f240-4650-87ff-58d29466d51c","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:23:36","updated_at":"2026-08-01 11:23:39"} 
[2026-08-01 11:26:51] local.INFO: ID present? YES  
[2026-08-01 11:26:51] local.INFO: ID value: d9a2210c-1dd1-4f5b-a54e-f84776e6d29e  
[2026-08-01 11:26:51] local.INFO: ID empty? NO  
[2026-08-01 11:26:51] local.INFO: Attempting to find record with ID: d9a2210c-1dd1-4f5b-a54e-f84776e6d29e  
[2026-08-01 11:26:51] local.INFO: Record not found, creating new with ID: d9a2210c-1dd1-4f5b-a54e-f84776e6d29e  
[2026-08-01 11:26:51] local.INFO: Created record: {"id":"d9a2210c-1dd1-4f5b-a54e-f84776e6d29e","type":"Credit","amount":"220000.00","rate":null,"lcy_amount":"220000.000000","narrative":"KES ADDITION","uniqid":"ce2bd341-f240-4650-87ff-58d29466d51c","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:26:51.000000Z","created_at":"2026-08-01T08:26:51.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":3455473.5,"debit_total":"9503959.10","credit_total":6048485.59999999962747097015380859375,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T16:03:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:52] local.INFO: Model: Journal  
[2026-08-01 11:26:52] local.INFO: Data received: {"id":"dfa9f58c-ea83-4e1a-986b-8efafbd6ec2e","type":"Debit","amount":"30.00","rate":"125.000000","lcy_amount":"3870.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 11:22:18","updated_at":"2026-08-01 11:22:18"} 
[2026-08-01 11:26:52] local.INFO: ID present? YES  
[2026-08-01 11:26:52] local.INFO: ID value: dfa9f58c-ea83-4e1a-986b-8efafbd6ec2e  
[2026-08-01 11:26:52] local.INFO: ID empty? NO  
[2026-08-01 11:26:52] local.INFO: Attempting to find record with ID: dfa9f58c-ea83-4e1a-986b-8efafbd6ec2e  
[2026-08-01 11:26:52] local.INFO: Record not found, creating new with ID: dfa9f58c-ea83-4e1a-986b-8efafbd6ec2e  
[2026-08-01 11:26:52] local.INFO: Created record: {"id":"dfa9f58c-ea83-4e1a-986b-8efafbd6ec2e","type":"Debit","amount":"30.00","rate":"125.000000","lcy_amount":"3870.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"b2f2982f-7c58-4793-9c89-0daaecee7dc6","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T08:26:52.000000Z","created_at":"2026-08-01T08:26:52.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1540.0,"debit_total":78989.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:26:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 11:26:53] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:53] local.INFO: Model: Journal  
[2026-08-01 11:26:53] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:26:53] local.INFO: ID present? YES  
[2026-08-01 11:26:53] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:26:53] local.INFO: ID empty? NO  
[2026-08-01 11:26:53] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:26:53] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:26:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:26:53, 2026-08-01 11:26:53))  
[2026-08-01 11:26:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:26:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:26:59] local.INFO: Model: Journal  
[2026-08-01 11:26:59] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:26:59] local.INFO: ID present? YES  
[2026-08-01 11:26:59] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:26:59] local.INFO: ID empty? NO  
[2026-08-01 11:26:59] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:26:59] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:26:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:26:59, 2026-08-01 11:26:59))  
[2026-08-01 11:26:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:27:05] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:27:05] local.INFO: Model: Journal  
[2026-08-01 11:27:05] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:27:05] local.INFO: ID present? YES  
[2026-08-01 11:27:05] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:27:05] local.INFO: ID empty? NO  
[2026-08-01 11:27:05] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:27:05] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:27:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:27:05, 2026-08-01 11:27:05))  
[2026-08-01 11:27:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:27:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:27:12] local.INFO: Model: Journal  
[2026-08-01 11:27:12] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 11:27:12] local.INFO: ID present? YES  
[2026-08-01 11:27:12] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:27:12] local.INFO: ID empty? NO  
[2026-08-01 11:27:12] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:27:12] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 11:27:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 11:27:12, 2026-08-01 11:27:12))  
[2026-08-01 11:27:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 11:27:13] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:27:13] local.INFO: Model: Journal  
[2026-08-01 11:27:13] local.INFO: Data received: {"id":"fc4b3e2a-6490-4945-a0ac-b5343f0f4e77","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"37376329-ecce-455d-b4e5-a9035576a1d9","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:22:40","updated_at":"2026-08-01 11:22:42"} 
[2026-08-01 11:27:13] local.INFO: ID present? YES  
[2026-08-01 11:27:13] local.INFO: ID value: fc4b3e2a-6490-4945-a0ac-b5343f0f4e77  
[2026-08-01 11:27:13] local.INFO: ID empty? NO  
[2026-08-01 11:27:13] local.INFO: Attempting to find record with ID: fc4b3e2a-6490-4945-a0ac-b5343f0f4e77  
[2026-08-01 11:27:13] local.INFO: Record not found, creating new with ID: fc4b3e2a-6490-4945-a0ac-b5343f0f4e77  
[2026-08-01 11:27:13] local.INFO: Created record: {"id":"fc4b3e2a-6490-4945-a0ac-b5343f0f4e77","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"37376329-ecce-455d-b4e5-a9035576a1d9","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:27:13.000000Z","created_at":"2026-08-01T08:27:13.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5590.0,"debit_total":5590.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T09:05:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 11:27:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 11:27:14] local.INFO: Model: Journal  
[2026-08-01 11:27:14] local.INFO: Data received: {"id":"fdb9c0db-3760-471b-b9d8-2eedae23b2c1","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3613-2026","uniqid":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 11:20:31","updated_at":"2026-08-01 11:20:31"} 
[2026-08-01 11:27:14] local.INFO: ID present? YES  
[2026-08-01 11:27:14] local.INFO: ID value: fdb9c0db-3760-471b-b9d8-2eedae23b2c1  
[2026-08-01 11:27:14] local.INFO: ID empty? NO  
[2026-08-01 11:27:14] local.INFO: Attempting to find record with ID: fdb9c0db-3760-471b-b9d8-2eedae23b2c1  
[2026-08-01 11:27:14] local.INFO: Record not found, creating new with ID: fdb9c0db-3760-471b-b9d8-2eedae23b2c1  
[2026-08-01 11:27:14] local.INFO: Created record: {"id":"fdb9c0db-3760-471b-b9d8-2eedae23b2c1","type":"Credit","amount":"248.00","rate":"145.000000","lcy_amount":"248.000000","narrative":"Gain on TR-3613-2026","uniqid":"2b79766e-550a-4079-b1e7-b36231f5bfe0","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"2b79766e-550a-4079-b1e7-b36231f5bfe0","customer_id":"e2ed7dac-fc26-4f80-9e33-5079b365180a","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T08:27:14.000000Z","created_at":"2026-08-01T08:27:14.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-119179.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":126491.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T08:26:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 12:15:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:15:23] local.INFO: Model: Transaction  
[2026-08-01 12:15:23] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:15:23] local.INFO: ID present? YES  
[2026-08-01 12:15:23] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:23] local.INFO: ID empty? NO  
[2026-08-01 12:15:23] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:23] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 12:15:23, 2026-08-01 12:15:23))  
[2026-08-01 12:15:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:15:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:15:30] local.INFO: Model: Transaction  
[2026-08-01 12:15:30] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:15:30] local.INFO: ID present? YES  
[2026-08-01 12:15:30] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:30] local.INFO: ID empty? NO  
[2026-08-01 12:15:30] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:30] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 12:15:30, 2026-08-01 12:15:30))  
[2026-08-01 12:15:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:15:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:15:36] local.INFO: Model: Transaction  
[2026-08-01 12:15:36] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:15:36] local.INFO: ID present? YES  
[2026-08-01 12:15:36] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:36] local.INFO: ID empty? NO  
[2026-08-01 12:15:36] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:36] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 12:15:36, 2026-08-01 12:15:36))  
[2026-08-01 12:15:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:15:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:15:42] local.INFO: Model: Transaction  
[2026-08-01 12:15:42] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:15:42] local.INFO: ID present? YES  
[2026-08-01 12:15:42] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:42] local.INFO: ID empty? NO  
[2026-08-01 12:15:42] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:42] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 12:15:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 12:15:42, 2026-08-01 12:15:42))  
[2026-08-01 12:15:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:15:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:15:43] local.INFO: Model: Transaction  
[2026-08-01 12:15:43] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:15:43] local.INFO: ID present? YES  
[2026-08-01 12:15:43] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:43] local.INFO: ID empty? NO  
[2026-08-01 12:15:43] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:43] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 12:15:43, 2026-08-01 12:15:43))  
[2026-08-01 12:15:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:15:50] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:15:50] local.INFO: Model: Transaction  
[2026-08-01 12:15:50] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:15:50] local.INFO: ID present? YES  
[2026-08-01 12:15:50] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:50] local.INFO: ID empty? NO  
[2026-08-01 12:15:50] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:50] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 12:15:50, 2026-08-01 12:15:50))  
[2026-08-01 12:15:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:15:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:15:56] local.INFO: Model: Transaction  
[2026-08-01 12:15:56] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:15:56] local.INFO: ID present? YES  
[2026-08-01 12:15:56] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:56] local.INFO: ID empty? NO  
[2026-08-01 12:15:56] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:56] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:15:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 12:15:56, 2026-08-01 12:15:56))  
[2026-08-01 12:15:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:02] local.INFO: Model: Transaction  
[2026-08-01 12:16:02] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:16:02] local.INFO: ID present? YES  
[2026-08-01 12:16:02] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:16:02] local.INFO: ID empty? NO  
[2026-08-01 12:16:02] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:16:02] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 12:16:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 12:16:02, 2026-08-01 12:16:02))  
[2026-08-01 12:16:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:03] local.INFO: Model: Transaction  
[2026-08-01 12:16:03] local.INFO: Data received: {"id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","type":"Buying","amount":20,"rate":125,"negotiated_rate":"0","amount_paid":2500,"amount_received":20,"narrative":null,"transaction_number":"TR-3616-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 12:15:14","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"24ec8320-af97-4eb6-b2f8-9459ae3ad01a","cancellation_reason":null,"customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 12:15:12","updated_at":"2026-08-01 12:15:14"} 
[2026-08-01 12:16:03] local.INFO: ID present? YES  
[2026-08-01 12:16:03] local.INFO: ID value: bb8abd17-b94b-4068-b7b0-102de5f3fac0  
[2026-08-01 12:16:03] local.INFO: ID empty? NO  
[2026-08-01 12:16:03] local.INFO: Attempting to find record with ID: bb8abd17-b94b-4068-b7b0-102de5f3fac0  
[2026-08-01 12:16:03] local.INFO: Record not found, creating new with ID: bb8abd17-b94b-4068-b7b0-102de5f3fac0  
[2026-08-01 12:16:03] local.INFO: Created record: {"id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","type":"Buying","amount":20,"rate":125,"negotiated_rate":"0","amount_paid":2500,"amount_received":20,"narrative":null,"transaction_number":"TR-3616-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 12:15:14","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"24ec8320-af97-4eb6-b2f8-9459ae3ad01a","cancellation_reason":null,"customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T09:16:03.000000Z","created_at":"2026-08-01T09:16:03.000000Z"} 
[2026-08-01 12:16:05] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:05] local.INFO: Model: Journal  
[2026-08-01 12:16:05] local.INFO: Data received: {"id":"06d0d4f9-7344-4e02-9182-98bf4ef26adf","type":"Credit","amount":"2500.00","rate":"125.000000","lcy_amount":"2500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 12:15:14","updated_at":"2026-08-01 12:15:14"} 
[2026-08-01 12:16:05] local.INFO: ID present? YES  
[2026-08-01 12:16:05] local.INFO: ID value: 06d0d4f9-7344-4e02-9182-98bf4ef26adf  
[2026-08-01 12:16:05] local.INFO: ID empty? NO  
[2026-08-01 12:16:05] local.INFO: Attempting to find record with ID: 06d0d4f9-7344-4e02-9182-98bf4ef26adf  
[2026-08-01 12:16:05] local.INFO: Record not found, creating new with ID: 06d0d4f9-7344-4e02-9182-98bf4ef26adf  
[2026-08-01 12:16:05] local.INFO: Created record: {"id":"06d0d4f9-7344-4e02-9182-98bf4ef26adf","type":"Credit","amount":"2500.00","rate":"125.000000","lcy_amount":"2500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T09:16:05.000000Z","created_at":"2026-08-01T09:16:05.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":71003.0,"debit_total":"21749595.10","credit_total":21678592.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:26:49.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 12:16:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:06] local.INFO: Model: Journal  
[2026-08-01 12:16:06] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:06] local.INFO: ID present? YES  
[2026-08-01 12:16:06] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:06] local.INFO: ID empty? NO  
[2026-08-01 12:16:06] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:06] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:06, 2026-08-01 12:16:06))  
[2026-08-01 12:16:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:12] local.INFO: Model: Journal  
[2026-08-01 12:16:12] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:12] local.INFO: ID present? YES  
[2026-08-01 12:16:12] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:12] local.INFO: ID empty? NO  
[2026-08-01 12:16:12] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:12] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:12, 2026-08-01 12:16:12))  
[2026-08-01 12:16:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:19] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:19] local.INFO: Model: Journal  
[2026-08-01 12:16:19] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:19] local.INFO: ID present? YES  
[2026-08-01 12:16:19] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:19] local.INFO: ID empty? NO  
[2026-08-01 12:16:19] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:19] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:19, 2026-08-01 12:16:19))  
[2026-08-01 12:16:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:25] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:25] local.INFO: Model: Journal  
[2026-08-01 12:16:25] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:25] local.INFO: ID present? YES  
[2026-08-01 12:16:25] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:25] local.INFO: ID empty? NO  
[2026-08-01 12:16:25] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:25] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 12:16:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:25, 2026-08-01 12:16:25))  
[2026-08-01 12:16:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:26] local.INFO: Model: Journal  
[2026-08-01 12:16:26] local.INFO: Data received: {"id":"2f8faf0b-105a-46ee-8506-13515cd996c3","type":"Credit","amount":"80.00","rate":"125.000000","lcy_amount":"80.000000","narrative":"Gain on TR-3616-2026","uniqid":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 12:15:14","updated_at":"2026-08-01 12:15:14"} 
[2026-08-01 12:16:26] local.INFO: ID present? YES  
[2026-08-01 12:16:26] local.INFO: ID value: 2f8faf0b-105a-46ee-8506-13515cd996c3  
[2026-08-01 12:16:26] local.INFO: ID empty? NO  
[2026-08-01 12:16:26] local.INFO: Attempting to find record with ID: 2f8faf0b-105a-46ee-8506-13515cd996c3  
[2026-08-01 12:16:26] local.INFO: Record not found, creating new with ID: 2f8faf0b-105a-46ee-8506-13515cd996c3  
[2026-08-01 12:16:26] local.INFO: Created record: {"id":"2f8faf0b-105a-46ee-8506-13515cd996c3","type":"Credit","amount":"80.00","rate":"125.000000","lcy_amount":"80.000000","narrative":"Gain on TR-3616-2026","uniqid":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T09:16:26.000000Z","created_at":"2026-08-01T09:16:26.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-119259.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":126571.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T08:27:14.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 12:16:27] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:27] local.INFO: Model: Journal  
[2026-08-01 12:16:27] local.INFO: Data received: {"id":"39abfe5f-ef67-4f33-b72e-74d771ee77ff","type":"Debit","amount":"20.00","rate":"125.000000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 12:15:14","updated_at":"2026-08-01 12:15:14"} 
[2026-08-01 12:16:27] local.INFO: ID present? YES  
[2026-08-01 12:16:27] local.INFO: ID value: 39abfe5f-ef67-4f33-b72e-74d771ee77ff  
[2026-08-01 12:16:27] local.INFO: ID empty? NO  
[2026-08-01 12:16:27] local.INFO: Attempting to find record with ID: 39abfe5f-ef67-4f33-b72e-74d771ee77ff  
[2026-08-01 12:16:27] local.INFO: Record not found, creating new with ID: 39abfe5f-ef67-4f33-b72e-74d771ee77ff  
[2026-08-01 12:16:27] local.INFO: Created record: {"id":"39abfe5f-ef67-4f33-b72e-74d771ee77ff","type":"Debit","amount":"20.00","rate":"125.000000","lcy_amount":"2580.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bb8abd17-b94b-4068-b7b0-102de5f3fac0","customer_id":"9368f2ef-b9d5-42a9-8900-a6fda23d2ba7","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T09:16:27.000000Z","created_at":"2026-08-01T09:16:27.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1560.0,"debit_total":79009.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:26:52.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 12:16:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:29] local.INFO: Model: Journal  
[2026-08-01 12:16:29] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:29] local.INFO: ID present? YES  
[2026-08-01 12:16:29] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:29] local.INFO: ID empty? NO  
[2026-08-01 12:16:29] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:29] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:29, 2026-08-01 12:16:29))  
[2026-08-01 12:16:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:35] local.INFO: Model: Journal  
[2026-08-01 12:16:35] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:35] local.INFO: ID present? YES  
[2026-08-01 12:16:35] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:35] local.INFO: ID empty? NO  
[2026-08-01 12:16:35] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:35] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:35, 2026-08-01 12:16:35))  
[2026-08-01 12:16:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:41] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:41] local.INFO: Model: Journal  
[2026-08-01 12:16:41] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:41] local.INFO: ID present? YES  
[2026-08-01 12:16:41] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:41] local.INFO: ID empty? NO  
[2026-08-01 12:16:41] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:41] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:41, 2026-08-01 12:16:41))  
[2026-08-01 12:16:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:48] local.INFO: Model: Journal  
[2026-08-01 12:16:48] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:16:48] local.INFO: ID present? YES  
[2026-08-01 12:16:48] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:48] local.INFO: ID empty? NO  
[2026-08-01 12:16:48] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:48] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 12:16:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:16:48, 2026-08-01 12:16:48))  
[2026-08-01 12:16:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:49] local.INFO: Model: Journal  
[2026-08-01 12:16:49] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:16:49] local.INFO: ID present? YES  
[2026-08-01 12:16:49] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:16:49] local.INFO: ID empty? NO  
[2026-08-01 12:16:49] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:16:49] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:16:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 12:16:49, 2026-08-01 12:16:49))  
[2026-08-01 12:16:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:16:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:16:55] local.INFO: Model: Journal  
[2026-08-01 12:16:55] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:16:55] local.INFO: ID present? YES  
[2026-08-01 12:16:55] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:16:55] local.INFO: ID empty? NO  
[2026-08-01 12:16:55] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:16:55] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:16:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 12:16:55, 2026-08-01 12:16:55))  
[2026-08-01 12:16:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:01] local.INFO: Model: Journal  
[2026-08-01 12:17:01] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:01] local.INFO: ID present? YES  
[2026-08-01 12:17:01] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:17:01] local.INFO: ID empty? NO  
[2026-08-01 12:17:01] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:17:01] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:17:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 12:17:01, 2026-08-01 12:17:01))  
[2026-08-01 12:17:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:08] local.INFO: Model: Journal  
[2026-08-01 12:17:08] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:08] local.INFO: ID present? YES  
[2026-08-01 12:17:08] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:17:08] local.INFO: ID empty? NO  
[2026-08-01 12:17:08] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:17:08] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 12:17:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 12:17:08, 2026-08-01 12:17:08))  
[2026-08-01 12:17:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:09] local.INFO: Model: Journal  
[2026-08-01 12:17:09] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:17:09] local.INFO: ID present? YES  
[2026-08-01 12:17:09] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:09] local.INFO: ID empty? NO  
[2026-08-01 12:17:09] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:09] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 12:17:09, 2026-08-01 12:17:09))  
[2026-08-01 12:17:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:15] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:15] local.INFO: Model: Journal  
[2026-08-01 12:17:15] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:17:15] local.INFO: ID present? YES  
[2026-08-01 12:17:15] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:15] local.INFO: ID empty? NO  
[2026-08-01 12:17:15] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:15] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 12:17:15, 2026-08-01 12:17:15))  
[2026-08-01 12:17:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:21] local.INFO: Model: Journal  
[2026-08-01 12:17:21] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:17:21] local.INFO: ID present? YES  
[2026-08-01 12:17:21] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:21] local.INFO: ID empty? NO  
[2026-08-01 12:17:21] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:21] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 12:17:21, 2026-08-01 12:17:21))  
[2026-08-01 12:17:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:28] local.INFO: Model: Journal  
[2026-08-01 12:17:28] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 12:17:28] local.INFO: ID present? YES  
[2026-08-01 12:17:28] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:28] local.INFO: ID empty? NO  
[2026-08-01 12:17:28] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:28] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 12:17:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 12:17:28, 2026-08-01 12:17:28))  
[2026-08-01 12:17:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:29] local.INFO: Model: Journal  
[2026-08-01 12:17:29] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:29] local.INFO: ID present? YES  
[2026-08-01 12:17:29] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:29] local.INFO: ID empty? NO  
[2026-08-01 12:17:29] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:29] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:17:29, 2026-08-01 12:17:29))  
[2026-08-01 12:17:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:35] local.INFO: Model: Journal  
[2026-08-01 12:17:35] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:35] local.INFO: ID present? YES  
[2026-08-01 12:17:35] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:35] local.INFO: ID empty? NO  
[2026-08-01 12:17:35] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:35] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:17:35, 2026-08-01 12:17:35))  
[2026-08-01 12:17:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:41] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:41] local.INFO: Model: Journal  
[2026-08-01 12:17:41] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:41] local.INFO: ID present? YES  
[2026-08-01 12:17:41] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:41] local.INFO: ID empty? NO  
[2026-08-01 12:17:41] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:41] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:17:41, 2026-08-01 12:17:41))  
[2026-08-01 12:17:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:48] local.INFO: Model: Journal  
[2026-08-01 12:17:48] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:48] local.INFO: ID present? YES  
[2026-08-01 12:17:48] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:48] local.INFO: ID empty? NO  
[2026-08-01 12:17:48] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:48] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 12:17:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:17:48, 2026-08-01 12:17:48))  
[2026-08-01 12:17:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:49] local.INFO: Model: Journal  
[2026-08-01 12:17:49] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:49] local.INFO: ID present? YES  
[2026-08-01 12:17:49] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:17:49] local.INFO: ID empty? NO  
[2026-08-01 12:17:49] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:17:49] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:17:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:17:49, 2026-08-01 12:17:49))  
[2026-08-01 12:17:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:17:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:17:55] local.INFO: Model: Journal  
[2026-08-01 12:17:55] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:17:55] local.INFO: ID present? YES  
[2026-08-01 12:17:55] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:17:55] local.INFO: ID empty? NO  
[2026-08-01 12:17:55] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:17:55] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:17:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:17:55, 2026-08-01 12:17:55))  
[2026-08-01 12:17:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:18:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:18:01] local.INFO: Model: Journal  
[2026-08-01 12:18:01] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:18:01] local.INFO: ID present? YES  
[2026-08-01 12:18:01] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:18:01] local.INFO: ID empty? NO  
[2026-08-01 12:18:01] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:18:01] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:18:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:18:01, 2026-08-01 12:18:01))  
[2026-08-01 12:18:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 12:18:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 12:18:08] local.INFO: Model: Journal  
[2026-08-01 12:18:08] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 12:18:08] local.INFO: ID present? YES  
[2026-08-01 12:18:08] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:18:08] local.INFO: ID empty? NO  
[2026-08-01 12:18:08] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:18:08] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 12:18:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 12:18:08, 2026-08-01 12:18:08))  
[2026-08-01 12:18:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:27:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:27:23] local.INFO: Model: Transaction  
[2026-08-01 13:27:23] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:27:23] local.INFO: ID present? YES  
[2026-08-01 13:27:23] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:23] local.INFO: ID empty? NO  
[2026-08-01 13:27:23] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:23] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:27:23, 2026-08-01 13:27:23))  
[2026-08-01 13:27:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:27:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:27:29] local.INFO: Model: Transaction  
[2026-08-01 13:27:29] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:27:29] local.INFO: ID present? YES  
[2026-08-01 13:27:29] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:29] local.INFO: ID empty? NO  
[2026-08-01 13:27:29] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:29] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:27:29, 2026-08-01 13:27:29))  
[2026-08-01 13:27:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:27:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:27:36] local.INFO: Model: Transaction  
[2026-08-01 13:27:36] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:27:36] local.INFO: ID present? YES  
[2026-08-01 13:27:36] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:36] local.INFO: ID empty? NO  
[2026-08-01 13:27:36] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:36] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:27:36, 2026-08-01 13:27:36))  
[2026-08-01 13:27:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:27:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:27:42] local.INFO: Model: Transaction  
[2026-08-01 13:27:42] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:27:42] local.INFO: ID present? YES  
[2026-08-01 13:27:42] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:42] local.INFO: ID empty? NO  
[2026-08-01 13:27:42] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:42] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:27:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:27:42, 2026-08-01 13:27:42))  
[2026-08-01 13:27:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:27:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:27:43] local.INFO: Model: Transaction  
[2026-08-01 13:27:43] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:27:43] local.INFO: ID present? YES  
[2026-08-01 13:27:43] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:43] local.INFO: ID empty? NO  
[2026-08-01 13:27:43] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:43] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:27:43, 2026-08-01 13:27:43))  
[2026-08-01 13:27:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:27:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:27:49] local.INFO: Model: Transaction  
[2026-08-01 13:27:49] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:27:49] local.INFO: ID present? YES  
[2026-08-01 13:27:49] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:49] local.INFO: ID empty? NO  
[2026-08-01 13:27:49] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:49] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:27:49, 2026-08-01 13:27:49))  
[2026-08-01 13:27:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:27:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:27:56] local.INFO: Model: Transaction  
[2026-08-01 13:27:56] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:27:56] local.INFO: ID present? YES  
[2026-08-01 13:27:56] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:56] local.INFO: ID empty? NO  
[2026-08-01 13:27:56] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:56] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:27:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:27:56, 2026-08-01 13:27:56))  
[2026-08-01 13:27:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:02] local.INFO: Model: Transaction  
[2026-08-01 13:28:02] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:28:02] local.INFO: ID present? YES  
[2026-08-01 13:28:02] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:28:02] local.INFO: ID empty? NO  
[2026-08-01 13:28:02] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:28:02] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:28:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:28:02, 2026-08-01 13:28:02))  
[2026-08-01 13:28:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:03] local.INFO: Model: Transaction  
[2026-08-01 13:28:03] local.INFO: Data received: {"id":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","type":"Buying","amount":50000,"rate":0.0200000000000000004163336342344337026588618755340576171875,"negotiated_rate":"0","amount_paid":1000,"amount_received":50000,"narrative":null,"transaction_number":"TR-3617-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 13:27:14","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b9556307-7d57-4d6b-8159-4c619f06f100","cancellation_reason":null,"customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","created_at":"2026-08-01 13:27:12","updated_at":"2026-08-01 13:27:14"} 
[2026-08-01 13:28:03] local.INFO: ID present? YES  
[2026-08-01 13:28:03] local.INFO: ID value: f1384eed-8181-4c45-ae20-6338d829aaf4  
[2026-08-01 13:28:03] local.INFO: ID empty? NO  
[2026-08-01 13:28:03] local.INFO: Attempting to find record with ID: f1384eed-8181-4c45-ae20-6338d829aaf4  
[2026-08-01 13:28:03] local.INFO: Record not found, creating new with ID: f1384eed-8181-4c45-ae20-6338d829aaf4  
[2026-08-01 13:28:03] local.INFO: Created record: {"id":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","type":"Buying","amount":50000,"rate":0.0200000000000000004163336342344337026588618755340576171875,"negotiated_rate":"0","amount_paid":1000,"amount_received":50000,"narrative":null,"transaction_number":"TR-3617-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 13:27:14","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b9556307-7d57-4d6b-8159-4c619f06f100","cancellation_reason":null,"customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","updated_at":"2026-08-01T10:28:03.000000Z","created_at":"2026-08-01T10:28:03.000000Z"} 
[2026-08-01 13:28:04] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:04] local.INFO: Model: Journal  
[2026-08-01 13:28:04] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:04] local.INFO: ID present? YES  
[2026-08-01 13:28:04] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:04] local.INFO: ID empty? NO  
[2026-08-01 13:28:04] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:04] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:04, 2026-08-01 13:28:04))  
[2026-08-01 13:28:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:11] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:11] local.INFO: Model: Journal  
[2026-08-01 13:28:11] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:11] local.INFO: ID present? YES  
[2026-08-01 13:28:11] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:11] local.INFO: ID empty? NO  
[2026-08-01 13:28:11] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:11] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:11, 2026-08-01 13:28:11))  
[2026-08-01 13:28:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:17] local.INFO: Model: Journal  
[2026-08-01 13:28:17] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:17] local.INFO: ID present? YES  
[2026-08-01 13:28:17] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:17] local.INFO: ID empty? NO  
[2026-08-01 13:28:17] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:17] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:17, 2026-08-01 13:28:17))  
[2026-08-01 13:28:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:23] local.INFO: Model: Journal  
[2026-08-01 13:28:23] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:23] local.INFO: ID present? YES  
[2026-08-01 13:28:23] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:23] local.INFO: ID empty? NO  
[2026-08-01 13:28:23] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:23] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:28:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:23, 2026-08-01 13:28:23))  
[2026-08-01 13:28:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:24] local.INFO: Model: Journal  
[2026-08-01 13:28:24] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:24] local.INFO: ID present? YES  
[2026-08-01 13:28:24] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:24] local.INFO: ID empty? NO  
[2026-08-01 13:28:24] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:24] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:24, 2026-08-01 13:28:24))  
[2026-08-01 13:28:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:31] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:31] local.INFO: Model: Journal  
[2026-08-01 13:28:31] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:31] local.INFO: ID present? YES  
[2026-08-01 13:28:31] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:31] local.INFO: ID empty? NO  
[2026-08-01 13:28:31] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:31] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:31, 2026-08-01 13:28:31))  
[2026-08-01 13:28:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:37] local.INFO: Model: Journal  
[2026-08-01 13:28:37] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:37] local.INFO: ID present? YES  
[2026-08-01 13:28:37] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:37] local.INFO: ID empty? NO  
[2026-08-01 13:28:37] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:37] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:37, 2026-08-01 13:28:37))  
[2026-08-01 13:28:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:43] local.INFO: Model: Journal  
[2026-08-01 13:28:43] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:28:43] local.INFO: ID present? YES  
[2026-08-01 13:28:43] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:43] local.INFO: ID empty? NO  
[2026-08-01 13:28:43] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:43] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:28:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:28:43, 2026-08-01 13:28:43))  
[2026-08-01 13:28:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:45] local.INFO: Model: Journal  
[2026-08-01 13:28:45] local.INFO: Data received: {"id":"72768300-45bf-492b-bfa7-9c3995d43a8f","type":"Debit","amount":"50000.00","rate":"0.020000","lcy_amount":"1500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"0e9b8288-aac5-44d9-8e60-1e2ba0c37fef","transaction_id":"f1384eed-8181-4c45-ae20-6338d829aaf4","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","status":"Posted","created_at":"2026-08-01 13:27:14","updated_at":"2026-08-01 13:27:14"} 
[2026-08-01 13:28:45] local.INFO: ID present? YES  
[2026-08-01 13:28:45] local.INFO: ID value: 72768300-45bf-492b-bfa7-9c3995d43a8f  
[2026-08-01 13:28:45] local.INFO: ID empty? NO  
[2026-08-01 13:28:45] local.INFO: Attempting to find record with ID: 72768300-45bf-492b-bfa7-9c3995d43a8f  
[2026-08-01 13:28:45] local.INFO: Record not found, creating new with ID: 72768300-45bf-492b-bfa7-9c3995d43a8f  
[2026-08-01 13:28:45] local.INFO: Created record: {"id":"72768300-45bf-492b-bfa7-9c3995d43a8f","type":"Debit","amount":"50000.00","rate":"0.020000","lcy_amount":"1500.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"0e9b8288-aac5-44d9-8e60-1e2ba0c37fef","transaction_id":"f1384eed-8181-4c45-ae20-6338d829aaf4","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","status":"Posted","updated_at":"2026-08-01T10:28:45.000000Z","created_at":"2026-08-01T10:28:45.000000Z","account":{"id":"0e9b8288-aac5-44d9-8e60-1e2ba0c37fef","name":"UGX-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-UGX-000002","is_fx_account":"1","balance":50000.0,"debit_total":140000.0,"credit_total":"90000.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"aacb4912-c0a6-40c3-9205-a41f9ef08e88","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-06-30T15:36:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 13:28:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:46] local.INFO: Model: Journal  
[2026-08-01 13:28:46] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:28:46] local.INFO: ID present? YES  
[2026-08-01 13:28:46] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:46] local.INFO: ID empty? NO  
[2026-08-01 13:28:46] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:46] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:28:46, 2026-08-01 13:28:46))  
[2026-08-01 13:28:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:52] local.INFO: Model: Journal  
[2026-08-01 13:28:52] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:28:52] local.INFO: ID present? YES  
[2026-08-01 13:28:52] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:52] local.INFO: ID empty? NO  
[2026-08-01 13:28:52] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:52] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:28:52, 2026-08-01 13:28:52))  
[2026-08-01 13:28:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:28:58] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:28:58] local.INFO: Model: Journal  
[2026-08-01 13:28:58] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:28:58] local.INFO: ID present? YES  
[2026-08-01 13:28:58] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:58] local.INFO: ID empty? NO  
[2026-08-01 13:28:58] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:58] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:28:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:28:58, 2026-08-01 13:28:58))  
[2026-08-01 13:28:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:05] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:05] local.INFO: Model: Journal  
[2026-08-01 13:29:05] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:29:05] local.INFO: ID present? YES  
[2026-08-01 13:29:05] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:29:05] local.INFO: ID empty? NO  
[2026-08-01 13:29:05] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:29:05] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:29:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:29:05, 2026-08-01 13:29:05))  
[2026-08-01 13:29:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:06] local.INFO: Model: Journal  
[2026-08-01 13:29:06] local.INFO: Data received: {"id":"91efd252-a58a-4c01-a572-1ff483ee235d","type":"Credit","amount":"1000.00","rate":"0.020000","lcy_amount":"1000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f1384eed-8181-4c45-ae20-6338d829aaf4","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 13:27:14","updated_at":"2026-08-01 13:27:14"} 
[2026-08-01 13:29:06] local.INFO: ID present? YES  
[2026-08-01 13:29:06] local.INFO: ID value: 91efd252-a58a-4c01-a572-1ff483ee235d  
[2026-08-01 13:29:06] local.INFO: ID empty? NO  
[2026-08-01 13:29:06] local.INFO: Attempting to find record with ID: 91efd252-a58a-4c01-a572-1ff483ee235d  
[2026-08-01 13:29:06] local.INFO: Record not found, creating new with ID: 91efd252-a58a-4c01-a572-1ff483ee235d  
[2026-08-01 13:29:06] local.INFO: Created record: {"id":"91efd252-a58a-4c01-a572-1ff483ee235d","type":"Credit","amount":"1000.00","rate":"0.020000","lcy_amount":"1000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f1384eed-8181-4c45-ae20-6338d829aaf4","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T10:29:06.000000Z","created_at":"2026-08-01T10:29:06.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":70003.0,"debit_total":"21749595.10","credit_total":21679592.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T09:16:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 13:29:07] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:07] local.INFO: Model: Journal  
[2026-08-01 13:29:07] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:29:07] local.INFO: ID present? YES  
[2026-08-01 13:29:07] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:07] local.INFO: ID empty? NO  
[2026-08-01 13:29:07] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:07] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:29:07, 2026-08-01 13:29:07))  
[2026-08-01 13:29:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:13] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:13] local.INFO: Model: Journal  
[2026-08-01 13:29:13] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:29:13] local.INFO: ID present? YES  
[2026-08-01 13:29:13] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:13] local.INFO: ID empty? NO  
[2026-08-01 13:29:13] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:13] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:29:13, 2026-08-01 13:29:13))  
[2026-08-01 13:29:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:20] local.INFO: Model: Journal  
[2026-08-01 13:29:20] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:29:20] local.INFO: ID present? YES  
[2026-08-01 13:29:20] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:20] local.INFO: ID empty? NO  
[2026-08-01 13:29:20] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:20] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:29:20, 2026-08-01 13:29:20))  
[2026-08-01 13:29:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:26] local.INFO: Model: Journal  
[2026-08-01 13:29:26] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:29:26] local.INFO: ID present? YES  
[2026-08-01 13:29:26] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:26] local.INFO: ID empty? NO  
[2026-08-01 13:29:26] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:26] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:29:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:29:26, 2026-08-01 13:29:26))  
[2026-08-01 13:29:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:27] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:27] local.INFO: Model: Journal  
[2026-08-01 13:29:27] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:29:27] local.INFO: ID present? YES  
[2026-08-01 13:29:27] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:27] local.INFO: ID empty? NO  
[2026-08-01 13:29:27] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:27] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:29:27, 2026-08-01 13:29:27))  
[2026-08-01 13:29:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:34] local.INFO: Model: Journal  
[2026-08-01 13:29:34] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:29:34] local.INFO: ID present? YES  
[2026-08-01 13:29:34] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:34] local.INFO: ID empty? NO  
[2026-08-01 13:29:34] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:34] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:29:34, 2026-08-01 13:29:34))  
[2026-08-01 13:29:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:40] local.INFO: Model: Journal  
[2026-08-01 13:29:40] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:29:40] local.INFO: ID present? YES  
[2026-08-01 13:29:40] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:40] local.INFO: ID empty? NO  
[2026-08-01 13:29:40] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:40] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:29:40, 2026-08-01 13:29:40))  
[2026-08-01 13:29:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:46] local.INFO: Model: Journal  
[2026-08-01 13:29:46] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:29:46] local.INFO: ID present? YES  
[2026-08-01 13:29:46] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:46] local.INFO: ID empty? NO  
[2026-08-01 13:29:46] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:46] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:29:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:29:46, 2026-08-01 13:29:46))  
[2026-08-01 13:29:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:47] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:47] local.INFO: Model: Journal  
[2026-08-01 13:29:47] local.INFO: Data received: {"id":"e7462c90-7148-466f-8d10-7b78bc2d194b","type":"Credit","amount":"500.00","rate":"0.020000","lcy_amount":"500.000000","narrative":"Gain on TR-3617-2026","uniqid":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f1384eed-8181-4c45-ae20-6338d829aaf4","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 13:27:14","updated_at":"2026-08-01 13:27:14"} 
[2026-08-01 13:29:47] local.INFO: ID present? YES  
[2026-08-01 13:29:47] local.INFO: ID value: e7462c90-7148-466f-8d10-7b78bc2d194b  
[2026-08-01 13:29:47] local.INFO: ID empty? NO  
[2026-08-01 13:29:47] local.INFO: Attempting to find record with ID: e7462c90-7148-466f-8d10-7b78bc2d194b  
[2026-08-01 13:29:47] local.INFO: Record not found, creating new with ID: e7462c90-7148-466f-8d10-7b78bc2d194b  
[2026-08-01 13:29:47] local.INFO: Created record: {"id":"e7462c90-7148-466f-8d10-7b78bc2d194b","type":"Credit","amount":"500.00","rate":"0.020000","lcy_amount":"500.000000","narrative":"Gain on TR-3617-2026","uniqid":"f1384eed-8181-4c45-ae20-6338d829aaf4","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f1384eed-8181-4c45-ae20-6338d829aaf4","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T10:29:47.000000Z","created_at":"2026-08-01T10:29:47.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-119759.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":127071.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T09:16:26.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 13:29:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:49] local.INFO: Model: Journal  
[2026-08-01 13:29:49] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:29:49] local.INFO: ID present? YES  
[2026-08-01 13:29:49] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:29:49] local.INFO: ID empty? NO  
[2026-08-01 13:29:49] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:29:49] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:29:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:29:49, 2026-08-01 13:29:49))  
[2026-08-01 13:29:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:29:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:29:55] local.INFO: Model: Journal  
[2026-08-01 13:29:55] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:29:55] local.INFO: ID present? YES  
[2026-08-01 13:29:55] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:29:55] local.INFO: ID empty? NO  
[2026-08-01 13:29:55] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:29:55] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:29:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:29:55, 2026-08-01 13:29:55))  
[2026-08-01 13:29:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:30:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:30:01] local.INFO: Model: Journal  
[2026-08-01 13:30:01] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:30:01] local.INFO: ID present? YES  
[2026-08-01 13:30:01] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:30:01] local.INFO: ID empty? NO  
[2026-08-01 13:30:01] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:30:01] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:30:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:30:01, 2026-08-01 13:30:01))  
[2026-08-01 13:30:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:30:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:30:08] local.INFO: Model: Journal  
[2026-08-01 13:30:08] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:30:08] local.INFO: ID present? YES  
[2026-08-01 13:30:08] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:30:08] local.INFO: ID empty? NO  
[2026-08-01 13:30:08] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:30:08] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:30:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:30:08, 2026-08-01 13:30:08))  
[2026-08-01 13:30:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:56:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:56:34] local.INFO: Model: Transaction  
[2026-08-01 13:56:34] local.INFO: Data received: {"id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","type":"Buying","amount":1000,"rate":128.30000000000001136868377216160297393798828125,"negotiated_rate":"0","amount_paid":128300,"amount_received":1000,"narrative":null,"transaction_number":"TR-3618-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 13:56:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"12c42d88-9414-4b47-b787-fdb3e4059822","cancellation_reason":null,"customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 13:56:26","updated_at":"2026-08-01 13:56:28"} 
[2026-08-01 13:56:34] local.INFO: ID present? YES  
[2026-08-01 13:56:34] local.INFO: ID value: 38f53cf8-ff82-4dc9-8b99-30e3acf23a5e  
[2026-08-01 13:56:34] local.INFO: ID empty? NO  
[2026-08-01 13:56:34] local.INFO: Attempting to find record with ID: 38f53cf8-ff82-4dc9-8b99-30e3acf23a5e  
[2026-08-01 13:56:34] local.INFO: Record not found, creating new with ID: 38f53cf8-ff82-4dc9-8b99-30e3acf23a5e  
[2026-08-01 13:56:34] local.INFO: Created record: {"id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","type":"Buying","amount":1000,"rate":128.30000000000001136868377216160297393798828125,"negotiated_rate":"0","amount_paid":128300,"amount_received":1000,"narrative":null,"transaction_number":"TR-3618-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 13:56:28","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"12c42d88-9414-4b47-b787-fdb3e4059822","cancellation_reason":null,"customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T10:56:34.000000Z","created_at":"2026-08-01T10:56:34.000000Z"} 
[2026-08-01 13:56:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:56:35] local.INFO: Model: Transaction  
[2026-08-01 13:56:35] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:56:35] local.INFO: ID present? YES  
[2026-08-01 13:56:35] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:35] local.INFO: ID empty? NO  
[2026-08-01 13:56:35] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:35] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:56:35, 2026-08-01 13:56:35))  
[2026-08-01 13:56:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:56:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:56:42] local.INFO: Model: Transaction  
[2026-08-01 13:56:42] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:56:42] local.INFO: ID present? YES  
[2026-08-01 13:56:42] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:42] local.INFO: ID empty? NO  
[2026-08-01 13:56:42] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:42] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:56:42, 2026-08-01 13:56:42))  
[2026-08-01 13:56:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:56:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:56:48] local.INFO: Model: Transaction  
[2026-08-01 13:56:48] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:56:48] local.INFO: ID present? YES  
[2026-08-01 13:56:48] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:48] local.INFO: ID empty? NO  
[2026-08-01 13:56:48] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:48] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:56:48, 2026-08-01 13:56:48))  
[2026-08-01 13:56:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:56:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:56:54] local.INFO: Model: Transaction  
[2026-08-01 13:56:54] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:56:54] local.INFO: ID present? YES  
[2026-08-01 13:56:54] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:54] local.INFO: ID empty? NO  
[2026-08-01 13:56:54] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:54] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 13:56:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 13:56:54, 2026-08-01 13:56:54))  
[2026-08-01 13:56:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:56:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:56:55] local.INFO: Model: Transaction  
[2026-08-01 13:56:55] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:56:55] local.INFO: ID present? YES  
[2026-08-01 13:56:55] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:56:55] local.INFO: ID empty? NO  
[2026-08-01 13:56:55] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:56:55] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:56:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:56:55, 2026-08-01 13:56:55))  
[2026-08-01 13:56:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:02] local.INFO: Model: Transaction  
[2026-08-01 13:57:02] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:57:02] local.INFO: ID present? YES  
[2026-08-01 13:57:02] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:02] local.INFO: ID empty? NO  
[2026-08-01 13:57:02] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:02] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:57:02, 2026-08-01 13:57:02))  
[2026-08-01 13:57:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:08] local.INFO: Model: Transaction  
[2026-08-01 13:57:08] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:57:08] local.INFO: ID present? YES  
[2026-08-01 13:57:08] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:08] local.INFO: ID empty? NO  
[2026-08-01 13:57:08] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:08] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:57:08, 2026-08-01 13:57:08))  
[2026-08-01 13:57:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:14] local.INFO: Model: Transaction  
[2026-08-01 13:57:14] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:57:14] local.INFO: ID present? YES  
[2026-08-01 13:57:14] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:14] local.INFO: ID empty? NO  
[2026-08-01 13:57:14] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:14] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 13:57:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 13:57:14, 2026-08-01 13:57:14))  
[2026-08-01 13:57:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:16] local.INFO: Model: Journal  
[2026-08-01 13:57:16] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:16] local.INFO: ID present? YES  
[2026-08-01 13:57:16] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:16] local.INFO: ID empty? NO  
[2026-08-01 13:57:16] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:16] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:16, 2026-08-01 13:57:16))  
[2026-08-01 13:57:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:22] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:22] local.INFO: Model: Journal  
[2026-08-01 13:57:22] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:22] local.INFO: ID present? YES  
[2026-08-01 13:57:22] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:22] local.INFO: ID empty? NO  
[2026-08-01 13:57:22] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:22] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:22, 2026-08-01 13:57:22))  
[2026-08-01 13:57:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:28] local.INFO: Model: Journal  
[2026-08-01 13:57:28] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:28] local.INFO: ID present? YES  
[2026-08-01 13:57:28] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:28] local.INFO: ID empty? NO  
[2026-08-01 13:57:28] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:28] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:28, 2026-08-01 13:57:28))  
[2026-08-01 13:57:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:35] local.INFO: Model: Journal  
[2026-08-01 13:57:35] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:35] local.INFO: ID present? YES  
[2026-08-01 13:57:35] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:35] local.INFO: ID empty? NO  
[2026-08-01 13:57:35] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:35] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 13:57:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:35, 2026-08-01 13:57:35))  
[2026-08-01 13:57:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:36] local.INFO: Model: Journal  
[2026-08-01 13:57:36] local.INFO: Data received: {"id":"3b96085d-439d-425d-8f25-5382bcc8f442","type":"Debit","amount":"1000.00","rate":"128.300000","lcy_amount":"129000.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 13:56:28","updated_at":"2026-08-01 13:56:28"} 
[2026-08-01 13:57:36] local.INFO: ID present? YES  
[2026-08-01 13:57:36] local.INFO: ID value: 3b96085d-439d-425d-8f25-5382bcc8f442  
[2026-08-01 13:57:36] local.INFO: ID empty? NO  
[2026-08-01 13:57:36] local.INFO: Attempting to find record with ID: 3b96085d-439d-425d-8f25-5382bcc8f442  
[2026-08-01 13:57:36] local.INFO: Record not found, creating new with ID: 3b96085d-439d-425d-8f25-5382bcc8f442  
[2026-08-01 13:57:36] local.INFO: Created record: {"id":"3b96085d-439d-425d-8f25-5382bcc8f442","type":"Debit","amount":"1000.00","rate":"128.300000","lcy_amount":"129000.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T10:57:36.000000Z","created_at":"2026-08-01T10:57:36.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":2560.0,"debit_total":80009.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T09:16:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 13:57:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:37] local.INFO: Model: Journal  
[2026-08-01 13:57:37] local.INFO: Data received: {"id":"4532c860-7b3e-4953-bed2-884225977e14","type":"Credit","amount":"128300.00","rate":"128.300000","lcy_amount":"128300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 13:56:28","updated_at":"2026-08-01 13:56:28"} 
[2026-08-01 13:57:37] local.INFO: ID present? YES  
[2026-08-01 13:57:37] local.INFO: ID value: 4532c860-7b3e-4953-bed2-884225977e14  
[2026-08-01 13:57:37] local.INFO: ID empty? NO  
[2026-08-01 13:57:37] local.INFO: Attempting to find record with ID: 4532c860-7b3e-4953-bed2-884225977e14  
[2026-08-01 13:57:37] local.INFO: Record not found, creating new with ID: 4532c860-7b3e-4953-bed2-884225977e14  
[2026-08-01 13:57:37] local.INFO: Created record: {"id":"4532c860-7b3e-4953-bed2-884225977e14","type":"Credit","amount":"128300.00","rate":"128.300000","lcy_amount":"128300.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T10:57:37.000000Z","created_at":"2026-08-01T10:57:37.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-58297.0,"debit_total":"21749595.10","credit_total":21807892.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T10:29:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 13:57:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:38] local.INFO: Model: Journal  
[2026-08-01 13:57:38] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:38] local.INFO: ID present? YES  
[2026-08-01 13:57:38] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:38] local.INFO: ID empty? NO  
[2026-08-01 13:57:38] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:38] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:38, 2026-08-01 13:57:38))  
[2026-08-01 13:57:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:45] local.INFO: Model: Journal  
[2026-08-01 13:57:45] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:45] local.INFO: ID present? YES  
[2026-08-01 13:57:45] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:45] local.INFO: ID empty? NO  
[2026-08-01 13:57:45] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:45] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:45, 2026-08-01 13:57:45))  
[2026-08-01 13:57:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:51] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:51] local.INFO: Model: Journal  
[2026-08-01 13:57:51] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:51] local.INFO: ID present? YES  
[2026-08-01 13:57:51] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:51] local.INFO: ID empty? NO  
[2026-08-01 13:57:51] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:51] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:51, 2026-08-01 13:57:51))  
[2026-08-01 13:57:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:57] local.INFO: Model: Journal  
[2026-08-01 13:57:57] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:57:57] local.INFO: ID present? YES  
[2026-08-01 13:57:57] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:57] local.INFO: ID empty? NO  
[2026-08-01 13:57:57] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:57] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 13:57:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:57:57, 2026-08-01 13:57:57))  
[2026-08-01 13:57:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:57:58] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:57:58] local.INFO: Model: Journal  
[2026-08-01 13:57:58] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:57:58] local.INFO: ID present? YES  
[2026-08-01 13:57:58] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:57:58] local.INFO: ID empty? NO  
[2026-08-01 13:57:58] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:57:58] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:57:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:57:58, 2026-08-01 13:57:58))  
[2026-08-01 13:57:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:05] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:05] local.INFO: Model: Journal  
[2026-08-01 13:58:05] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:58:05] local.INFO: ID present? YES  
[2026-08-01 13:58:05] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:05] local.INFO: ID empty? NO  
[2026-08-01 13:58:05] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:05] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:58:05, 2026-08-01 13:58:05))  
[2026-08-01 13:58:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:11] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:11] local.INFO: Model: Journal  
[2026-08-01 13:58:11] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:58:11] local.INFO: ID present? YES  
[2026-08-01 13:58:11] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:11] local.INFO: ID empty? NO  
[2026-08-01 13:58:11] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:11] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:58:11, 2026-08-01 13:58:11))  
[2026-08-01 13:58:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:17] local.INFO: Model: Journal  
[2026-08-01 13:58:17] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:58:17] local.INFO: ID present? YES  
[2026-08-01 13:58:17] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:17] local.INFO: ID empty? NO  
[2026-08-01 13:58:17] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:17] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 13:58:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 13:58:17, 2026-08-01 13:58:17))  
[2026-08-01 13:58:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:18] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:18] local.INFO: Model: Journal  
[2026-08-01 13:58:18] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:58:18] local.INFO: ID present? YES  
[2026-08-01 13:58:18] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:18] local.INFO: ID empty? NO  
[2026-08-01 13:58:18] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:18] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:58:18, 2026-08-01 13:58:18))  
[2026-08-01 13:58:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:25] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:25] local.INFO: Model: Journal  
[2026-08-01 13:58:25] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:58:25] local.INFO: ID present? YES  
[2026-08-01 13:58:25] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:25] local.INFO: ID empty? NO  
[2026-08-01 13:58:25] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:25] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:58:25, 2026-08-01 13:58:25))  
[2026-08-01 13:58:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:31] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:31] local.INFO: Model: Journal  
[2026-08-01 13:58:31] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:58:31] local.INFO: ID present? YES  
[2026-08-01 13:58:31] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:31] local.INFO: ID empty? NO  
[2026-08-01 13:58:31] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:31] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:58:31, 2026-08-01 13:58:31))  
[2026-08-01 13:58:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:37] local.INFO: Model: Journal  
[2026-08-01 13:58:37] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 13:58:37] local.INFO: ID present? YES  
[2026-08-01 13:58:37] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:37] local.INFO: ID empty? NO  
[2026-08-01 13:58:37] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:37] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 13:58:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 13:58:37, 2026-08-01 13:58:37))  
[2026-08-01 13:58:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:38] local.INFO: Model: Journal  
[2026-08-01 13:58:38] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:58:38] local.INFO: ID present? YES  
[2026-08-01 13:58:38] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:38] local.INFO: ID empty? NO  
[2026-08-01 13:58:38] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:38] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:58:38, 2026-08-01 13:58:38))  
[2026-08-01 13:58:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:45] local.INFO: Model: Journal  
[2026-08-01 13:58:45] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:58:45] local.INFO: ID present? YES  
[2026-08-01 13:58:45] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:45] local.INFO: ID empty? NO  
[2026-08-01 13:58:45] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:45] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:58:45, 2026-08-01 13:58:45))  
[2026-08-01 13:58:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:51] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:51] local.INFO: Model: Journal  
[2026-08-01 13:58:51] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:58:51] local.INFO: ID present? YES  
[2026-08-01 13:58:51] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:51] local.INFO: ID empty? NO  
[2026-08-01 13:58:51] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:51] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:58:51, 2026-08-01 13:58:51))  
[2026-08-01 13:58:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:57] local.INFO: Model: Journal  
[2026-08-01 13:58:57] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:58:57] local.INFO: ID present? YES  
[2026-08-01 13:58:57] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:57] local.INFO: ID empty? NO  
[2026-08-01 13:58:57] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:57] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 13:58:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:58:57, 2026-08-01 13:58:57))  
[2026-08-01 13:58:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:58:58] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:58:58] local.INFO: Model: Journal  
[2026-08-01 13:58:58] local.INFO: Data received: {"id":"dd199efb-60d0-45c2-896d-2175eb63f920","type":"Credit","amount":"700.00","rate":"128.300000","lcy_amount":"700.000000","narrative":"Gain on TR-3618-2026","uniqid":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 13:56:28","updated_at":"2026-08-01 13:56:28"} 
[2026-08-01 13:58:58] local.INFO: ID present? YES  
[2026-08-01 13:58:58] local.INFO: ID value: dd199efb-60d0-45c2-896d-2175eb63f920  
[2026-08-01 13:58:58] local.INFO: ID empty? NO  
[2026-08-01 13:58:58] local.INFO: Attempting to find record with ID: dd199efb-60d0-45c2-896d-2175eb63f920  
[2026-08-01 13:58:58] local.INFO: Record not found, creating new with ID: dd199efb-60d0-45c2-896d-2175eb63f920  
[2026-08-01 13:58:58] local.INFO: Created record: {"id":"dd199efb-60d0-45c2-896d-2175eb63f920","type":"Credit","amount":"700.00","rate":"128.300000","lcy_amount":"700.000000","narrative":"Gain on TR-3618-2026","uniqid":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"38f53cf8-ff82-4dc9-8b99-30e3acf23a5e","customer_id":"b438ef2f-0c44-4d01-9d27-19701320ff00","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T10:58:58.000000Z","created_at":"2026-08-01T10:58:58.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-120459.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":127771.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T10:29:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 13:59:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:59:00] local.INFO: Model: Journal  
[2026-08-01 13:59:00] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:59:00] local.INFO: ID present? YES  
[2026-08-01 13:59:00] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:00] local.INFO: ID empty? NO  
[2026-08-01 13:59:00] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:00] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:59:00, 2026-08-01 13:59:00))  
[2026-08-01 13:59:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:59:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:59:06] local.INFO: Model: Journal  
[2026-08-01 13:59:06] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:59:06] local.INFO: ID present? YES  
[2026-08-01 13:59:06] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:06] local.INFO: ID empty? NO  
[2026-08-01 13:59:06] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:06] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:59:06, 2026-08-01 13:59:06))  
[2026-08-01 13:59:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:59:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:59:12] local.INFO: Model: Journal  
[2026-08-01 13:59:12] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:59:12] local.INFO: ID present? YES  
[2026-08-01 13:59:12] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:12] local.INFO: ID empty? NO  
[2026-08-01 13:59:12] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:12] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:59:12, 2026-08-01 13:59:12))  
[2026-08-01 13:59:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 13:59:19] local.INFO: === SYNC DEBUG ===  
[2026-08-01 13:59:19] local.INFO: Model: Journal  
[2026-08-01 13:59:19] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 13:59:19] local.INFO: ID present? YES  
[2026-08-01 13:59:19] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:19] local.INFO: ID empty? NO  
[2026-08-01 13:59:19] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:19] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 13:59:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 13:59:19, 2026-08-01 13:59:19))  
[2026-08-01 13:59:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:23:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:23:56] local.INFO: Model: Customer  
[2026-08-01 15:23:56] local.INFO: Data received: {"id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","first_name":"JAPHETH","last_name":"MUTUA","sur_name":null,"phone":"758766097","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"11203879","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-01 15:23:12","updated_at":"2026-08-01 15:23:12"} 
[2026-08-01 15:23:56] local.INFO: ID present? YES  
[2026-08-01 15:23:56] local.INFO: ID value: b1ae9977-00dd-4ab6-95e4-04521458f8b1  
[2026-08-01 15:23:56] local.INFO: ID empty? NO  
[2026-08-01 15:23:56] local.INFO: Attempting to find record with ID: b1ae9977-00dd-4ab6-95e4-04521458f8b1  
[2026-08-01 15:23:56] local.INFO: Record not found, creating new with ID: b1ae9977-00dd-4ab6-95e4-04521458f8b1  
[2026-08-01 15:23:56] local.INFO: Created record: {"id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","first_name":"JAPHETH","last_name":"MUTUA","sur_name":null,"phone":"758766097","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"11203879","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-01T12:23:56.000000Z","created_at":"2026-08-01T12:23:56.000000Z"} 
[2026-08-01 15:23:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:23:57] local.INFO: Model: Transaction  
[2026-08-01 15:23:57] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:23:57] local.INFO: ID present? YES  
[2026-08-01 15:23:57] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:23:57] local.INFO: ID empty? NO  
[2026-08-01 15:23:57] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:23:57] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:23:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:23:57, 2026-08-01 15:23:57))  
[2026-08-01 15:23:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:03] local.INFO: Model: Transaction  
[2026-08-01 15:24:03] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:24:03] local.INFO: ID present? YES  
[2026-08-01 15:24:03] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:03] local.INFO: ID empty? NO  
[2026-08-01 15:24:03] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:03] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:24:03, 2026-08-01 15:24:03))  
[2026-08-01 15:24:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:10] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:10] local.INFO: Model: Transaction  
[2026-08-01 15:24:10] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:24:10] local.INFO: ID present? YES  
[2026-08-01 15:24:10] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:10] local.INFO: ID empty? NO  
[2026-08-01 15:24:10] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:10] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:24:10, 2026-08-01 15:24:10))  
[2026-08-01 15:24:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:16] local.INFO: Model: Transaction  
[2026-08-01 15:24:16] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:24:16] local.INFO: ID present? YES  
[2026-08-01 15:24:16] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:16] local.INFO: ID empty? NO  
[2026-08-01 15:24:16] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:16] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:24:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:24:16, 2026-08-01 15:24:16))  
[2026-08-01 15:24:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:17] local.INFO: Model: Transaction  
[2026-08-01 15:24:17] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:24:17] local.INFO: ID present? YES  
[2026-08-01 15:24:17] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:17] local.INFO: ID empty? NO  
[2026-08-01 15:24:17] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:17] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:24:17, 2026-08-01 15:24:17))  
[2026-08-01 15:24:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:23] local.INFO: Model: Transaction  
[2026-08-01 15:24:23] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:24:23] local.INFO: ID present? YES  
[2026-08-01 15:24:23] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:23] local.INFO: ID empty? NO  
[2026-08-01 15:24:23] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:23] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:24:23, 2026-08-01 15:24:23))  
[2026-08-01 15:24:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:30] local.INFO: Model: Transaction  
[2026-08-01 15:24:30] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:24:30] local.INFO: ID present? YES  
[2026-08-01 15:24:30] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:30] local.INFO: ID empty? NO  
[2026-08-01 15:24:30] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:30] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:24:30, 2026-08-01 15:24:30))  
[2026-08-01 15:24:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:36] local.INFO: Model: Transaction  
[2026-08-01 15:24:36] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:24:36] local.INFO: ID present? YES  
[2026-08-01 15:24:36] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:36] local.INFO: ID empty? NO  
[2026-08-01 15:24:36] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:36] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:24:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:24:36, 2026-08-01 15:24:36))  
[2026-08-01 15:24:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:37] local.INFO: Model: Transaction  
[2026-08-01 15:24:37] local.INFO: Data received: {"id":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3620-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 15:23:48","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"80edf27e-d431-4d4f-82c2-91b0a2dd6661","cancellation_reason":null,"customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-01 15:23:46","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:24:37] local.INFO: ID present? YES  
[2026-08-01 15:24:37] local.INFO: ID value: a751223e-f803-4831-8016-b3df013eec14  
[2026-08-01 15:24:37] local.INFO: ID empty? NO  
[2026-08-01 15:24:37] local.INFO: Attempting to find record with ID: a751223e-f803-4831-8016-b3df013eec14  
[2026-08-01 15:24:37] local.INFO: Record not found, creating new with ID: a751223e-f803-4831-8016-b3df013eec14  
[2026-08-01 15:24:37] local.INFO: Created record: {"id":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","type":"Buying","amount":25,"rate":145,"negotiated_rate":"0","amount_paid":3625,"amount_received":25,"narrative":null,"transaction_number":"TR-3620-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 15:23:48","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"80edf27e-d431-4d4f-82c2-91b0a2dd6661","cancellation_reason":null,"customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-01T12:24:37.000000Z","created_at":"2026-08-01T12:24:37.000000Z"} 
[2026-08-01 15:24:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:38] local.INFO: Model: Transaction  
[2026-08-01 15:24:38] local.INFO: Data received: {"id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","type":"Buying","amount":40,"rate":125,"negotiated_rate":"0","amount_paid":5000,"amount_received":40,"narrative":null,"transaction_number":"TR-3619-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 15:23:48","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"80edf27e-d431-4d4f-82c2-91b0a2dd6661","cancellation_reason":null,"customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 15:23:46","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:24:38] local.INFO: ID present? YES  
[2026-08-01 15:24:38] local.INFO: ID value: e40d7ece-36ea-4181-8823-1c0ad0ec9f17  
[2026-08-01 15:24:38] local.INFO: ID empty? NO  
[2026-08-01 15:24:38] local.INFO: Attempting to find record with ID: e40d7ece-36ea-4181-8823-1c0ad0ec9f17  
[2026-08-01 15:24:38] local.INFO: Record not found, creating new with ID: e40d7ece-36ea-4181-8823-1c0ad0ec9f17  
[2026-08-01 15:24:38] local.INFO: Created record: {"id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","type":"Buying","amount":40,"rate":125,"negotiated_rate":"0","amount_paid":5000,"amount_received":40,"narrative":null,"transaction_number":"TR-3619-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 15:23:48","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"80edf27e-d431-4d4f-82c2-91b0a2dd6661","cancellation_reason":null,"customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T12:24:38.000000Z","created_at":"2026-08-01T12:24:38.000000Z"} 
[2026-08-01 15:24:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:40] local.INFO: Model: Journal  
[2026-08-01 15:24:40] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:24:40] local.INFO: ID present? YES  
[2026-08-01 15:24:40] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:40] local.INFO: ID empty? NO  
[2026-08-01 15:24:40] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:40] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:24:40, 2026-08-01 15:24:40))  
[2026-08-01 15:24:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:46] local.INFO: Model: Journal  
[2026-08-01 15:24:46] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:24:46] local.INFO: ID present? YES  
[2026-08-01 15:24:46] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:46] local.INFO: ID empty? NO  
[2026-08-01 15:24:46] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:46] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:24:46, 2026-08-01 15:24:46))  
[2026-08-01 15:24:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:52] local.INFO: Model: Journal  
[2026-08-01 15:24:52] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:24:52] local.INFO: ID present? YES  
[2026-08-01 15:24:52] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:52] local.INFO: ID empty? NO  
[2026-08-01 15:24:52] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:52] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:24:52, 2026-08-01 15:24:52))  
[2026-08-01 15:24:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:24:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:24:59] local.INFO: Model: Journal  
[2026-08-01 15:24:59] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:24:59] local.INFO: ID present? YES  
[2026-08-01 15:24:59] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:59] local.INFO: ID empty? NO  
[2026-08-01 15:24:59] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:59] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:24:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:24:59, 2026-08-01 15:24:59))  
[2026-08-01 15:24:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:00] local.INFO: Model: Journal  
[2026-08-01 15:25:00] local.INFO: Data received: {"id":"549eb55b-8475-45a3-94c0-807bb43dcee6","type":"Debit","amount":"40.00","rate":"125.000000","lcy_amount":"5160.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 15:23:48","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:25:00] local.INFO: ID present? YES  
[2026-08-01 15:25:00] local.INFO: ID value: 549eb55b-8475-45a3-94c0-807bb43dcee6  
[2026-08-01 15:25:00] local.INFO: ID empty? NO  
[2026-08-01 15:25:00] local.INFO: Attempting to find record with ID: 549eb55b-8475-45a3-94c0-807bb43dcee6  
[2026-08-01 15:25:00] local.INFO: Record not found, creating new with ID: 549eb55b-8475-45a3-94c0-807bb43dcee6  
[2026-08-01 15:25:00] local.INFO: Created record: {"id":"549eb55b-8475-45a3-94c0-807bb43dcee6","type":"Debit","amount":"40.00","rate":"125.000000","lcy_amount":"5160.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T12:25:00.000000Z","created_at":"2026-08-01T12:25:00.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":2600.0,"debit_total":80049.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T10:57:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 15:25:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:01] local.INFO: Model: Journal  
[2026-08-01 15:25:01] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:25:01] local.INFO: ID present? YES  
[2026-08-01 15:25:01] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:01] local.INFO: ID empty? NO  
[2026-08-01 15:25:01] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:01] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:25:01, 2026-08-01 15:25:01))  
[2026-08-01 15:25:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:08] local.INFO: Model: Journal  
[2026-08-01 15:25:08] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:25:08] local.INFO: ID present? YES  
[2026-08-01 15:25:08] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:08] local.INFO: ID empty? NO  
[2026-08-01 15:25:08] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:08] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:25:08, 2026-08-01 15:25:08))  
[2026-08-01 15:25:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:14] local.INFO: Model: Journal  
[2026-08-01 15:25:14] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:25:14] local.INFO: ID present? YES  
[2026-08-01 15:25:14] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:14] local.INFO: ID empty? NO  
[2026-08-01 15:25:14] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:14] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:25:14, 2026-08-01 15:25:14))  
[2026-08-01 15:25:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:20] local.INFO: Model: Journal  
[2026-08-01 15:25:20] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:25:20] local.INFO: ID present? YES  
[2026-08-01 15:25:20] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:20] local.INFO: ID empty? NO  
[2026-08-01 15:25:20] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:20] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:25:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:25:20, 2026-08-01 15:25:20))  
[2026-08-01 15:25:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:21] local.INFO: Model: Journal  
[2026-08-01 15:25:21] local.INFO: Data received: {"id":"835af6f2-de80-445d-b35b-4273aaf136f9","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"a751223e-f803-4831-8016-b3df013eec14","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 15:23:48","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:25:21] local.INFO: ID present? YES  
[2026-08-01 15:25:21] local.INFO: ID value: 835af6f2-de80-445d-b35b-4273aaf136f9  
[2026-08-01 15:25:21] local.INFO: ID empty? NO  
[2026-08-01 15:25:21] local.INFO: Attempting to find record with ID: 835af6f2-de80-445d-b35b-4273aaf136f9  
[2026-08-01 15:25:21] local.INFO: Record not found, creating new with ID: 835af6f2-de80-445d-b35b-4273aaf136f9  
[2026-08-01 15:25:21] local.INFO: Created record: {"id":"835af6f2-de80-445d-b35b-4273aaf136f9","type":"Credit","amount":"3625.00","rate":"145.000000","lcy_amount":"3625.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"a751223e-f803-4831-8016-b3df013eec14","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T12:25:21.000000Z","created_at":"2026-08-01T12:25:21.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-61922.0,"debit_total":"21749595.10","credit_total":21811517.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T10:57:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 15:25:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:23] local.INFO: Model: Journal  
[2026-08-01 15:25:23] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:25:23] local.INFO: ID present? YES  
[2026-08-01 15:25:23] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:23] local.INFO: ID empty? NO  
[2026-08-01 15:25:23] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:23] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:25:23, 2026-08-01 15:25:23))  
[2026-08-01 15:25:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:29] local.INFO: Model: Journal  
[2026-08-01 15:25:29] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:25:29] local.INFO: ID present? YES  
[2026-08-01 15:25:29] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:29] local.INFO: ID empty? NO  
[2026-08-01 15:25:29] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:29] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:25:29, 2026-08-01 15:25:29))  
[2026-08-01 15:25:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:35] local.INFO: Model: Journal  
[2026-08-01 15:25:35] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:25:35] local.INFO: ID present? YES  
[2026-08-01 15:25:35] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:35] local.INFO: ID empty? NO  
[2026-08-01 15:25:35] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:35] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:25:35, 2026-08-01 15:25:35))  
[2026-08-01 15:25:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:41] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:41] local.INFO: Model: Journal  
[2026-08-01 15:25:41] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:25:41] local.INFO: ID present? YES  
[2026-08-01 15:25:41] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:41] local.INFO: ID empty? NO  
[2026-08-01 15:25:41] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:41] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:25:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:25:41, 2026-08-01 15:25:41))  
[2026-08-01 15:25:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:43] local.INFO: Model: Journal  
[2026-08-01 15:25:43] local.INFO: Data received: {"id":"8fab5534-cb7d-4abf-939b-0d2ad21857bb","type":"Credit","amount":"160.00","rate":"125.000000","lcy_amount":"160.000000","narrative":"Gain on TR-3619-2026","uniqid":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 15:23:48","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:25:43] local.INFO: ID present? YES  
[2026-08-01 15:25:43] local.INFO: ID value: 8fab5534-cb7d-4abf-939b-0d2ad21857bb  
[2026-08-01 15:25:43] local.INFO: ID empty? NO  
[2026-08-01 15:25:43] local.INFO: Attempting to find record with ID: 8fab5534-cb7d-4abf-939b-0d2ad21857bb  
[2026-08-01 15:25:43] local.INFO: Record not found, creating new with ID: 8fab5534-cb7d-4abf-939b-0d2ad21857bb  
[2026-08-01 15:25:43] local.INFO: Created record: {"id":"8fab5534-cb7d-4abf-939b-0d2ad21857bb","type":"Credit","amount":"160.00","rate":"125.000000","lcy_amount":"160.000000","narrative":"Gain on TR-3619-2026","uniqid":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T12:25:43.000000Z","created_at":"2026-08-01T12:25:43.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-120619.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":127931.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T10:58:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 15:25:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:44] local.INFO: Model: Journal  
[2026-08-01 15:25:44] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:25:44] local.INFO: ID present? YES  
[2026-08-01 15:25:44] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:44] local.INFO: ID empty? NO  
[2026-08-01 15:25:44] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:44] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:25:44, 2026-08-01 15:25:44))  
[2026-08-01 15:25:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:50] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:50] local.INFO: Model: Journal  
[2026-08-01 15:25:50] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:25:50] local.INFO: ID present? YES  
[2026-08-01 15:25:50] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:50] local.INFO: ID empty? NO  
[2026-08-01 15:25:50] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:50] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:25:50, 2026-08-01 15:25:50))  
[2026-08-01 15:25:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:25:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:25:56] local.INFO: Model: Journal  
[2026-08-01 15:25:56] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:25:56] local.INFO: ID present? YES  
[2026-08-01 15:25:56] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:56] local.INFO: ID empty? NO  
[2026-08-01 15:25:56] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:56] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:25:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:25:56, 2026-08-01 15:25:56))  
[2026-08-01 15:25:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:03] local.INFO: Model: Journal  
[2026-08-01 15:26:03] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:26:03] local.INFO: ID present? YES  
[2026-08-01 15:26:03] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:26:03] local.INFO: ID empty? NO  
[2026-08-01 15:26:03] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:26:03] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:26:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:26:03, 2026-08-01 15:26:03))  
[2026-08-01 15:26:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:04] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:04] local.INFO: Model: Journal  
[2026-08-01 15:26:04] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:04] local.INFO: ID present? YES  
[2026-08-01 15:26:04] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:04] local.INFO: ID empty? NO  
[2026-08-01 15:26:04] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:04] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:04, 2026-08-01 15:26:04))  
[2026-08-01 15:26:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:10] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:10] local.INFO: Model: Journal  
[2026-08-01 15:26:10] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:10] local.INFO: ID present? YES  
[2026-08-01 15:26:10] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:10] local.INFO: ID empty? NO  
[2026-08-01 15:26:10] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:10] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:10, 2026-08-01 15:26:10))  
[2026-08-01 15:26:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:16] local.INFO: Model: Journal  
[2026-08-01 15:26:16] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:16] local.INFO: ID present? YES  
[2026-08-01 15:26:16] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:16] local.INFO: ID empty? NO  
[2026-08-01 15:26:16] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:16] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:16, 2026-08-01 15:26:16))  
[2026-08-01 15:26:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:23] local.INFO: Model: Journal  
[2026-08-01 15:26:23] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:23] local.INFO: ID present? YES  
[2026-08-01 15:26:23] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:23] local.INFO: ID empty? NO  
[2026-08-01 15:26:23] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:23] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:26:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:23, 2026-08-01 15:26:23))  
[2026-08-01 15:26:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:24] local.INFO: Model: Journal  
[2026-08-01 15:26:24] local.INFO: Data received: {"id":"bc74cce4-4ebb-4d67-bcf8-d86a7fca597f","type":"Credit","amount":"5000.00","rate":"125.000000","lcy_amount":"5000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 15:23:48","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:26:24] local.INFO: ID present? YES  
[2026-08-01 15:26:24] local.INFO: ID value: bc74cce4-4ebb-4d67-bcf8-d86a7fca597f  
[2026-08-01 15:26:24] local.INFO: ID empty? NO  
[2026-08-01 15:26:24] local.INFO: Attempting to find record with ID: bc74cce4-4ebb-4d67-bcf8-d86a7fca597f  
[2026-08-01 15:26:24] local.INFO: Record not found, creating new with ID: bc74cce4-4ebb-4d67-bcf8-d86a7fca597f  
[2026-08-01 15:26:24] local.INFO: Created record: {"id":"bc74cce4-4ebb-4d67-bcf8-d86a7fca597f","type":"Credit","amount":"5000.00","rate":"125.000000","lcy_amount":"5000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"e40d7ece-36ea-4181-8823-1c0ad0ec9f17","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T12:26:24.000000Z","created_at":"2026-08-01T12:26:24.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-66922.0,"debit_total":"21749595.10","credit_total":21816517.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T12:25:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 15:26:25] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:25] local.INFO: Model: Journal  
[2026-08-01 15:26:25] local.INFO: Data received: {"id":"d2196f58-75de-4271-9358-38bd772ba868","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"a751223e-f803-4831-8016-b3df013eec14","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-01 15:23:48","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:26:25] local.INFO: ID present? YES  
[2026-08-01 15:26:25] local.INFO: ID value: d2196f58-75de-4271-9358-38bd772ba868  
[2026-08-01 15:26:25] local.INFO: ID empty? NO  
[2026-08-01 15:26:25] local.INFO: Attempting to find record with ID: d2196f58-75de-4271-9358-38bd772ba868  
[2026-08-01 15:26:25] local.INFO: Record not found, creating new with ID: d2196f58-75de-4271-9358-38bd772ba868  
[2026-08-01 15:26:25] local.INFO: Created record: {"id":"d2196f58-75de-4271-9358-38bd772ba868","type":"Debit","amount":"25.00","rate":"145.000000","lcy_amount":"3780.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"a751223e-f803-4831-8016-b3df013eec14","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-01T12:26:25.000000Z","created_at":"2026-08-01T12:26:25.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":65.0,"debit_total":22855.0,"credit_total":"22790.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T08:25:15.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 15:26:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:26] local.INFO: Model: Journal  
[2026-08-01 15:26:26] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:26] local.INFO: ID present? YES  
[2026-08-01 15:26:26] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:26] local.INFO: ID empty? NO  
[2026-08-01 15:26:26] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:26] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:26, 2026-08-01 15:26:26))  
[2026-08-01 15:26:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:33] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:33] local.INFO: Model: Journal  
[2026-08-01 15:26:33] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:33] local.INFO: ID present? YES  
[2026-08-01 15:26:33] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:33] local.INFO: ID empty? NO  
[2026-08-01 15:26:33] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:33] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:33, 2026-08-01 15:26:33))  
[2026-08-01 15:26:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:39] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:39] local.INFO: Model: Journal  
[2026-08-01 15:26:39] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:39] local.INFO: ID present? YES  
[2026-08-01 15:26:39] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:39] local.INFO: ID empty? NO  
[2026-08-01 15:26:39] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:39] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:39, 2026-08-01 15:26:39))  
[2026-08-01 15:26:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:45] local.INFO: Model: Journal  
[2026-08-01 15:26:45] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:26:45] local.INFO: ID present? YES  
[2026-08-01 15:26:45] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:45] local.INFO: ID empty? NO  
[2026-08-01 15:26:45] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:45] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:26:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:26:45, 2026-08-01 15:26:45))  
[2026-08-01 15:26:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:26:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:26:46] local.INFO: Model: Journal  
[2026-08-01 15:26:46] local.INFO: Data received: {"id":"f3721859-0856-45fb-b81a-2ad4b9681841","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3620-2026","uniqid":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"a751223e-f803-4831-8016-b3df013eec14","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 15:23:48","updated_at":"2026-08-01 15:23:48"} 
[2026-08-01 15:26:46] local.INFO: ID present? YES  
[2026-08-01 15:26:46] local.INFO: ID value: f3721859-0856-45fb-b81a-2ad4b9681841  
[2026-08-01 15:26:46] local.INFO: ID empty? NO  
[2026-08-01 15:26:46] local.INFO: Attempting to find record with ID: f3721859-0856-45fb-b81a-2ad4b9681841  
[2026-08-01 15:26:46] local.INFO: Record not found, creating new with ID: f3721859-0856-45fb-b81a-2ad4b9681841  
[2026-08-01 15:26:46] local.INFO: Created record: {"id":"f3721859-0856-45fb-b81a-2ad4b9681841","type":"Credit","amount":"155.00","rate":"145.000000","lcy_amount":"155.000000","narrative":"Gain on TR-3620-2026","uniqid":"a751223e-f803-4831-8016-b3df013eec14","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"a751223e-f803-4831-8016-b3df013eec14","customer_id":"b1ae9977-00dd-4ab6-95e4-04521458f8b1","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T12:26:46.000000Z","created_at":"2026-08-01T12:26:46.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-120774.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":128086.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T12:25:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 15:55:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:55:45] local.INFO: Model: Customer  
[2026-08-01 15:55:45] local.INFO: Data received: {"id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","first_name":"JAMES","last_name":"GICHURU","sur_name":null,"phone":"723557774","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"10160574","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-01 15:55:20","updated_at":"2026-08-01 15:55:20"} 
[2026-08-01 15:55:45] local.INFO: ID present? YES  
[2026-08-01 15:55:45] local.INFO: ID value: 504ebdf9-6ffb-48fc-a7db-4628bd37c1d2  
[2026-08-01 15:55:45] local.INFO: ID empty? NO  
[2026-08-01 15:55:45] local.INFO: Attempting to find record with ID: 504ebdf9-6ffb-48fc-a7db-4628bd37c1d2  
[2026-08-01 15:55:45] local.INFO: Record not found, creating new with ID: 504ebdf9-6ffb-48fc-a7db-4628bd37c1d2  
[2026-08-01 15:55:45] local.INFO: Created record: {"id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","first_name":"JAMES","last_name":"GICHURU","sur_name":null,"phone":"723557774","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"10160574","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-01T12:55:45.000000Z","created_at":"2026-08-01T12:55:45.000000Z"} 
[2026-08-01 15:55:47] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:55:47] local.INFO: Model: Transaction  
[2026-08-01 15:55:47] local.INFO: Data received: {"id":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3621-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 15:55:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8fa60f32-5e4f-48e8-8efe-158e56a385f9","cancellation_reason":null,"customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-01 15:55:32","updated_at":"2026-08-01 15:55:36"} 
[2026-08-01 15:55:47] local.INFO: ID present? YES  
[2026-08-01 15:55:47] local.INFO: ID value: 22ff480f-e350-480c-924f-476328175b7e  
[2026-08-01 15:55:47] local.INFO: ID empty? NO  
[2026-08-01 15:55:47] local.INFO: Attempting to find record with ID: 22ff480f-e350-480c-924f-476328175b7e  
[2026-08-01 15:55:47] local.INFO: Record not found, creating new with ID: 22ff480f-e350-480c-924f-476328175b7e  
[2026-08-01 15:55:47] local.INFO: Created record: {"id":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","type":"Buying","amount":50,"rate":145,"negotiated_rate":"0","amount_paid":7250,"amount_received":50,"narrative":null,"transaction_number":"TR-3621-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 15:55:36","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"8fa60f32-5e4f-48e8-8efe-158e56a385f9","cancellation_reason":null,"customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-01T12:55:47.000000Z","created_at":"2026-08-01T12:55:47.000000Z"} 
[2026-08-01 15:55:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:55:48] local.INFO: Model: Transaction  
[2026-08-01 15:55:48] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:55:48] local.INFO: ID present? YES  
[2026-08-01 15:55:48] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:55:48] local.INFO: ID empty? NO  
[2026-08-01 15:55:48] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:55:48] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:55:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:55:48, 2026-08-01 15:55:48))  
[2026-08-01 15:55:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:55:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:55:54] local.INFO: Model: Transaction  
[2026-08-01 15:55:54] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:55:54] local.INFO: ID present? YES  
[2026-08-01 15:55:54] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:55:54] local.INFO: ID empty? NO  
[2026-08-01 15:55:54] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:55:54] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:55:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:55:54, 2026-08-01 15:55:54))  
[2026-08-01 15:55:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:01] local.INFO: Model: Transaction  
[2026-08-01 15:56:01] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:01] local.INFO: ID present? YES  
[2026-08-01 15:56:01] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:56:01] local.INFO: ID empty? NO  
[2026-08-01 15:56:01] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:56:01] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:56:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:56:01, 2026-08-01 15:56:01))  
[2026-08-01 15:56:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:07] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:07] local.INFO: Model: Transaction  
[2026-08-01 15:56:07] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:07] local.INFO: ID present? YES  
[2026-08-01 15:56:07] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:56:07] local.INFO: ID empty? NO  
[2026-08-01 15:56:07] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:56:07] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 15:56:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 15:56:07, 2026-08-01 15:56:07))  
[2026-08-01 15:56:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:08] local.INFO: Model: Transaction  
[2026-08-01 15:56:08] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:56:08] local.INFO: ID present? YES  
[2026-08-01 15:56:08] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:08] local.INFO: ID empty? NO  
[2026-08-01 15:56:08] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:08] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:56:08, 2026-08-01 15:56:08))  
[2026-08-01 15:56:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:14] local.INFO: Model: Transaction  
[2026-08-01 15:56:14] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:56:14] local.INFO: ID present? YES  
[2026-08-01 15:56:14] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:14] local.INFO: ID empty? NO  
[2026-08-01 15:56:14] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:14] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:56:14, 2026-08-01 15:56:14))  
[2026-08-01 15:56:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:21] local.INFO: Model: Transaction  
[2026-08-01 15:56:21] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:56:21] local.INFO: ID present? YES  
[2026-08-01 15:56:21] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:21] local.INFO: ID empty? NO  
[2026-08-01 15:56:21] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:21] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:56:21, 2026-08-01 15:56:21))  
[2026-08-01 15:56:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:27] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:27] local.INFO: Model: Transaction  
[2026-08-01 15:56:27] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:56:27] local.INFO: ID present? YES  
[2026-08-01 15:56:27] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:27] local.INFO: ID empty? NO  
[2026-08-01 15:56:27] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:27] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 15:56:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 15:56:27, 2026-08-01 15:56:27))  
[2026-08-01 15:56:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:28] local.INFO: Model: Journal  
[2026-08-01 15:56:28] local.INFO: Data received: {"id":"1af37506-0b51-4b6d-8ff1-8d74d39a40fb","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"22ff480f-e350-480c-924f-476328175b7e","customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 15:55:36","updated_at":"2026-08-01 15:55:36"} 
[2026-08-01 15:56:28] local.INFO: ID present? YES  
[2026-08-01 15:56:28] local.INFO: ID value: 1af37506-0b51-4b6d-8ff1-8d74d39a40fb  
[2026-08-01 15:56:28] local.INFO: ID empty? NO  
[2026-08-01 15:56:28] local.INFO: Attempting to find record with ID: 1af37506-0b51-4b6d-8ff1-8d74d39a40fb  
[2026-08-01 15:56:28] local.INFO: Record not found, creating new with ID: 1af37506-0b51-4b6d-8ff1-8d74d39a40fb  
[2026-08-01 15:56:28] local.INFO: Created record: {"id":"1af37506-0b51-4b6d-8ff1-8d74d39a40fb","type":"Credit","amount":"7250.00","rate":"145.000000","lcy_amount":"7250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"22ff480f-e350-480c-924f-476328175b7e","customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T12:56:28.000000Z","created_at":"2026-08-01T12:56:28.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-74172.0,"debit_total":"21749595.10","credit_total":21823767.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T12:26:24.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 15:56:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:29] local.INFO: Model: Journal  
[2026-08-01 15:56:29] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:29] local.INFO: ID present? YES  
[2026-08-01 15:56:29] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:29] local.INFO: ID empty? NO  
[2026-08-01 15:56:29] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:29] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:56:29, 2026-08-01 15:56:29))  
[2026-08-01 15:56:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:36] local.INFO: Model: Journal  
[2026-08-01 15:56:36] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:36] local.INFO: ID present? YES  
[2026-08-01 15:56:36] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:36] local.INFO: ID empty? NO  
[2026-08-01 15:56:36] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:36] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:56:36, 2026-08-01 15:56:36))  
[2026-08-01 15:56:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:42] local.INFO: Model: Journal  
[2026-08-01 15:56:42] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:42] local.INFO: ID present? YES  
[2026-08-01 15:56:42] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:42] local.INFO: ID empty? NO  
[2026-08-01 15:56:42] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:42] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:56:42, 2026-08-01 15:56:42))  
[2026-08-01 15:56:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:48] local.INFO: Model: Journal  
[2026-08-01 15:56:48] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:48] local.INFO: ID present? YES  
[2026-08-01 15:56:48] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:48] local.INFO: ID empty? NO  
[2026-08-01 15:56:48] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:48] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 15:56:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:56:48, 2026-08-01 15:56:48))  
[2026-08-01 15:56:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:49] local.INFO: Model: Journal  
[2026-08-01 15:56:49] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:49] local.INFO: ID present? YES  
[2026-08-01 15:56:49] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:56:49] local.INFO: ID empty? NO  
[2026-08-01 15:56:49] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:56:49] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:56:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:56:49, 2026-08-01 15:56:49))  
[2026-08-01 15:56:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:56:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:56:56] local.INFO: Model: Journal  
[2026-08-01 15:56:56] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:56:56] local.INFO: ID present? YES  
[2026-08-01 15:56:56] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:56:56] local.INFO: ID empty? NO  
[2026-08-01 15:56:56] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:56:56] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:56:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:56:56, 2026-08-01 15:56:56))  
[2026-08-01 15:56:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:02] local.INFO: Model: Journal  
[2026-08-01 15:57:02] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:57:02] local.INFO: ID present? YES  
[2026-08-01 15:57:02] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:57:02] local.INFO: ID empty? NO  
[2026-08-01 15:57:02] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:57:02] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:57:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:57:02, 2026-08-01 15:57:02))  
[2026-08-01 15:57:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:08] local.INFO: Model: Journal  
[2026-08-01 15:57:08] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:57:08] local.INFO: ID present? YES  
[2026-08-01 15:57:08] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:57:08] local.INFO: ID empty? NO  
[2026-08-01 15:57:08] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:57:08] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 15:57:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:57:08, 2026-08-01 15:57:08))  
[2026-08-01 15:57:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:09] local.INFO: Model: Journal  
[2026-08-01 15:57:09] local.INFO: Data received: {"id":"6c83f486-bca8-488e-ad29-f585fcf49c0e","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"22ff480f-e350-480c-924f-476328175b7e","customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-01 15:55:36","updated_at":"2026-08-01 15:55:36"} 
[2026-08-01 15:57:09] local.INFO: ID present? YES  
[2026-08-01 15:57:09] local.INFO: ID value: 6c83f486-bca8-488e-ad29-f585fcf49c0e  
[2026-08-01 15:57:09] local.INFO: ID empty? NO  
[2026-08-01 15:57:09] local.INFO: Attempting to find record with ID: 6c83f486-bca8-488e-ad29-f585fcf49c0e  
[2026-08-01 15:57:09] local.INFO: Record not found, creating new with ID: 6c83f486-bca8-488e-ad29-f585fcf49c0e  
[2026-08-01 15:57:09] local.INFO: Created record: {"id":"6c83f486-bca8-488e-ad29-f585fcf49c0e","type":"Debit","amount":"50.00","rate":"145.000000","lcy_amount":"7560.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"22ff480f-e350-480c-924f-476328175b7e","customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-01T12:57:09.000000Z","created_at":"2026-08-01T12:57:09.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":115.0,"debit_total":22905.0,"credit_total":"22790.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T12:26:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 15:57:11] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:11] local.INFO: Model: Journal  
[2026-08-01 15:57:11] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:57:11] local.INFO: ID present? YES  
[2026-08-01 15:57:11] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:11] local.INFO: ID empty? NO  
[2026-08-01 15:57:11] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:11] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:57:11, 2026-08-01 15:57:11))  
[2026-08-01 15:57:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:17] local.INFO: Model: Journal  
[2026-08-01 15:57:17] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:57:17] local.INFO: ID present? YES  
[2026-08-01 15:57:17] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:17] local.INFO: ID empty? NO  
[2026-08-01 15:57:17] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:17] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:57:17, 2026-08-01 15:57:17))  
[2026-08-01 15:57:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:23] local.INFO: Model: Journal  
[2026-08-01 15:57:23] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:57:23] local.INFO: ID present? YES  
[2026-08-01 15:57:23] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:23] local.INFO: ID empty? NO  
[2026-08-01 15:57:23] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:23] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:57:23, 2026-08-01 15:57:23))  
[2026-08-01 15:57:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:29] local.INFO: Model: Journal  
[2026-08-01 15:57:29] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:57:29] local.INFO: ID present? YES  
[2026-08-01 15:57:29] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:29] local.INFO: ID empty? NO  
[2026-08-01 15:57:29] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:29] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 15:57:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 15:57:29, 2026-08-01 15:57:29))  
[2026-08-01 15:57:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:30] local.INFO: Model: Journal  
[2026-08-01 15:57:30] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:57:30] local.INFO: ID present? YES  
[2026-08-01 15:57:30] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:30] local.INFO: ID empty? NO  
[2026-08-01 15:57:30] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:30] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:57:30, 2026-08-01 15:57:30))  
[2026-08-01 15:57:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:37] local.INFO: Model: Journal  
[2026-08-01 15:57:37] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:57:37] local.INFO: ID present? YES  
[2026-08-01 15:57:37] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:37] local.INFO: ID empty? NO  
[2026-08-01 15:57:37] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:37] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:57:37, 2026-08-01 15:57:37))  
[2026-08-01 15:57:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:43] local.INFO: Model: Journal  
[2026-08-01 15:57:43] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:57:43] local.INFO: ID present? YES  
[2026-08-01 15:57:43] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:43] local.INFO: ID empty? NO  
[2026-08-01 15:57:43] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:43] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:57:43, 2026-08-01 15:57:43))  
[2026-08-01 15:57:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:49] local.INFO: Model: Journal  
[2026-08-01 15:57:49] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 15:57:49] local.INFO: ID present? YES  
[2026-08-01 15:57:49] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:49] local.INFO: ID empty? NO  
[2026-08-01 15:57:49] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:49] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 15:57:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 15:57:49, 2026-08-01 15:57:49))  
[2026-08-01 15:57:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:50] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:50] local.INFO: Model: Journal  
[2026-08-01 15:57:50] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:57:50] local.INFO: ID present? YES  
[2026-08-01 15:57:50] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:57:50] local.INFO: ID empty? NO  
[2026-08-01 15:57:50] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:57:50] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:57:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:57:50, 2026-08-01 15:57:50))  
[2026-08-01 15:57:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:57:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:57:57] local.INFO: Model: Journal  
[2026-08-01 15:57:57] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:57:57] local.INFO: ID present? YES  
[2026-08-01 15:57:57] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:57:57] local.INFO: ID empty? NO  
[2026-08-01 15:57:57] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:57:57] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:57:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:57:57, 2026-08-01 15:57:57))  
[2026-08-01 15:57:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:58:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:58:03] local.INFO: Model: Journal  
[2026-08-01 15:58:03] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:58:03] local.INFO: ID present? YES  
[2026-08-01 15:58:03] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:58:03] local.INFO: ID empty? NO  
[2026-08-01 15:58:03] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:58:03] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:58:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:58:03, 2026-08-01 15:58:03))  
[2026-08-01 15:58:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:58:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:58:09] local.INFO: Model: Journal  
[2026-08-01 15:58:09] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:58:09] local.INFO: ID present? YES  
[2026-08-01 15:58:09] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:58:09] local.INFO: ID empty? NO  
[2026-08-01 15:58:09] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:58:09] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 15:58:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:58:09, 2026-08-01 15:58:09))  
[2026-08-01 15:58:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:58:11] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:58:11] local.INFO: Model: Journal  
[2026-08-01 15:58:11] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:58:11] local.INFO: ID present? YES  
[2026-08-01 15:58:11] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:11] local.INFO: ID empty? NO  
[2026-08-01 15:58:11] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:11] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:58:11, 2026-08-01 15:58:11))  
[2026-08-01 15:58:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:58:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:58:17] local.INFO: Model: Journal  
[2026-08-01 15:58:17] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:58:17] local.INFO: ID present? YES  
[2026-08-01 15:58:17] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:17] local.INFO: ID empty? NO  
[2026-08-01 15:58:17] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:17] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:58:17, 2026-08-01 15:58:17))  
[2026-08-01 15:58:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:58:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:58:23] local.INFO: Model: Journal  
[2026-08-01 15:58:23] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:58:23] local.INFO: ID present? YES  
[2026-08-01 15:58:23] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:23] local.INFO: ID empty? NO  
[2026-08-01 15:58:23] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:23] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:58:23, 2026-08-01 15:58:23))  
[2026-08-01 15:58:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:58:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:58:29] local.INFO: Model: Journal  
[2026-08-01 15:58:29] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 15:58:29] local.INFO: ID present? YES  
[2026-08-01 15:58:29] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:29] local.INFO: ID empty? NO  
[2026-08-01 15:58:29] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:29] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 15:58:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 15:58:29, 2026-08-01 15:58:29))  
[2026-08-01 15:58:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 15:58:31] local.INFO: === SYNC DEBUG ===  
[2026-08-01 15:58:31] local.INFO: Model: Journal  
[2026-08-01 15:58:31] local.INFO: Data received: {"id":"ff8903a6-2be2-4830-adc7-3a7ee22ff896","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3621-2026","uniqid":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"22ff480f-e350-480c-924f-476328175b7e","customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 15:55:36","updated_at":"2026-08-01 15:55:36"} 
[2026-08-01 15:58:31] local.INFO: ID present? YES  
[2026-08-01 15:58:31] local.INFO: ID value: ff8903a6-2be2-4830-adc7-3a7ee22ff896  
[2026-08-01 15:58:31] local.INFO: ID empty? NO  
[2026-08-01 15:58:31] local.INFO: Attempting to find record with ID: ff8903a6-2be2-4830-adc7-3a7ee22ff896  
[2026-08-01 15:58:31] local.INFO: Record not found, creating new with ID: ff8903a6-2be2-4830-adc7-3a7ee22ff896  
[2026-08-01 15:58:31] local.INFO: Created record: {"id":"ff8903a6-2be2-4830-adc7-3a7ee22ff896","type":"Credit","amount":"310.00","rate":"145.000000","lcy_amount":"310.000000","narrative":"Gain on TR-3621-2026","uniqid":"22ff480f-e350-480c-924f-476328175b7e","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"22ff480f-e350-480c-924f-476328175b7e","customer_id":"504ebdf9-6ffb-48fc-a7db-4628bd37c1d2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T12:58:31.000000Z","created_at":"2026-08-01T12:58:31.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-121084.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":128396.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T12:26:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 17:00:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:09] local.INFO: Model: Customer  
[2026-08-01 17:00:09] local.INFO: Data received: {"id":"98fafb45-ad4c-4462-843c-ef761b13670d","first_name":"NURIA","last_name":"SAORNIL","sur_name":null,"phone":"124524522","calling_code":"+36","email":null,"residence":"undefined","id_type":"Passport","id_number":"PAH050401","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-01 16:59:45","updated_at":"2026-08-01 16:59:45"} 
[2026-08-01 17:00:09] local.INFO: ID present? YES  
[2026-08-01 17:00:09] local.INFO: ID value: 98fafb45-ad4c-4462-843c-ef761b13670d  
[2026-08-01 17:00:09] local.INFO: ID empty? NO  
[2026-08-01 17:00:09] local.INFO: Attempting to find record with ID: 98fafb45-ad4c-4462-843c-ef761b13670d  
[2026-08-01 17:00:09] local.INFO: Record not found, creating new with ID: 98fafb45-ad4c-4462-843c-ef761b13670d  
[2026-08-01 17:00:09] local.INFO: Created record: {"id":"98fafb45-ad4c-4462-843c-ef761b13670d","first_name":"NURIA","last_name":"SAORNIL","sur_name":null,"phone":"124524522","calling_code":"+36","email":null,"residence":"undefined","id_type":"Passport","id_number":"PAH050401","nationality":"European","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-01T14:00:09.000000Z","created_at":"2026-08-01T14:00:09.000000Z"} 
[2026-08-01 17:00:10] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:10] local.INFO: Model: Transaction  
[2026-08-01 17:00:10] local.INFO: Data received: {"id":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","type":"Buying","amount":1000,"rate":145,"negotiated_rate":"0","amount_paid":145000,"amount_received":1000,"narrative":null,"transaction_number":"TR-3623-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:00:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"92d76e5a-87df-46d7-a214-26fd425ffaaf","cancellation_reason":null,"customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-01 16:59:58","updated_at":"2026-08-01 17:00:00"} 
[2026-08-01 17:00:10] local.INFO: ID present? YES  
[2026-08-01 17:00:10] local.INFO: ID value: 37254309-f8dd-4819-b552-5a89d298791f  
[2026-08-01 17:00:10] local.INFO: ID empty? NO  
[2026-08-01 17:00:10] local.INFO: Attempting to find record with ID: 37254309-f8dd-4819-b552-5a89d298791f  
[2026-08-01 17:00:10] local.INFO: Record not found, creating new with ID: 37254309-f8dd-4819-b552-5a89d298791f  
[2026-08-01 17:00:10] local.INFO: Created record: {"id":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","type":"Buying","amount":1000,"rate":145,"negotiated_rate":"0","amount_paid":145000,"amount_received":1000,"narrative":null,"transaction_number":"TR-3623-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:00:00","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"92d76e5a-87df-46d7-a214-26fd425ffaaf","cancellation_reason":null,"customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-01T14:00:10.000000Z","created_at":"2026-08-01T14:00:10.000000Z"} 
[2026-08-01 17:00:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:12] local.INFO: Model: Transaction  
[2026-08-01 17:00:12] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:00:12] local.INFO: ID present? YES  
[2026-08-01 17:00:12] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:12] local.INFO: ID empty? NO  
[2026-08-01 17:00:12] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:12] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:00:12, 2026-08-01 17:00:12))  
[2026-08-01 17:00:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:18] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:18] local.INFO: Model: Transaction  
[2026-08-01 17:00:18] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:00:18] local.INFO: ID present? YES  
[2026-08-01 17:00:18] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:18] local.INFO: ID empty? NO  
[2026-08-01 17:00:18] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:18] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:00:18, 2026-08-01 17:00:18))  
[2026-08-01 17:00:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:24] local.INFO: Model: Transaction  
[2026-08-01 17:00:24] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:00:24] local.INFO: ID present? YES  
[2026-08-01 17:00:24] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:24] local.INFO: ID empty? NO  
[2026-08-01 17:00:24] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:24] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:00:24, 2026-08-01 17:00:24))  
[2026-08-01 17:00:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:30] local.INFO: Model: Transaction  
[2026-08-01 17:00:30] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:00:30] local.INFO: ID present? YES  
[2026-08-01 17:00:30] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:30] local.INFO: ID empty? NO  
[2026-08-01 17:00:30] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:30] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:00:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:00:30, 2026-08-01 17:00:30))  
[2026-08-01 17:00:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:32] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:32] local.INFO: Model: Transaction  
[2026-08-01 17:00:32] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:00:32] local.INFO: ID present? YES  
[2026-08-01 17:00:32] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:32] local.INFO: ID empty? NO  
[2026-08-01 17:00:32] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:32] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:00:32, 2026-08-01 17:00:32))  
[2026-08-01 17:00:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:38] local.INFO: Model: Transaction  
[2026-08-01 17:00:38] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:00:38] local.INFO: ID present? YES  
[2026-08-01 17:00:38] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:38] local.INFO: ID empty? NO  
[2026-08-01 17:00:38] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:38] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:00:38, 2026-08-01 17:00:38))  
[2026-08-01 17:00:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:44] local.INFO: Model: Transaction  
[2026-08-01 17:00:44] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:00:44] local.INFO: ID present? YES  
[2026-08-01 17:00:44] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:44] local.INFO: ID empty? NO  
[2026-08-01 17:00:44] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:44] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:00:44, 2026-08-01 17:00:44))  
[2026-08-01 17:00:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:50] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:50] local.INFO: Model: Transaction  
[2026-08-01 17:00:50] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:00:50] local.INFO: ID present? YES  
[2026-08-01 17:00:50] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:50] local.INFO: ID empty? NO  
[2026-08-01 17:00:50] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:50] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:00:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:00:50, 2026-08-01 17:00:50))  
[2026-08-01 17:00:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:52] local.INFO: Model: Transaction  
[2026-08-01 17:00:52] local.INFO: Data received: {"id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3622-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 16:49:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ec52a269-3b81-4b94-8d70-30c90baa168c","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 16:49:31","updated_at":"2026-08-01 16:49:33"} 
[2026-08-01 17:00:52] local.INFO: ID present? YES  
[2026-08-01 17:00:52] local.INFO: ID value: 8ae4e8a8-4861-49bb-ad13-877d4e177e2c  
[2026-08-01 17:00:52] local.INFO: ID empty? NO  
[2026-08-01 17:00:52] local.INFO: Attempting to find record with ID: 8ae4e8a8-4861-49bb-ad13-877d4e177e2c  
[2026-08-01 17:00:52] local.INFO: Record not found, creating new with ID: 8ae4e8a8-4861-49bb-ad13-877d4e177e2c  
[2026-08-01 17:00:52] local.INFO: Created record: {"id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3622-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 16:49:33","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"ec52a269-3b81-4b94-8d70-30c90baa168c","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T14:00:52.000000Z","created_at":"2026-08-01T14:00:52.000000Z"} 
[2026-08-01 17:00:53] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:53] local.INFO: Model: Journal  
[2026-08-01 17:00:53] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:00:53] local.INFO: ID present? YES  
[2026-08-01 17:00:53] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:00:53] local.INFO: ID empty? NO  
[2026-08-01 17:00:53] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:00:53] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:00:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:00:53, 2026-08-01 17:00:53))  
[2026-08-01 17:00:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:00:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:00:59] local.INFO: Model: Journal  
[2026-08-01 17:00:59] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:00:59] local.INFO: ID present? YES  
[2026-08-01 17:00:59] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:00:59] local.INFO: ID empty? NO  
[2026-08-01 17:00:59] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:00:59] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:00:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:00:59, 2026-08-01 17:00:59))  
[2026-08-01 17:00:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:06] local.INFO: Model: Journal  
[2026-08-01 17:01:06] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:01:06] local.INFO: ID present? YES  
[2026-08-01 17:01:06] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:01:06] local.INFO: ID empty? NO  
[2026-08-01 17:01:06] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:01:06] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:01:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:01:06, 2026-08-01 17:01:06))  
[2026-08-01 17:01:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:12] local.INFO: Model: Journal  
[2026-08-01 17:01:12] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:01:12] local.INFO: ID present? YES  
[2026-08-01 17:01:12] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:01:12] local.INFO: ID empty? NO  
[2026-08-01 17:01:12] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:01:12] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:01:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:01:12, 2026-08-01 17:01:12))  
[2026-08-01 17:01:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:13] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:13] local.INFO: Model: Journal  
[2026-08-01 17:01:13] local.INFO: Data received: {"id":"38c53dbd-f19c-4236-a717-c069bcb4f408","type":"Credit","amount":"145000.00","rate":"145.000000","lcy_amount":"145000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37254309-f8dd-4819-b552-5a89d298791f","customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:00:00","updated_at":"2026-08-01 17:00:00"} 
[2026-08-01 17:01:13] local.INFO: ID present? YES  
[2026-08-01 17:01:13] local.INFO: ID value: 38c53dbd-f19c-4236-a717-c069bcb4f408  
[2026-08-01 17:01:13] local.INFO: ID empty? NO  
[2026-08-01 17:01:13] local.INFO: Attempting to find record with ID: 38c53dbd-f19c-4236-a717-c069bcb4f408  
[2026-08-01 17:01:13] local.INFO: Record not found, creating new with ID: 38c53dbd-f19c-4236-a717-c069bcb4f408  
[2026-08-01 17:01:13] local.INFO: Created record: {"id":"38c53dbd-f19c-4236-a717-c069bcb4f408","type":"Credit","amount":"145000.00","rate":"145.000000","lcy_amount":"145000.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"37254309-f8dd-4819-b552-5a89d298791f","customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T14:01:13.000000Z","created_at":"2026-08-01T14:01:13.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-219172.0,"debit_total":"21749595.10","credit_total":21968767.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T12:56:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 17:01:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:14] local.INFO: Model: Journal  
[2026-08-01 17:01:14] local.INFO: Data received: {"id":"5627e847-9be6-4b8c-b09e-609361df63ea","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3622-2026","uniqid":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 16:49:33","updated_at":"2026-08-01 16:49:33"} 
[2026-08-01 17:01:14] local.INFO: ID present? YES  
[2026-08-01 17:01:14] local.INFO: ID value: 5627e847-9be6-4b8c-b09e-609361df63ea  
[2026-08-01 17:01:14] local.INFO: ID empty? NO  
[2026-08-01 17:01:14] local.INFO: Attempting to find record with ID: 5627e847-9be6-4b8c-b09e-609361df63ea  
[2026-08-01 17:01:14] local.INFO: Record not found, creating new with ID: 5627e847-9be6-4b8c-b09e-609361df63ea  
[2026-08-01 17:01:14] local.INFO: Created record: {"id":"5627e847-9be6-4b8c-b09e-609361df63ea","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3622-2026","uniqid":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T14:01:14.000000Z","created_at":"2026-08-01T14:01:14.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-121384.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":128696.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T12:58:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 17:01:15] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:15] local.INFO: Model: Journal  
[2026-08-01 17:01:15] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:01:15] local.INFO: ID present? YES  
[2026-08-01 17:01:15] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:15] local.INFO: ID empty? NO  
[2026-08-01 17:01:15] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:15] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:01:15, 2026-08-01 17:01:15))  
[2026-08-01 17:01:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:22] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:22] local.INFO: Model: Journal  
[2026-08-01 17:01:22] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:01:22] local.INFO: ID present? YES  
[2026-08-01 17:01:22] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:22] local.INFO: ID empty? NO  
[2026-08-01 17:01:22] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:22] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:01:22, 2026-08-01 17:01:22))  
[2026-08-01 17:01:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:28] local.INFO: Model: Journal  
[2026-08-01 17:01:28] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:01:28] local.INFO: ID present? YES  
[2026-08-01 17:01:28] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:28] local.INFO: ID empty? NO  
[2026-08-01 17:01:28] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:28] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:01:28, 2026-08-01 17:01:28))  
[2026-08-01 17:01:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:34] local.INFO: Model: Journal  
[2026-08-01 17:01:34] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:01:34] local.INFO: ID present? YES  
[2026-08-01 17:01:34] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:34] local.INFO: ID empty? NO  
[2026-08-01 17:01:34] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:34] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:01:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:01:34, 2026-08-01 17:01:34))  
[2026-08-01 17:01:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:35] local.INFO: Model: Journal  
[2026-08-01 17:01:35] local.INFO: Data received: {"id":"82a99b58-dcbf-48e6-9f06-e5983d372ee0","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 16:49:33","updated_at":"2026-08-01 16:49:33"} 
[2026-08-01 17:01:35] local.INFO: ID present? YES  
[2026-08-01 17:01:35] local.INFO: ID value: 82a99b58-dcbf-48e6-9f06-e5983d372ee0  
[2026-08-01 17:01:35] local.INFO: ID empty? NO  
[2026-08-01 17:01:35] local.INFO: Attempting to find record with ID: 82a99b58-dcbf-48e6-9f06-e5983d372ee0  
[2026-08-01 17:01:35] local.INFO: Record not found, creating new with ID: 82a99b58-dcbf-48e6-9f06-e5983d372ee0  
[2026-08-01 17:01:35] local.INFO: Created record: {"id":"82a99b58-dcbf-48e6-9f06-e5983d372ee0","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T14:01:35.000000Z","created_at":"2026-08-01T14:01:35.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":2900.0,"debit_total":80349.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T12:25:00.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 17:01:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:37] local.INFO: Model: Journal  
[2026-08-01 17:01:37] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:01:37] local.INFO: ID present? YES  
[2026-08-01 17:01:37] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:37] local.INFO: ID empty? NO  
[2026-08-01 17:01:37] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:37] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:01:37, 2026-08-01 17:01:37))  
[2026-08-01 17:01:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:43] local.INFO: Model: Journal  
[2026-08-01 17:01:43] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:01:43] local.INFO: ID present? YES  
[2026-08-01 17:01:43] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:43] local.INFO: ID empty? NO  
[2026-08-01 17:01:43] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:43] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:01:43, 2026-08-01 17:01:43))  
[2026-08-01 17:01:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:49] local.INFO: Model: Journal  
[2026-08-01 17:01:49] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:01:49] local.INFO: ID present? YES  
[2026-08-01 17:01:49] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:49] local.INFO: ID empty? NO  
[2026-08-01 17:01:49] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:49] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:01:49, 2026-08-01 17:01:49))  
[2026-08-01 17:01:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:55] local.INFO: Model: Journal  
[2026-08-01 17:01:55] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:01:55] local.INFO: ID present? YES  
[2026-08-01 17:01:55] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:55] local.INFO: ID empty? NO  
[2026-08-01 17:01:55] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:55] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:01:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:01:55, 2026-08-01 17:01:55))  
[2026-08-01 17:01:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:01:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:57] local.INFO: Model: Journal  
[2026-08-01 17:01:57] local.INFO: Data received: {"id":"97b74ca0-4032-42fe-ab8e-34d577c4215f","type":"Credit","amount":"6200.00","rate":"145.000000","lcy_amount":"6200.000000","narrative":"Gain on TR-3623-2026","uniqid":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37254309-f8dd-4819-b552-5a89d298791f","customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:00:00","updated_at":"2026-08-01 17:00:00"} 
[2026-08-01 17:01:57] local.INFO: ID present? YES  
[2026-08-01 17:01:57] local.INFO: ID value: 97b74ca0-4032-42fe-ab8e-34d577c4215f  
[2026-08-01 17:01:57] local.INFO: ID empty? NO  
[2026-08-01 17:01:57] local.INFO: Attempting to find record with ID: 97b74ca0-4032-42fe-ab8e-34d577c4215f  
[2026-08-01 17:01:57] local.INFO: Record not found, creating new with ID: 97b74ca0-4032-42fe-ab8e-34d577c4215f  
[2026-08-01 17:01:57] local.INFO: Created record: {"id":"97b74ca0-4032-42fe-ab8e-34d577c4215f","type":"Credit","amount":"6200.00","rate":"145.000000","lcy_amount":"6200.000000","narrative":"Gain on TR-3623-2026","uniqid":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"37254309-f8dd-4819-b552-5a89d298791f","customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T14:01:57.000000Z","created_at":"2026-08-01T14:01:57.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-127584.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":134896.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T14:01:14.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 17:01:58] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:01:58] local.INFO: Model: Journal  
[2026-08-01 17:01:58] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:01:58] local.INFO: ID present? YES  
[2026-08-01 17:01:58] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:01:58] local.INFO: ID empty? NO  
[2026-08-01 17:01:58] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:01:58] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:01:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:01:58, 2026-08-01 17:01:58))  
[2026-08-01 17:01:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:04] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:04] local.INFO: Model: Journal  
[2026-08-01 17:02:04] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:02:04] local.INFO: ID present? YES  
[2026-08-01 17:02:04] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:04] local.INFO: ID empty? NO  
[2026-08-01 17:02:04] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:04] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:02:04, 2026-08-01 17:02:04))  
[2026-08-01 17:02:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:10] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:10] local.INFO: Model: Journal  
[2026-08-01 17:02:10] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:02:10] local.INFO: ID present? YES  
[2026-08-01 17:02:10] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:10] local.INFO: ID empty? NO  
[2026-08-01 17:02:10] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:10] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:02:10, 2026-08-01 17:02:10))  
[2026-08-01 17:02:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:17] local.INFO: Model: Journal  
[2026-08-01 17:02:17] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:02:17] local.INFO: ID present? YES  
[2026-08-01 17:02:17] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:17] local.INFO: ID empty? NO  
[2026-08-01 17:02:17] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:17] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:02:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:02:17, 2026-08-01 17:02:17))  
[2026-08-01 17:02:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:18] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:18] local.INFO: Model: Journal  
[2026-08-01 17:02:18] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:18] local.INFO: ID present? YES  
[2026-08-01 17:02:18] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:18] local.INFO: ID empty? NO  
[2026-08-01 17:02:18] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:18] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:18, 2026-08-01 17:02:18))  
[2026-08-01 17:02:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:24] local.INFO: Model: Journal  
[2026-08-01 17:02:24] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:24] local.INFO: ID present? YES  
[2026-08-01 17:02:24] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:24] local.INFO: ID empty? NO  
[2026-08-01 17:02:24] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:24] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:24, 2026-08-01 17:02:24))  
[2026-08-01 17:02:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:30] local.INFO: Model: Journal  
[2026-08-01 17:02:30] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:30] local.INFO: ID present? YES  
[2026-08-01 17:02:30] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:30] local.INFO: ID empty? NO  
[2026-08-01 17:02:30] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:30] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:30, 2026-08-01 17:02:30))  
[2026-08-01 17:02:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:36] local.INFO: Model: Journal  
[2026-08-01 17:02:36] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:36] local.INFO: ID present? YES  
[2026-08-01 17:02:36] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:36] local.INFO: ID empty? NO  
[2026-08-01 17:02:36] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:36] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:02:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:36, 2026-08-01 17:02:36))  
[2026-08-01 17:02:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:38] local.INFO: Model: Journal  
[2026-08-01 17:02:38] local.INFO: Data received: {"id":"e722127f-73ff-4820-98ff-7a6974cfde46","type":"Debit","amount":"1000.00","rate":"145.000000","lcy_amount":"151200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"37254309-f8dd-4819-b552-5a89d298791f","customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-01 17:00:00","updated_at":"2026-08-01 17:00:00"} 
[2026-08-01 17:02:38] local.INFO: ID present? YES  
[2026-08-01 17:02:38] local.INFO: ID value: e722127f-73ff-4820-98ff-7a6974cfde46  
[2026-08-01 17:02:38] local.INFO: ID empty? NO  
[2026-08-01 17:02:38] local.INFO: Attempting to find record with ID: e722127f-73ff-4820-98ff-7a6974cfde46  
[2026-08-01 17:02:38] local.INFO: Record not found, creating new with ID: e722127f-73ff-4820-98ff-7a6974cfde46  
[2026-08-01 17:02:38] local.INFO: Created record: {"id":"e722127f-73ff-4820-98ff-7a6974cfde46","type":"Debit","amount":"1000.00","rate":"145.000000","lcy_amount":"151200.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"37254309-f8dd-4819-b552-5a89d298791f","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"37254309-f8dd-4819-b552-5a89d298791f","customer_id":"98fafb45-ad4c-4462-843c-ef761b13670d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-01T14:02:38.000000Z","created_at":"2026-08-01T14:02:38.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":1115.0,"debit_total":23905.0,"credit_total":"22790.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T12:57:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 17:02:39] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:39] local.INFO: Model: Journal  
[2026-08-01 17:02:39] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:39] local.INFO: ID present? YES  
[2026-08-01 17:02:39] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:39] local.INFO: ID empty? NO  
[2026-08-01 17:02:39] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:39] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:39, 2026-08-01 17:02:39))  
[2026-08-01 17:02:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:45] local.INFO: Model: Journal  
[2026-08-01 17:02:45] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:45] local.INFO: ID present? YES  
[2026-08-01 17:02:45] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:45] local.INFO: ID empty? NO  
[2026-08-01 17:02:45] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:45] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:45, 2026-08-01 17:02:45))  
[2026-08-01 17:02:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:51] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:51] local.INFO: Model: Journal  
[2026-08-01 17:02:51] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:51] local.INFO: ID present? YES  
[2026-08-01 17:02:51] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:51] local.INFO: ID empty? NO  
[2026-08-01 17:02:51] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:51] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:51, 2026-08-01 17:02:51))  
[2026-08-01 17:02:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:58] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:58] local.INFO: Model: Journal  
[2026-08-01 17:02:58] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:02:58] local.INFO: ID present? YES  
[2026-08-01 17:02:58] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:58] local.INFO: ID empty? NO  
[2026-08-01 17:02:58] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:58] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:02:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:02:58, 2026-08-01 17:02:58))  
[2026-08-01 17:02:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:02:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:02:59] local.INFO: Model: Journal  
[2026-08-01 17:02:59] local.INFO: Data received: {"id":"fa8e2e31-0cff-4276-8dd2-81437d432a76","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 16:49:33","updated_at":"2026-08-01 16:49:33"} 
[2026-08-01 17:02:59] local.INFO: ID present? YES  
[2026-08-01 17:02:59] local.INFO: ID value: fa8e2e31-0cff-4276-8dd2-81437d432a76  
[2026-08-01 17:02:59] local.INFO: ID empty? NO  
[2026-08-01 17:02:59] local.INFO: Attempting to find record with ID: fa8e2e31-0cff-4276-8dd2-81437d432a76  
[2026-08-01 17:02:59] local.INFO: Record not found, creating new with ID: fa8e2e31-0cff-4276-8dd2-81437d432a76  
[2026-08-01 17:02:59] local.INFO: Created record: {"id":"fa8e2e31-0cff-4276-8dd2-81437d432a76","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8ae4e8a8-4861-49bb-ad13-877d4e177e2c","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T14:02:59.000000Z","created_at":"2026-08-01T14:02:59.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-257572.0,"debit_total":"21749595.10","credit_total":22007167.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T14:01:13.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 17:14:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:08] local.INFO: Model: Transaction  
[2026-08-01 17:14:08] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:14:08] local.INFO: ID present? YES  
[2026-08-01 17:14:08] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:08] local.INFO: ID empty? NO  
[2026-08-01 17:14:08] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:08] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:14:08, 2026-08-01 17:14:08))  
[2026-08-01 17:14:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:14] local.INFO: Model: Transaction  
[2026-08-01 17:14:14] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:14:14] local.INFO: ID present? YES  
[2026-08-01 17:14:14] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:14] local.INFO: ID empty? NO  
[2026-08-01 17:14:14] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:14] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:14:14, 2026-08-01 17:14:14))  
[2026-08-01 17:14:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:20] local.INFO: Model: Transaction  
[2026-08-01 17:14:20] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:14:20] local.INFO: ID present? YES  
[2026-08-01 17:14:20] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:20] local.INFO: ID empty? NO  
[2026-08-01 17:14:20] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:20] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:14:20, 2026-08-01 17:14:20))  
[2026-08-01 17:14:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:26] local.INFO: Model: Transaction  
[2026-08-01 17:14:26] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:14:26] local.INFO: ID present? YES  
[2026-08-01 17:14:26] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:26] local.INFO: ID empty? NO  
[2026-08-01 17:14:26] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:26] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:14:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:14:26, 2026-08-01 17:14:26))  
[2026-08-01 17:14:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:28] local.INFO: Model: Transaction  
[2026-08-01 17:14:28] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:14:28] local.INFO: ID present? YES  
[2026-08-01 17:14:28] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:28] local.INFO: ID empty? NO  
[2026-08-01 17:14:28] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:28] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:14:28, 2026-08-01 17:14:28))  
[2026-08-01 17:14:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:34] local.INFO: Model: Transaction  
[2026-08-01 17:14:34] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:14:34] local.INFO: ID present? YES  
[2026-08-01 17:14:34] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:34] local.INFO: ID empty? NO  
[2026-08-01 17:14:34] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:34] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:14:34, 2026-08-01 17:14:34))  
[2026-08-01 17:14:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:40] local.INFO: Model: Transaction  
[2026-08-01 17:14:40] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:14:40] local.INFO: ID present? YES  
[2026-08-01 17:14:40] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:40] local.INFO: ID empty? NO  
[2026-08-01 17:14:40] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:40] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:14:40, 2026-08-01 17:14:40))  
[2026-08-01 17:14:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:46] local.INFO: Model: Transaction  
[2026-08-01 17:14:46] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:14:46] local.INFO: ID present? YES  
[2026-08-01 17:14:46] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:46] local.INFO: ID empty? NO  
[2026-08-01 17:14:46] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:46] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:14:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:14:46, 2026-08-01 17:14:46))  
[2026-08-01 17:14:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:48] local.INFO: Model: Journal  
[2026-08-01 17:14:48] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:14:48] local.INFO: ID present? YES  
[2026-08-01 17:14:48] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:14:48] local.INFO: ID empty? NO  
[2026-08-01 17:14:48] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:14:48] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:14:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:14:48, 2026-08-01 17:14:48))  
[2026-08-01 17:14:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:14:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:14:54] local.INFO: Model: Journal  
[2026-08-01 17:14:54] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:14:54] local.INFO: ID present? YES  
[2026-08-01 17:14:54] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:14:54] local.INFO: ID empty? NO  
[2026-08-01 17:14:54] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:14:54] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:14:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:14:54, 2026-08-01 17:14:54))  
[2026-08-01 17:14:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:01] local.INFO: Model: Journal  
[2026-08-01 17:15:01] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:01] local.INFO: ID present? YES  
[2026-08-01 17:15:01] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:15:01] local.INFO: ID empty? NO  
[2026-08-01 17:15:01] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:15:01] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:15:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:15:01, 2026-08-01 17:15:01))  
[2026-08-01 17:15:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:07] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:07] local.INFO: Model: Journal  
[2026-08-01 17:15:07] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:07] local.INFO: ID present? YES  
[2026-08-01 17:15:07] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:15:07] local.INFO: ID empty? NO  
[2026-08-01 17:15:07] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:15:07] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:15:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:15:07, 2026-08-01 17:15:07))  
[2026-08-01 17:15:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:08] local.INFO: Model: Journal  
[2026-08-01 17:15:08] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:08] local.INFO: ID present? YES  
[2026-08-01 17:15:08] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:08] local.INFO: ID empty? NO  
[2026-08-01 17:15:08] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:08] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:15:08, 2026-08-01 17:15:08))  
[2026-08-01 17:15:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:15] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:15] local.INFO: Model: Journal  
[2026-08-01 17:15:15] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:15] local.INFO: ID present? YES  
[2026-08-01 17:15:15] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:15] local.INFO: ID empty? NO  
[2026-08-01 17:15:15] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:15] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:15:15, 2026-08-01 17:15:15))  
[2026-08-01 17:15:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:21] local.INFO: Model: Journal  
[2026-08-01 17:15:21] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:21] local.INFO: ID present? YES  
[2026-08-01 17:15:21] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:21] local.INFO: ID empty? NO  
[2026-08-01 17:15:21] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:21] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:15:21, 2026-08-01 17:15:21))  
[2026-08-01 17:15:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:28] local.INFO: Model: Journal  
[2026-08-01 17:15:28] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:28] local.INFO: ID present? YES  
[2026-08-01 17:15:28] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:28] local.INFO: ID empty? NO  
[2026-08-01 17:15:28] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:28] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:15:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:15:28, 2026-08-01 17:15:28))  
[2026-08-01 17:15:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:29] local.INFO: Model: Journal  
[2026-08-01 17:15:29] local.INFO: Data received: {"id":"58a9bae6-6e82-4d36-8563-63315b2bb6ca","type":"Credit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"ea2387f3-37ad-48b5-8c61-9e04ac8e81b6","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:13:47","updated_at":"2026-08-01 17:13:50"} 
[2026-08-01 17:15:29] local.INFO: ID present? YES  
[2026-08-01 17:15:29] local.INFO: ID value: 58a9bae6-6e82-4d36-8563-63315b2bb6ca  
[2026-08-01 17:15:29] local.INFO: ID empty? NO  
[2026-08-01 17:15:29] local.INFO: Attempting to find record with ID: 58a9bae6-6e82-4d36-8563-63315b2bb6ca  
[2026-08-01 17:15:29] local.INFO: Record not found, creating new with ID: 58a9bae6-6e82-4d36-8563-63315b2bb6ca  
[2026-08-01 17:15:29] local.INFO: Created record: {"id":"58a9bae6-6e82-4d36-8563-63315b2bb6ca","type":"Credit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"ea2387f3-37ad-48b5-8c61-9e04ac8e81b6","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T14:15:29.000000Z","created_at":"2026-08-01T14:15:29.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":3255473.5,"debit_total":"9503959.10","credit_total":6248485.59999999962747097015380859375,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T08:26:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 17:15:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:30] local.INFO: Model: Journal  
[2026-08-01 17:15:30] local.INFO: Data received: {"id":"6e0aed41-d90b-4765-b2d7-24068d1b73a5","type":"Debit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"ea2387f3-37ad-48b5-8c61-9e04ac8e81b6","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:13:47","updated_at":"2026-08-01 17:13:50"} 
[2026-08-01 17:15:30] local.INFO: ID present? YES  
[2026-08-01 17:15:30] local.INFO: ID value: 6e0aed41-d90b-4765-b2d7-24068d1b73a5  
[2026-08-01 17:15:30] local.INFO: ID empty? NO  
[2026-08-01 17:15:30] local.INFO: Attempting to find record with ID: 6e0aed41-d90b-4765-b2d7-24068d1b73a5  
[2026-08-01 17:15:30] local.INFO: Record not found, creating new with ID: 6e0aed41-d90b-4765-b2d7-24068d1b73a5  
[2026-08-01 17:15:30] local.INFO: Created record: {"id":"6e0aed41-d90b-4765-b2d7-24068d1b73a5","type":"Debit","amount":"200000.00","rate":null,"lcy_amount":"200000.000000","narrative":"KES ADDITION","uniqid":"ea2387f3-37ad-48b5-8c61-9e04ac8e81b6","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T14:15:30.000000Z","created_at":"2026-08-01T14:15:30.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-57572.0,"debit_total":21949595.100000001490116119384765625,"credit_total":"22007167.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T14:02:59.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 17:15:32] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:32] local.INFO: Model: Journal  
[2026-08-01 17:15:32] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:15:32] local.INFO: ID present? YES  
[2026-08-01 17:15:32] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:32] local.INFO: ID empty? NO  
[2026-08-01 17:15:32] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:32] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:15:32, 2026-08-01 17:15:32))  
[2026-08-01 17:15:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:38] local.INFO: Model: Journal  
[2026-08-01 17:15:38] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:15:38] local.INFO: ID present? YES  
[2026-08-01 17:15:38] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:38] local.INFO: ID empty? NO  
[2026-08-01 17:15:38] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:38] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:15:38, 2026-08-01 17:15:38))  
[2026-08-01 17:15:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:45] local.INFO: Model: Journal  
[2026-08-01 17:15:45] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:15:45] local.INFO: ID present? YES  
[2026-08-01 17:15:45] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:45] local.INFO: ID empty? NO  
[2026-08-01 17:15:45] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:45] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:15:45, 2026-08-01 17:15:45))  
[2026-08-01 17:15:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:51] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:51] local.INFO: Model: Journal  
[2026-08-01 17:15:51] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:15:51] local.INFO: ID present? YES  
[2026-08-01 17:15:51] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:51] local.INFO: ID empty? NO  
[2026-08-01 17:15:51] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:51] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:15:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:15:51, 2026-08-01 17:15:51))  
[2026-08-01 17:15:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:52] local.INFO: Model: Journal  
[2026-08-01 17:15:52] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:52] local.INFO: ID present? YES  
[2026-08-01 17:15:52] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:15:52] local.INFO: ID empty? NO  
[2026-08-01 17:15:52] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:15:52] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:15:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:15:52, 2026-08-01 17:15:52))  
[2026-08-01 17:15:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:15:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:15:59] local.INFO: Model: Journal  
[2026-08-01 17:15:59] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:15:59] local.INFO: ID present? YES  
[2026-08-01 17:15:59] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:15:59] local.INFO: ID empty? NO  
[2026-08-01 17:15:59] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:15:59] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:15:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:15:59, 2026-08-01 17:15:59))  
[2026-08-01 17:15:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:05] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:05] local.INFO: Model: Journal  
[2026-08-01 17:16:05] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:16:05] local.INFO: ID present? YES  
[2026-08-01 17:16:05] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:16:05] local.INFO: ID empty? NO  
[2026-08-01 17:16:05] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:16:05] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:16:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:16:05, 2026-08-01 17:16:05))  
[2026-08-01 17:16:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:11] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:11] local.INFO: Model: Journal  
[2026-08-01 17:16:11] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:16:11] local.INFO: ID present? YES  
[2026-08-01 17:16:11] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:16:11] local.INFO: ID empty? NO  
[2026-08-01 17:16:11] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:16:11] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:16:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:16:11, 2026-08-01 17:16:11))  
[2026-08-01 17:16:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:13] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:13] local.INFO: Model: Journal  
[2026-08-01 17:16:13] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:13] local.INFO: ID present? YES  
[2026-08-01 17:16:13] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:13] local.INFO: ID empty? NO  
[2026-08-01 17:16:13] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:13] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:13, 2026-08-01 17:16:13))  
[2026-08-01 17:16:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:19] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:19] local.INFO: Model: Journal  
[2026-08-01 17:16:19] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:19] local.INFO: ID present? YES  
[2026-08-01 17:16:19] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:19] local.INFO: ID empty? NO  
[2026-08-01 17:16:19] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:19] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:19, 2026-08-01 17:16:19))  
[2026-08-01 17:16:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:25] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:25] local.INFO: Model: Journal  
[2026-08-01 17:16:25] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:25] local.INFO: ID present? YES  
[2026-08-01 17:16:25] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:25] local.INFO: ID empty? NO  
[2026-08-01 17:16:25] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:25] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:25, 2026-08-01 17:16:25))  
[2026-08-01 17:16:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:32] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:32] local.INFO: Model: Journal  
[2026-08-01 17:16:32] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:32] local.INFO: ID present? YES  
[2026-08-01 17:16:32] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:32] local.INFO: ID empty? NO  
[2026-08-01 17:16:32] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:32] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:16:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:32, 2026-08-01 17:16:32))  
[2026-08-01 17:16:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:33] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:33] local.INFO: Model: Journal  
[2026-08-01 17:16:33] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:33] local.INFO: ID present? YES  
[2026-08-01 17:16:33] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:33] local.INFO: ID empty? NO  
[2026-08-01 17:16:33] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:33] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:33, 2026-08-01 17:16:33))  
[2026-08-01 17:16:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:40] local.INFO: Model: Journal  
[2026-08-01 17:16:40] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:40] local.INFO: ID present? YES  
[2026-08-01 17:16:40] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:40] local.INFO: ID empty? NO  
[2026-08-01 17:16:40] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:40] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:40, 2026-08-01 17:16:40))  
[2026-08-01 17:16:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:46] local.INFO: Model: Journal  
[2026-08-01 17:16:46] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:46] local.INFO: ID present? YES  
[2026-08-01 17:16:46] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:46] local.INFO: ID empty? NO  
[2026-08-01 17:16:46] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:46] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:46, 2026-08-01 17:16:46))  
[2026-08-01 17:16:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:16:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:16:52] local.INFO: Model: Journal  
[2026-08-01 17:16:52] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:16:52] local.INFO: ID present? YES  
[2026-08-01 17:16:52] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:52] local.INFO: ID empty? NO  
[2026-08-01 17:16:52] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:52] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:16:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:16:52, 2026-08-01 17:16:52))  
[2026-08-01 17:16:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:20] local.INFO: Model: Transaction  
[2026-08-01 17:39:20] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:39:20] local.INFO: ID present? YES  
[2026-08-01 17:39:20] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:20] local.INFO: ID empty? NO  
[2026-08-01 17:39:20] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:20] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 17:39:20, 2026-08-01 17:39:20))  
[2026-08-01 17:39:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:26] local.INFO: Model: Transaction  
[2026-08-01 17:39:26] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:39:26] local.INFO: ID present? YES  
[2026-08-01 17:39:26] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:26] local.INFO: ID empty? NO  
[2026-08-01 17:39:26] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:26] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 17:39:26, 2026-08-01 17:39:26))  
[2026-08-01 17:39:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:33] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:33] local.INFO: Model: Transaction  
[2026-08-01 17:39:33] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:39:33] local.INFO: ID present? YES  
[2026-08-01 17:39:33] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:33] local.INFO: ID empty? NO  
[2026-08-01 17:39:33] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:33] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 17:39:33, 2026-08-01 17:39:33))  
[2026-08-01 17:39:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:39] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:39] local.INFO: Model: Transaction  
[2026-08-01 17:39:39] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:39:39] local.INFO: ID present? YES  
[2026-08-01 17:39:39] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:39] local.INFO: ID empty? NO  
[2026-08-01 17:39:39] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:39] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 17:39:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 17:39:39, 2026-08-01 17:39:39))  
[2026-08-01 17:39:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:40] local.INFO: Model: Transaction  
[2026-08-01 17:39:40] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:39:40] local.INFO: ID present? YES  
[2026-08-01 17:39:40] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:40] local.INFO: ID empty? NO  
[2026-08-01 17:39:40] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:40] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:39:40, 2026-08-01 17:39:40))  
[2026-08-01 17:39:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:46] local.INFO: Model: Transaction  
[2026-08-01 17:39:46] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:39:46] local.INFO: ID present? YES  
[2026-08-01 17:39:46] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:46] local.INFO: ID empty? NO  
[2026-08-01 17:39:46] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:46] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:39:46, 2026-08-01 17:39:46))  
[2026-08-01 17:39:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:52] local.INFO: Model: Transaction  
[2026-08-01 17:39:52] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:39:52] local.INFO: ID present? YES  
[2026-08-01 17:39:52] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:52] local.INFO: ID empty? NO  
[2026-08-01 17:39:52] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:52] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:39:52, 2026-08-01 17:39:52))  
[2026-08-01 17:39:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:39:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:39:59] local.INFO: Model: Transaction  
[2026-08-01 17:39:59] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:39:59] local.INFO: ID present? YES  
[2026-08-01 17:39:59] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:59] local.INFO: ID empty? NO  
[2026-08-01 17:39:59] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:59] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 17:39:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 17:39:59, 2026-08-01 17:39:59))  
[2026-08-01 17:39:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:00] local.INFO: Model: Transaction  
[2026-08-01 17:40:00] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:40:00] local.INFO: ID present? YES  
[2026-08-01 17:40:00] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:00] local.INFO: ID empty? NO  
[2026-08-01 17:40:00] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:00] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:40:00, 2026-08-01 17:40:00))  
[2026-08-01 17:40:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:06] local.INFO: Model: Transaction  
[2026-08-01 17:40:06] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:40:06] local.INFO: ID present? YES  
[2026-08-01 17:40:06] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:06] local.INFO: ID empty? NO  
[2026-08-01 17:40:06] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:06] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:40:06, 2026-08-01 17:40:06))  
[2026-08-01 17:40:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:12] local.INFO: Model: Transaction  
[2026-08-01 17:40:12] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:40:12] local.INFO: ID present? YES  
[2026-08-01 17:40:12] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:12] local.INFO: ID empty? NO  
[2026-08-01 17:40:12] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:12] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:40:12, 2026-08-01 17:40:12))  
[2026-08-01 17:40:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:19] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:19] local.INFO: Model: Transaction  
[2026-08-01 17:40:19] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:40:19] local.INFO: ID present? YES  
[2026-08-01 17:40:19] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:19] local.INFO: ID empty? NO  
[2026-08-01 17:40:19] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:19] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 17:40:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 17:40:19, 2026-08-01 17:40:19))  
[2026-08-01 17:40:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:20] local.INFO: Model: Journal  
[2026-08-01 17:40:20] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:40:20] local.INFO: ID present? YES  
[2026-08-01 17:40:20] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:20] local.INFO: ID empty? NO  
[2026-08-01 17:40:20] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:20] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:20, 2026-08-01 17:40:20))  
[2026-08-01 17:40:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:26] local.INFO: Model: Journal  
[2026-08-01 17:40:26] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:40:26] local.INFO: ID present? YES  
[2026-08-01 17:40:26] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:26] local.INFO: ID empty? NO  
[2026-08-01 17:40:26] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:26] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:26, 2026-08-01 17:40:26))  
[2026-08-01 17:40:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:33] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:33] local.INFO: Model: Journal  
[2026-08-01 17:40:33] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:40:33] local.INFO: ID present? YES  
[2026-08-01 17:40:33] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:33] local.INFO: ID empty? NO  
[2026-08-01 17:40:33] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:33] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:33, 2026-08-01 17:40:33))  
[2026-08-01 17:40:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:39] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:39] local.INFO: Model: Journal  
[2026-08-01 17:40:39] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:40:39] local.INFO: ID present? YES  
[2026-08-01 17:40:39] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:39] local.INFO: ID empty? NO  
[2026-08-01 17:40:39] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:39] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 17:40:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:39, 2026-08-01 17:40:39))  
[2026-08-01 17:40:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:40] local.INFO: Model: Journal  
[2026-08-01 17:40:40] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:40:40] local.INFO: ID present? YES  
[2026-08-01 17:40:40] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:40] local.INFO: ID empty? NO  
[2026-08-01 17:40:40] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:40] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:40, 2026-08-01 17:40:40))  
[2026-08-01 17:40:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:46] local.INFO: Model: Journal  
[2026-08-01 17:40:46] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:40:46] local.INFO: ID present? YES  
[2026-08-01 17:40:46] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:46] local.INFO: ID empty? NO  
[2026-08-01 17:40:46] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:46] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:46, 2026-08-01 17:40:46))  
[2026-08-01 17:40:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:52] local.INFO: Model: Journal  
[2026-08-01 17:40:52] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:40:52] local.INFO: ID present? YES  
[2026-08-01 17:40:52] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:52] local.INFO: ID empty? NO  
[2026-08-01 17:40:52] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:52] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:52, 2026-08-01 17:40:52))  
[2026-08-01 17:40:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:40:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:40:59] local.INFO: Model: Journal  
[2026-08-01 17:40:59] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:40:59] local.INFO: ID present? YES  
[2026-08-01 17:40:59] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:59] local.INFO: ID empty? NO  
[2026-08-01 17:40:59] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:59] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 17:40:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:40:59, 2026-08-01 17:40:59))  
[2026-08-01 17:40:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:00] local.INFO: Model: Journal  
[2026-08-01 17:41:00] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:41:00] local.INFO: ID present? YES  
[2026-08-01 17:41:00] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:00] local.INFO: ID empty? NO  
[2026-08-01 17:41:00] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:00] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:00, 2026-08-01 17:41:00))  
[2026-08-01 17:41:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:06] local.INFO: Model: Journal  
[2026-08-01 17:41:06] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:41:06] local.INFO: ID present? YES  
[2026-08-01 17:41:06] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:06] local.INFO: ID empty? NO  
[2026-08-01 17:41:06] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:06] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:06, 2026-08-01 17:41:06))  
[2026-08-01 17:41:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:12] local.INFO: Model: Journal  
[2026-08-01 17:41:12] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:41:12] local.INFO: ID present? YES  
[2026-08-01 17:41:12] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:12] local.INFO: ID empty? NO  
[2026-08-01 17:41:12] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:12] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:12, 2026-08-01 17:41:12))  
[2026-08-01 17:41:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:19] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:19] local.INFO: Model: Journal  
[2026-08-01 17:41:19] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:41:19] local.INFO: ID present? YES  
[2026-08-01 17:41:19] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:19] local.INFO: ID empty? NO  
[2026-08-01 17:41:19] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:19] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 17:41:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:19, 2026-08-01 17:41:19))  
[2026-08-01 17:41:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:20] local.INFO: Model: Journal  
[2026-08-01 17:41:20] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:41:20] local.INFO: ID present? YES  
[2026-08-01 17:41:20] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:20] local.INFO: ID empty? NO  
[2026-08-01 17:41:20] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:20] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:20, 2026-08-01 17:41:20))  
[2026-08-01 17:41:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:26] local.INFO: Model: Journal  
[2026-08-01 17:41:26] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:41:26] local.INFO: ID present? YES  
[2026-08-01 17:41:26] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:26] local.INFO: ID empty? NO  
[2026-08-01 17:41:26] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:26] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:26, 2026-08-01 17:41:26))  
[2026-08-01 17:41:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:32] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:32] local.INFO: Model: Journal  
[2026-08-01 17:41:32] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:41:32] local.INFO: ID present? YES  
[2026-08-01 17:41:32] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:32] local.INFO: ID empty? NO  
[2026-08-01 17:41:32] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:32] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:32, 2026-08-01 17:41:32))  
[2026-08-01 17:41:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:39] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:39] local.INFO: Model: Journal  
[2026-08-01 17:41:39] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:41:39] local.INFO: ID present? YES  
[2026-08-01 17:41:39] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:39] local.INFO: ID empty? NO  
[2026-08-01 17:41:39] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:39] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 17:41:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:41:39, 2026-08-01 17:41:39))  
[2026-08-01 17:41:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:40] local.INFO: Model: Journal  
[2026-08-01 17:41:40] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:41:40] local.INFO: ID present? YES  
[2026-08-01 17:41:40] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:40] local.INFO: ID empty? NO  
[2026-08-01 17:41:40] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:40] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:41:40, 2026-08-01 17:41:40))  
[2026-08-01 17:41:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:46] local.INFO: Model: Journal  
[2026-08-01 17:41:46] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:41:46] local.INFO: ID present? YES  
[2026-08-01 17:41:46] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:46] local.INFO: ID empty? NO  
[2026-08-01 17:41:46] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:46] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:41:46, 2026-08-01 17:41:46))  
[2026-08-01 17:41:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:41:53] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:41:53] local.INFO: Model: Journal  
[2026-08-01 17:41:53] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:41:53] local.INFO: ID present? YES  
[2026-08-01 17:41:53] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:53] local.INFO: ID empty? NO  
[2026-08-01 17:41:53] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:53] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:41:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:41:53, 2026-08-01 17:41:53))  
[2026-08-01 17:41:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:00] local.INFO: Model: Journal  
[2026-08-01 17:42:00] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:00] local.INFO: ID present? YES  
[2026-08-01 17:42:00] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:42:00] local.INFO: ID empty? NO  
[2026-08-01 17:42:00] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:42:00] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 17:42:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 17:42:00, 2026-08-01 17:42:00))  
[2026-08-01 17:42:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:01] local.INFO: Model: Journal  
[2026-08-01 17:42:01] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:42:01] local.INFO: ID present? YES  
[2026-08-01 17:42:01] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:01] local.INFO: ID empty? NO  
[2026-08-01 17:42:01] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:01] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:42:01, 2026-08-01 17:42:01))  
[2026-08-01 17:42:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:08] local.INFO: Model: Journal  
[2026-08-01 17:42:08] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:42:08] local.INFO: ID present? YES  
[2026-08-01 17:42:08] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:08] local.INFO: ID empty? NO  
[2026-08-01 17:42:08] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:08] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:42:08, 2026-08-01 17:42:08))  
[2026-08-01 17:42:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:14] local.INFO: Model: Journal  
[2026-08-01 17:42:14] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:42:14] local.INFO: ID present? YES  
[2026-08-01 17:42:14] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:14] local.INFO: ID empty? NO  
[2026-08-01 17:42:14] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:14] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:42:14, 2026-08-01 17:42:14))  
[2026-08-01 17:42:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:20] local.INFO: Model: Journal  
[2026-08-01 17:42:20] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 17:42:20] local.INFO: ID present? YES  
[2026-08-01 17:42:20] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:20] local.INFO: ID empty? NO  
[2026-08-01 17:42:20] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:20] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 17:42:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 17:42:20, 2026-08-01 17:42:20))  
[2026-08-01 17:42:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:21] local.INFO: Model: Journal  
[2026-08-01 17:42:21] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:21] local.INFO: ID present? YES  
[2026-08-01 17:42:21] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:21] local.INFO: ID empty? NO  
[2026-08-01 17:42:21] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:21] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:42:21, 2026-08-01 17:42:21))  
[2026-08-01 17:42:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:28] local.INFO: Model: Journal  
[2026-08-01 17:42:28] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:28] local.INFO: ID present? YES  
[2026-08-01 17:42:28] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:28] local.INFO: ID empty? NO  
[2026-08-01 17:42:28] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:28] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:42:28, 2026-08-01 17:42:28))  
[2026-08-01 17:42:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:34] local.INFO: Model: Journal  
[2026-08-01 17:42:34] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:34] local.INFO: ID present? YES  
[2026-08-01 17:42:34] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:34] local.INFO: ID empty? NO  
[2026-08-01 17:42:34] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:34] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:42:34, 2026-08-01 17:42:34))  
[2026-08-01 17:42:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:40] local.INFO: Model: Journal  
[2026-08-01 17:42:40] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:40] local.INFO: ID present? YES  
[2026-08-01 17:42:40] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:40] local.INFO: ID empty? NO  
[2026-08-01 17:42:40] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:40] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 17:42:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:42:40, 2026-08-01 17:42:40))  
[2026-08-01 17:42:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:41] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:41] local.INFO: Model: Journal  
[2026-08-01 17:42:41] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:41] local.INFO: ID present? YES  
[2026-08-01 17:42:41] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:41] local.INFO: ID empty? NO  
[2026-08-01 17:42:41] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:41] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:42:41, 2026-08-01 17:42:41))  
[2026-08-01 17:42:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:47] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:47] local.INFO: Model: Journal  
[2026-08-01 17:42:47] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:47] local.INFO: ID present? YES  
[2026-08-01 17:42:47] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:47] local.INFO: ID empty? NO  
[2026-08-01 17:42:47] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:47] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:42:47, 2026-08-01 17:42:47))  
[2026-08-01 17:42:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:42:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:42:54] local.INFO: Model: Journal  
[2026-08-01 17:42:54] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:42:54] local.INFO: ID present? YES  
[2026-08-01 17:42:54] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:54] local.INFO: ID empty? NO  
[2026-08-01 17:42:54] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:54] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:42:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:42:54, 2026-08-01 17:42:54))  
[2026-08-01 17:42:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:43:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:43:00] local.INFO: Model: Journal  
[2026-08-01 17:43:00] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 17:43:00] local.INFO: ID present? YES  
[2026-08-01 17:43:00] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:43:00] local.INFO: ID empty? NO  
[2026-08-01 17:43:00] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:43:00] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 17:43:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 17:43:00, 2026-08-01 17:43:00))  
[2026-08-01 17:43:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:43:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:43:01] local.INFO: Model: Journal  
[2026-08-01 17:43:01] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:43:01] local.INFO: ID present? YES  
[2026-08-01 17:43:01] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:01] local.INFO: ID empty? NO  
[2026-08-01 17:43:01] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:01] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 17:43:01, 2026-08-01 17:43:01))  
[2026-08-01 17:43:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:43:07] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:43:07] local.INFO: Model: Journal  
[2026-08-01 17:43:07] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:43:07] local.INFO: ID present? YES  
[2026-08-01 17:43:07] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:07] local.INFO: ID empty? NO  
[2026-08-01 17:43:07] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:07] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 17:43:07, 2026-08-01 17:43:07))  
[2026-08-01 17:43:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:43:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:43:14] local.INFO: Model: Journal  
[2026-08-01 17:43:14] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:43:14] local.INFO: ID present? YES  
[2026-08-01 17:43:14] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:14] local.INFO: ID empty? NO  
[2026-08-01 17:43:14] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:14] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 17:43:14, 2026-08-01 17:43:14))  
[2026-08-01 17:43:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 17:43:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 17:43:20] local.INFO: Model: Journal  
[2026-08-01 17:43:20] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 17:43:20] local.INFO: ID present? YES  
[2026-08-01 17:43:20] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:20] local.INFO: ID empty? NO  
[2026-08-01 17:43:20] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:20] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 17:43:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 17:43:20, 2026-08-01 17:43:20))  
[2026-08-01 17:43:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:25:53] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:25:53] local.INFO: Model: Customer  
[2026-08-01 18:25:53] local.INFO: Data received: {"id":"74be2429-2f19-411a-a064-f2e18ebcdae8","first_name":"GODFREY","last_name":"NGUNJIRI","sur_name":null,"phone":"724118215","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"22133231","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-01 18:25:27","updated_at":"2026-08-01 18:25:27"} 
[2026-08-01 18:25:53] local.INFO: ID present? YES  
[2026-08-01 18:25:53] local.INFO: ID value: 74be2429-2f19-411a-a064-f2e18ebcdae8  
[2026-08-01 18:25:53] local.INFO: ID empty? NO  
[2026-08-01 18:25:53] local.INFO: Attempting to find record with ID: 74be2429-2f19-411a-a064-f2e18ebcdae8  
[2026-08-01 18:25:53] local.INFO: Record not found, creating new with ID: 74be2429-2f19-411a-a064-f2e18ebcdae8  
[2026-08-01 18:25:53] local.INFO: Created record: {"id":"74be2429-2f19-411a-a064-f2e18ebcdae8","first_name":"GODFREY","last_name":"NGUNJIRI","sur_name":null,"phone":"724118215","calling_code":"+254","email":null,"residence":"undefined","id_type":"National ID","id_number":"22133231","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-01T15:25:53.000000Z","created_at":"2026-08-01T15:25:53.000000Z"} 
[2026-08-01 18:25:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:25:54] local.INFO: Model: Transaction  
[2026-08-01 18:25:54] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:25:54] local.INFO: ID present? YES  
[2026-08-01 18:25:54] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:25:54] local.INFO: ID empty? NO  
[2026-08-01 18:25:54] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:25:54] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:25:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:25:54, 2026-08-01 18:25:54))  
[2026-08-01 18:25:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:00] local.INFO: Model: Transaction  
[2026-08-01 18:26:00] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:26:00] local.INFO: ID present? YES  
[2026-08-01 18:26:00] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:00] local.INFO: ID empty? NO  
[2026-08-01 18:26:00] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:00] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:26:00, 2026-08-01 18:26:00))  
[2026-08-01 18:26:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:06] local.INFO: Model: Transaction  
[2026-08-01 18:26:06] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:26:06] local.INFO: ID present? YES  
[2026-08-01 18:26:06] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:06] local.INFO: ID empty? NO  
[2026-08-01 18:26:06] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:06] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:26:06, 2026-08-01 18:26:06))  
[2026-08-01 18:26:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:13] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:13] local.INFO: Model: Transaction  
[2026-08-01 18:26:13] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:26:13] local.INFO: ID present? YES  
[2026-08-01 18:26:13] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:13] local.INFO: ID empty? NO  
[2026-08-01 18:26:13] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:13] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:26:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:26:13, 2026-08-01 18:26:13))  
[2026-08-01 18:26:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:14] local.INFO: Model: Transaction  
[2026-08-01 18:26:14] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:26:14] local.INFO: ID present? YES  
[2026-08-01 18:26:14] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:14] local.INFO: ID empty? NO  
[2026-08-01 18:26:14] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:14] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:26:14, 2026-08-01 18:26:14))  
[2026-08-01 18:26:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:20] local.INFO: Model: Transaction  
[2026-08-01 18:26:20] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:26:20] local.INFO: ID present? YES  
[2026-08-01 18:26:20] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:20] local.INFO: ID empty? NO  
[2026-08-01 18:26:20] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:20] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:26:20, 2026-08-01 18:26:20))  
[2026-08-01 18:26:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:26] local.INFO: Model: Transaction  
[2026-08-01 18:26:26] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:26:26] local.INFO: ID present? YES  
[2026-08-01 18:26:26] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:26] local.INFO: ID empty? NO  
[2026-08-01 18:26:26] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:26] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:26:26, 2026-08-01 18:26:26))  
[2026-08-01 18:26:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:32] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:32] local.INFO: Model: Transaction  
[2026-08-01 18:26:32] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:26:32] local.INFO: ID present? YES  
[2026-08-01 18:26:32] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:32] local.INFO: ID empty? NO  
[2026-08-01 18:26:32] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:32] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:26:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:26:32, 2026-08-01 18:26:32))  
[2026-08-01 18:26:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:34] local.INFO: Model: Transaction  
[2026-08-01 18:26:34] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:26:34] local.INFO: ID present? YES  
[2026-08-01 18:26:34] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:34] local.INFO: ID empty? NO  
[2026-08-01 18:26:34] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:34] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:26:34, 2026-08-01 18:26:34))  
[2026-08-01 18:26:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:40] local.INFO: Model: Transaction  
[2026-08-01 18:26:40] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:26:40] local.INFO: ID present? YES  
[2026-08-01 18:26:40] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:40] local.INFO: ID empty? NO  
[2026-08-01 18:26:40] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:40] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:26:40, 2026-08-01 18:26:40))  
[2026-08-01 18:26:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:46] local.INFO: Model: Transaction  
[2026-08-01 18:26:46] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:26:46] local.INFO: ID present? YES  
[2026-08-01 18:26:46] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:46] local.INFO: ID empty? NO  
[2026-08-01 18:26:46] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:46] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:26:46, 2026-08-01 18:26:46))  
[2026-08-01 18:26:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:52] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:52] local.INFO: Model: Transaction  
[2026-08-01 18:26:52] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:26:52] local.INFO: ID present? YES  
[2026-08-01 18:26:52] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:52] local.INFO: ID empty? NO  
[2026-08-01 18:26:52] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:52] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:26:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:26:52, 2026-08-01 18:26:52))  
[2026-08-01 18:26:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:26:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:54] local.INFO: Model: Transaction  
[2026-08-01 18:26:54] local.INFO: Data received: {"id":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","type":"Buying","amount":160,"rate":127.5,"negotiated_rate":"0","amount_paid":20400,"amount_received":160,"narrative":null,"transaction_number":"TR-3625-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 18:25:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"43f77afc-e25d-4418-9d21-2d4a9d1864e5","cancellation_reason":null,"customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 18:25:39","updated_at":"2026-08-01 18:25:41"} 
[2026-08-01 18:26:54] local.INFO: ID present? YES  
[2026-08-01 18:26:54] local.INFO: ID value: d78cad5e-c465-487c-a061-47bc1f79743f  
[2026-08-01 18:26:54] local.INFO: ID empty? NO  
[2026-08-01 18:26:54] local.INFO: Attempting to find record with ID: d78cad5e-c465-487c-a061-47bc1f79743f  
[2026-08-01 18:26:54] local.INFO: Record not found, creating new with ID: d78cad5e-c465-487c-a061-47bc1f79743f  
[2026-08-01 18:26:54] local.INFO: Created record: {"id":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","type":"Buying","amount":160,"rate":127.5,"negotiated_rate":"0","amount_paid":20400,"amount_received":160,"narrative":null,"transaction_number":"TR-3625-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 18:25:41","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"43f77afc-e25d-4418-9d21-2d4a9d1864e5","cancellation_reason":null,"customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-01T15:26:54.000000Z","created_at":"2026-08-01T15:26:54.000000Z"} 
[2026-08-01 18:26:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:55] local.INFO: Model: Journal  
[2026-08-01 18:26:55] local.INFO: Data received: {"id":"17094ed3-e069-41d3-b518-dde9bb05d98b","type":"Debit","amount":"160.00","rate":"127.500000","lcy_amount":"20640.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d78cad5e-c465-487c-a061-47bc1f79743f","customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 18:25:41","updated_at":"2026-08-01 18:25:41"} 
[2026-08-01 18:26:55] local.INFO: ID present? YES  
[2026-08-01 18:26:55] local.INFO: ID value: 17094ed3-e069-41d3-b518-dde9bb05d98b  
[2026-08-01 18:26:55] local.INFO: ID empty? NO  
[2026-08-01 18:26:55] local.INFO: Attempting to find record with ID: 17094ed3-e069-41d3-b518-dde9bb05d98b  
[2026-08-01 18:26:55] local.INFO: Record not found, creating new with ID: 17094ed3-e069-41d3-b518-dde9bb05d98b  
[2026-08-01 18:26:55] local.INFO: Created record: {"id":"17094ed3-e069-41d3-b518-dde9bb05d98b","type":"Debit","amount":"160.00","rate":"127.500000","lcy_amount":"20640.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"d78cad5e-c465-487c-a061-47bc1f79743f","customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T15:26:55.000000Z","created_at":"2026-08-01T15:26:55.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":3060.0,"debit_total":80509.0,"credit_total":"77449.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T14:01:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:26:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:26:56] local.INFO: Model: Journal  
[2026-08-01 18:26:56] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:26:56] local.INFO: ID present? YES  
[2026-08-01 18:26:56] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:26:56] local.INFO: ID empty? NO  
[2026-08-01 18:26:56] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:26:56] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:26:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:26:56, 2026-08-01 18:26:56))  
[2026-08-01 18:26:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:02] local.INFO: Model: Journal  
[2026-08-01 18:27:02] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:27:02] local.INFO: ID present? YES  
[2026-08-01 18:27:02] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:02] local.INFO: ID empty? NO  
[2026-08-01 18:27:02] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:02] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:02, 2026-08-01 18:27:02))  
[2026-08-01 18:27:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:09] local.INFO: Model: Journal  
[2026-08-01 18:27:09] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:27:09] local.INFO: ID present? YES  
[2026-08-01 18:27:09] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:09] local.INFO: ID empty? NO  
[2026-08-01 18:27:09] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:09] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:09, 2026-08-01 18:27:09))  
[2026-08-01 18:27:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:15] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:15] local.INFO: Model: Journal  
[2026-08-01 18:27:15] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:27:15] local.INFO: ID present? YES  
[2026-08-01 18:27:15] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:15] local.INFO: ID empty? NO  
[2026-08-01 18:27:15] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:15] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:27:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:15, 2026-08-01 18:27:15))  
[2026-08-01 18:27:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:16] local.INFO: Model: Journal  
[2026-08-01 18:27:16] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:27:16] local.INFO: ID present? YES  
[2026-08-01 18:27:16] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:16] local.INFO: ID empty? NO  
[2026-08-01 18:27:16] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:16] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:16, 2026-08-01 18:27:16))  
[2026-08-01 18:27:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:23] local.INFO: Model: Journal  
[2026-08-01 18:27:23] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:27:23] local.INFO: ID present? YES  
[2026-08-01 18:27:23] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:23] local.INFO: ID empty? NO  
[2026-08-01 18:27:23] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:23] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:23, 2026-08-01 18:27:23))  
[2026-08-01 18:27:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:29] local.INFO: Model: Journal  
[2026-08-01 18:27:29] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:27:29] local.INFO: ID present? YES  
[2026-08-01 18:27:29] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:29] local.INFO: ID empty? NO  
[2026-08-01 18:27:29] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:29] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:29, 2026-08-01 18:27:29))  
[2026-08-01 18:27:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:35] local.INFO: Model: Journal  
[2026-08-01 18:27:35] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:27:35] local.INFO: ID present? YES  
[2026-08-01 18:27:35] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:35] local.INFO: ID empty? NO  
[2026-08-01 18:27:35] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:35] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:27:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:35, 2026-08-01 18:27:35))  
[2026-08-01 18:27:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:36] local.INFO: Model: Journal  
[2026-08-01 18:27:36] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:27:36] local.INFO: ID present? YES  
[2026-08-01 18:27:36] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:36] local.INFO: ID empty? NO  
[2026-08-01 18:27:36] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:36] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:36, 2026-08-01 18:27:36))  
[2026-08-01 18:27:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:43] local.INFO: Model: Journal  
[2026-08-01 18:27:43] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:27:43] local.INFO: ID present? YES  
[2026-08-01 18:27:43] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:43] local.INFO: ID empty? NO  
[2026-08-01 18:27:43] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:43] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:43, 2026-08-01 18:27:43))  
[2026-08-01 18:27:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:49] local.INFO: Model: Journal  
[2026-08-01 18:27:49] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:27:49] local.INFO: ID present? YES  
[2026-08-01 18:27:49] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:49] local.INFO: ID empty? NO  
[2026-08-01 18:27:49] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:49] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:49, 2026-08-01 18:27:49))  
[2026-08-01 18:27:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:55] local.INFO: Model: Journal  
[2026-08-01 18:27:55] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:27:55] local.INFO: ID present? YES  
[2026-08-01 18:27:55] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:55] local.INFO: ID empty? NO  
[2026-08-01 18:27:55] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:55] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:27:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:55, 2026-08-01 18:27:55))  
[2026-08-01 18:27:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:27:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:27:56] local.INFO: Model: Journal  
[2026-08-01 18:27:56] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:27:56] local.INFO: ID present? YES  
[2026-08-01 18:27:56] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:27:56] local.INFO: ID empty? NO  
[2026-08-01 18:27:56] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:27:56] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:27:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:27:56, 2026-08-01 18:27:56))  
[2026-08-01 18:27:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:02] local.INFO: Model: Journal  
[2026-08-01 18:28:02] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:28:02] local.INFO: ID present? YES  
[2026-08-01 18:28:02] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:02] local.INFO: ID empty? NO  
[2026-08-01 18:28:02] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:02] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:28:02, 2026-08-01 18:28:02))  
[2026-08-01 18:28:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:09] local.INFO: Model: Journal  
[2026-08-01 18:28:09] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:28:09] local.INFO: ID present? YES  
[2026-08-01 18:28:09] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:09] local.INFO: ID empty? NO  
[2026-08-01 18:28:09] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:09] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:28:09, 2026-08-01 18:28:09))  
[2026-08-01 18:28:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:15] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:15] local.INFO: Model: Journal  
[2026-08-01 18:28:15] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:28:15] local.INFO: ID present? YES  
[2026-08-01 18:28:15] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:15] local.INFO: ID empty? NO  
[2026-08-01 18:28:15] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:15] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:28:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:28:15, 2026-08-01 18:28:15))  
[2026-08-01 18:28:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:16] local.INFO: Model: Journal  
[2026-08-01 18:28:16] local.INFO: Data received: {"id":"8258eee2-7b84-400b-b5d7-328e7b0431dc","type":"Credit","amount":"20400.00","rate":"127.500000","lcy_amount":"20400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d78cad5e-c465-487c-a061-47bc1f79743f","customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:25:41","updated_at":"2026-08-01 18:25:41"} 
[2026-08-01 18:28:16] local.INFO: ID present? YES  
[2026-08-01 18:28:16] local.INFO: ID value: 8258eee2-7b84-400b-b5d7-328e7b0431dc  
[2026-08-01 18:28:16] local.INFO: ID empty? NO  
[2026-08-01 18:28:16] local.INFO: Attempting to find record with ID: 8258eee2-7b84-400b-b5d7-328e7b0431dc  
[2026-08-01 18:28:16] local.INFO: Record not found, creating new with ID: 8258eee2-7b84-400b-b5d7-328e7b0431dc  
[2026-08-01 18:28:16] local.INFO: Created record: {"id":"8258eee2-7b84-400b-b5d7-328e7b0431dc","type":"Credit","amount":"20400.00","rate":"127.500000","lcy_amount":"20400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"d78cad5e-c465-487c-a061-47bc1f79743f","customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:28:16.000000Z","created_at":"2026-08-01T15:28:16.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-77972.0,"debit_total":"21949595.10","credit_total":22027567.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T14:15:30.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:28:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:17] local.INFO: Model: Journal  
[2026-08-01 18:28:17] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:28:17] local.INFO: ID present? YES  
[2026-08-01 18:28:17] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:17] local.INFO: ID empty? NO  
[2026-08-01 18:28:17] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:17] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:28:17, 2026-08-01 18:28:17))  
[2026-08-01 18:28:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:24] local.INFO: Model: Journal  
[2026-08-01 18:28:24] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:28:24] local.INFO: ID present? YES  
[2026-08-01 18:28:24] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:24] local.INFO: ID empty? NO  
[2026-08-01 18:28:24] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:24] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:28:24, 2026-08-01 18:28:24))  
[2026-08-01 18:28:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:30] local.INFO: Model: Journal  
[2026-08-01 18:28:30] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:28:30] local.INFO: ID present? YES  
[2026-08-01 18:28:30] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:30] local.INFO: ID empty? NO  
[2026-08-01 18:28:30] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:30] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:28:30, 2026-08-01 18:28:30))  
[2026-08-01 18:28:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:36] local.INFO: Model: Journal  
[2026-08-01 18:28:36] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:28:36] local.INFO: ID present? YES  
[2026-08-01 18:28:36] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:36] local.INFO: ID empty? NO  
[2026-08-01 18:28:36] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:36] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:28:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:28:36, 2026-08-01 18:28:36))  
[2026-08-01 18:28:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:37] local.INFO: Model: Journal  
[2026-08-01 18:28:37] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:28:37] local.INFO: ID present? YES  
[2026-08-01 18:28:37] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:37] local.INFO: ID empty? NO  
[2026-08-01 18:28:37] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:37] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:28:37, 2026-08-01 18:28:37))  
[2026-08-01 18:28:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:44] local.INFO: Model: Journal  
[2026-08-01 18:28:44] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:28:44] local.INFO: ID present? YES  
[2026-08-01 18:28:44] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:44] local.INFO: ID empty? NO  
[2026-08-01 18:28:44] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:44] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:28:44, 2026-08-01 18:28:44))  
[2026-08-01 18:28:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:50] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:50] local.INFO: Model: Journal  
[2026-08-01 18:28:50] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:28:50] local.INFO: ID present? YES  
[2026-08-01 18:28:50] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:50] local.INFO: ID empty? NO  
[2026-08-01 18:28:50] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:50] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:28:50, 2026-08-01 18:28:50))  
[2026-08-01 18:28:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:56] local.INFO: Model: Journal  
[2026-08-01 18:28:56] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:28:56] local.INFO: ID present? YES  
[2026-08-01 18:28:56] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:56] local.INFO: ID empty? NO  
[2026-08-01 18:28:56] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:56] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:28:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:28:56, 2026-08-01 18:28:56))  
[2026-08-01 18:28:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:28:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:28:57] local.INFO: Model: Journal  
[2026-08-01 18:28:57] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:28:57] local.INFO: ID present? YES  
[2026-08-01 18:28:57] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:28:57] local.INFO: ID empty? NO  
[2026-08-01 18:28:57] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:28:57] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:28:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:28:57, 2026-08-01 18:28:57))  
[2026-08-01 18:28:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:04] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:04] local.INFO: Model: Journal  
[2026-08-01 18:29:04] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:29:04] local.INFO: ID present? YES  
[2026-08-01 18:29:04] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:04] local.INFO: ID empty? NO  
[2026-08-01 18:29:04] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:04] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:29:04, 2026-08-01 18:29:04))  
[2026-08-01 18:29:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:10] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:10] local.INFO: Model: Journal  
[2026-08-01 18:29:10] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:29:10] local.INFO: ID present? YES  
[2026-08-01 18:29:10] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:10] local.INFO: ID empty? NO  
[2026-08-01 18:29:10] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:10] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:29:10, 2026-08-01 18:29:10))  
[2026-08-01 18:29:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:16] local.INFO: Model: Journal  
[2026-08-01 18:29:16] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:29:16] local.INFO: ID present? YES  
[2026-08-01 18:29:16] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:16] local.INFO: ID empty? NO  
[2026-08-01 18:29:16] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:16] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:29:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:29:16, 2026-08-01 18:29:16))  
[2026-08-01 18:29:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:17] local.INFO: Model: Journal  
[2026-08-01 18:29:17] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:29:17] local.INFO: ID present? YES  
[2026-08-01 18:29:17] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:17] local.INFO: ID empty? NO  
[2026-08-01 18:29:17] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:17] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:29:17, 2026-08-01 18:29:17))  
[2026-08-01 18:29:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:24] local.INFO: Model: Journal  
[2026-08-01 18:29:24] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:29:24] local.INFO: ID present? YES  
[2026-08-01 18:29:24] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:24] local.INFO: ID empty? NO  
[2026-08-01 18:29:24] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:24] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:29:24, 2026-08-01 18:29:24))  
[2026-08-01 18:29:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:30] local.INFO: Model: Journal  
[2026-08-01 18:29:30] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:29:30] local.INFO: ID present? YES  
[2026-08-01 18:29:30] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:30] local.INFO: ID empty? NO  
[2026-08-01 18:29:30] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:30] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:29:30, 2026-08-01 18:29:30))  
[2026-08-01 18:29:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:36] local.INFO: Model: Journal  
[2026-08-01 18:29:36] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:29:36] local.INFO: ID present? YES  
[2026-08-01 18:29:36] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:36] local.INFO: ID empty? NO  
[2026-08-01 18:29:36] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:36] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:29:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:29:36, 2026-08-01 18:29:36))  
[2026-08-01 18:29:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:37] local.INFO: Model: Journal  
[2026-08-01 18:29:37] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:29:37] local.INFO: ID present? YES  
[2026-08-01 18:29:37] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:37] local.INFO: ID empty? NO  
[2026-08-01 18:29:37] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:37] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:29:37, 2026-08-01 18:29:37))  
[2026-08-01 18:29:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:44] local.INFO: Model: Journal  
[2026-08-01 18:29:44] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:29:44] local.INFO: ID present? YES  
[2026-08-01 18:29:44] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:44] local.INFO: ID empty? NO  
[2026-08-01 18:29:44] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:44] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:29:44, 2026-08-01 18:29:44))  
[2026-08-01 18:29:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:50] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:50] local.INFO: Model: Journal  
[2026-08-01 18:29:50] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:29:50] local.INFO: ID present? YES  
[2026-08-01 18:29:50] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:50] local.INFO: ID empty? NO  
[2026-08-01 18:29:50] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:50] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:29:50, 2026-08-01 18:29:50))  
[2026-08-01 18:29:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:56] local.INFO: Model: Journal  
[2026-08-01 18:29:56] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:29:56] local.INFO: ID present? YES  
[2026-08-01 18:29:56] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:56] local.INFO: ID empty? NO  
[2026-08-01 18:29:56] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:56] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:29:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:29:56, 2026-08-01 18:29:56))  
[2026-08-01 18:29:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:29:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:29:57] local.INFO: Model: Journal  
[2026-08-01 18:29:57] local.INFO: Data received: {"id":"fa2e1345-1462-4c38-80f2-62475570a7c0","type":"Credit","amount":"240.00","rate":"127.500000","lcy_amount":"240.000000","narrative":"Gain on TR-3625-2026","uniqid":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d78cad5e-c465-487c-a061-47bc1f79743f","customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:25:41","updated_at":"2026-08-01 18:25:41"} 
[2026-08-01 18:29:57] local.INFO: ID present? YES  
[2026-08-01 18:29:57] local.INFO: ID value: fa2e1345-1462-4c38-80f2-62475570a7c0  
[2026-08-01 18:29:57] local.INFO: ID empty? NO  
[2026-08-01 18:29:57] local.INFO: Attempting to find record with ID: fa2e1345-1462-4c38-80f2-62475570a7c0  
[2026-08-01 18:29:57] local.INFO: Record not found, creating new with ID: fa2e1345-1462-4c38-80f2-62475570a7c0  
[2026-08-01 18:29:57] local.INFO: Created record: {"id":"fa2e1345-1462-4c38-80f2-62475570a7c0","type":"Credit","amount":"240.00","rate":"127.500000","lcy_amount":"240.000000","narrative":"Gain on TR-3625-2026","uniqid":"d78cad5e-c465-487c-a061-47bc1f79743f","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"d78cad5e-c465-487c-a061-47bc1f79743f","customer_id":"74be2429-2f19-411a-a064-f2e18ebcdae8","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:29:57.000000Z","created_at":"2026-08-01T15:29:57.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-127824.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":135136.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T14:01:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 18:32:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:16] local.INFO: Model: Transaction  
[2026-08-01 18:32:16] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:32:16] local.INFO: ID present? YES  
[2026-08-01 18:32:16] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:16] local.INFO: ID empty? NO  
[2026-08-01 18:32:16] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:16] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:32:16, 2026-08-01 18:32:16))  
[2026-08-01 18:32:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:22] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:22] local.INFO: Model: Transaction  
[2026-08-01 18:32:22] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:32:22] local.INFO: ID present? YES  
[2026-08-01 18:32:22] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:22] local.INFO: ID empty? NO  
[2026-08-01 18:32:22] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:22] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:32:22, 2026-08-01 18:32:22))  
[2026-08-01 18:32:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:28] local.INFO: Model: Transaction  
[2026-08-01 18:32:28] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:32:28] local.INFO: ID present? YES  
[2026-08-01 18:32:28] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:28] local.INFO: ID empty? NO  
[2026-08-01 18:32:28] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:28] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:32:28, 2026-08-01 18:32:28))  
[2026-08-01 18:32:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:35] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:35] local.INFO: Model: Transaction  
[2026-08-01 18:32:35] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:32:35] local.INFO: ID present? YES  
[2026-08-01 18:32:35] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:35] local.INFO: ID empty? NO  
[2026-08-01 18:32:35] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:35] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:32:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:32:35, 2026-08-01 18:32:35))  
[2026-08-01 18:32:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:36] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:36] local.INFO: Model: Transaction  
[2026-08-01 18:32:36] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:32:36] local.INFO: ID present? YES  
[2026-08-01 18:32:36] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:36] local.INFO: ID empty? NO  
[2026-08-01 18:32:36] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:36] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:32:36, 2026-08-01 18:32:36))  
[2026-08-01 18:32:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:42] local.INFO: Model: Transaction  
[2026-08-01 18:32:42] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:32:42] local.INFO: ID present? YES  
[2026-08-01 18:32:42] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:42] local.INFO: ID empty? NO  
[2026-08-01 18:32:42] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:42] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:32:42, 2026-08-01 18:32:42))  
[2026-08-01 18:32:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:48] local.INFO: Model: Transaction  
[2026-08-01 18:32:48] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:32:48] local.INFO: ID present? YES  
[2026-08-01 18:32:48] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:48] local.INFO: ID empty? NO  
[2026-08-01 18:32:48] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:48] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:32:48, 2026-08-01 18:32:48))  
[2026-08-01 18:32:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:55] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:55] local.INFO: Model: Transaction  
[2026-08-01 18:32:55] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:32:55] local.INFO: ID present? YES  
[2026-08-01 18:32:55] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:55] local.INFO: ID empty? NO  
[2026-08-01 18:32:55] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:55] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:32:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:32:55, 2026-08-01 18:32:55))  
[2026-08-01 18:32:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:32:56] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:32:56] local.INFO: Model: Transaction  
[2026-08-01 18:32:56] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:32:56] local.INFO: ID present? YES  
[2026-08-01 18:32:56] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:32:56] local.INFO: ID empty? NO  
[2026-08-01 18:32:56] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:32:56] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:32:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:32:56, 2026-08-01 18:32:56))  
[2026-08-01 18:32:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:02] local.INFO: Model: Transaction  
[2026-08-01 18:33:02] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:33:02] local.INFO: ID present? YES  
[2026-08-01 18:33:02] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:02] local.INFO: ID empty? NO  
[2026-08-01 18:33:02] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:02] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:33:02, 2026-08-01 18:33:02))  
[2026-08-01 18:33:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:08] local.INFO: Model: Transaction  
[2026-08-01 18:33:08] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:33:08] local.INFO: ID present? YES  
[2026-08-01 18:33:08] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:08] local.INFO: ID empty? NO  
[2026-08-01 18:33:08] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:08] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:33:08, 2026-08-01 18:33:08))  
[2026-08-01 18:33:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:14] local.INFO: Model: Transaction  
[2026-08-01 18:33:14] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:33:14] local.INFO: ID present? YES  
[2026-08-01 18:33:14] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:14] local.INFO: ID empty? NO  
[2026-08-01 18:33:14] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:14] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:33:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:33:14, 2026-08-01 18:33:14))  
[2026-08-01 18:33:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:16] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:16] local.INFO: Model: Journal  
[2026-08-01 18:33:16] local.INFO: Data received: {"id":"09708708-d001-4794-93e3-f35555a5bf9e","type":"Credit","amount":"29446.00","rate":null,"lcy_amount":"29446.000000","narrative":"WU PAID OUT 01-08-2026","uniqid":"0c9b6f0d-4e2d-4921-bab0-0da66446477e","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:31:45","updated_at":"2026-08-01 18:31:47"} 
[2026-08-01 18:33:16] local.INFO: ID present? YES  
[2026-08-01 18:33:16] local.INFO: ID value: 09708708-d001-4794-93e3-f35555a5bf9e  
[2026-08-01 18:33:16] local.INFO: ID empty? NO  
[2026-08-01 18:33:16] local.INFO: Attempting to find record with ID: 09708708-d001-4794-93e3-f35555a5bf9e  
[2026-08-01 18:33:16] local.INFO: Record not found, creating new with ID: 09708708-d001-4794-93e3-f35555a5bf9e  
[2026-08-01 18:33:16] local.INFO: Created record: {"id":"09708708-d001-4794-93e3-f35555a5bf9e","type":"Credit","amount":"29446.00","rate":null,"lcy_amount":"29446.000000","narrative":"WU PAID OUT 01-08-2026","uniqid":"0c9b6f0d-4e2d-4921-bab0-0da66446477e","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:33:16.000000Z","created_at":"2026-08-01T15:33:16.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-107418.0,"debit_total":"21949595.10","credit_total":22057013.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:28:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:33:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:17] local.INFO: Model: Journal  
[2026-08-01 18:33:17] local.INFO: Data received: {"id":"1249753b-c70d-4469-aa26-71db2413645b","type":"Credit","amount":"50000.00","rate":null,"lcy_amount":"1500.000000","narrative":"UGX WITHDRAWAL","uniqid":"b64e5197-9178-436d-9de2-b8b662a86465","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"0e9b8288-aac5-44d9-8e60-1e2ba0c37fef","transaction_id":null,"customer_id":null,"currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","status":"Posted","created_at":"2026-08-01 18:29:04","updated_at":"2026-08-01 18:29:07"} 
[2026-08-01 18:33:17] local.INFO: ID present? YES  
[2026-08-01 18:33:17] local.INFO: ID value: 1249753b-c70d-4469-aa26-71db2413645b  
[2026-08-01 18:33:17] local.INFO: ID empty? NO  
[2026-08-01 18:33:17] local.INFO: Attempting to find record with ID: 1249753b-c70d-4469-aa26-71db2413645b  
[2026-08-01 18:33:17] local.INFO: Record not found, creating new with ID: 1249753b-c70d-4469-aa26-71db2413645b  
[2026-08-01 18:33:17] local.INFO: Created record: {"id":"1249753b-c70d-4469-aa26-71db2413645b","type":"Credit","amount":"50000.00","rate":null,"lcy_amount":"1500.000000","narrative":"UGX WITHDRAWAL","uniqid":"b64e5197-9178-436d-9de2-b8b662a86465","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"0e9b8288-aac5-44d9-8e60-1e2ba0c37fef","transaction_id":null,"customer_id":null,"currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","status":"Posted","updated_at":"2026-08-01T15:33:17.000000Z","created_at":"2026-08-01T15:33:17.000000Z","account":{"id":"0e9b8288-aac5-44d9-8e60-1e2ba0c37fef","name":"UGX-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-UGX-000002","is_fx_account":"1","balance":0.0,"debit_total":"140000.00","credit_total":140000.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"aacb4912-c0a6-40c3-9205-a41f9ef08e88","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T10:28:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:33:18] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:18] local.INFO: Model: Journal  
[2026-08-01 18:33:18] local.INFO: Data received: {"id":"12651fed-fa73-40a8-a5de-283940ed2da7","type":"Debit","amount":"29446.00","rate":null,"lcy_amount":"29446.000000","narrative":"WU PAID OUT 01-08-2026","uniqid":"0c9b6f0d-4e2d-4921-bab0-0da66446477e","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:31:45","updated_at":"2026-08-01 18:31:47"} 
[2026-08-01 18:33:18] local.INFO: ID present? YES  
[2026-08-01 18:33:18] local.INFO: ID value: 12651fed-fa73-40a8-a5de-283940ed2da7  
[2026-08-01 18:33:18] local.INFO: ID empty? NO  
[2026-08-01 18:33:18] local.INFO: Attempting to find record with ID: 12651fed-fa73-40a8-a5de-283940ed2da7  
[2026-08-01 18:33:18] local.INFO: Record not found, creating new with ID: 12651fed-fa73-40a8-a5de-283940ed2da7  
[2026-08-01 18:33:18] local.INFO: Created record: {"id":"12651fed-fa73-40a8-a5de-283940ed2da7","type":"Debit","amount":"29446.00","rate":null,"lcy_amount":"29446.000000","narrative":"WU PAID OUT 01-08-2026","uniqid":"0c9b6f0d-4e2d-4921-bab0-0da66446477e","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:33:18.000000Z","created_at":"2026-08-01T15:33:18.000000Z","account":{"id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","name":"Western Union - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000006","is_fx_account":null,"balance":1164076.0,"debit_total":1189676.0,"credit_total":"25600.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"a28afc38-859b-4f22-9bf4-1b0809adf602","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:24:54.000000Z","updated_at":"2026-07-31T15:48:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 18:33:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:20] local.INFO: Model: Journal  
[2026-08-01 18:33:20] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:33:20] local.INFO: ID present? YES  
[2026-08-01 18:33:20] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:20] local.INFO: ID empty? NO  
[2026-08-01 18:33:20] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:20] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:33:20, 2026-08-01 18:33:20))  
[2026-08-01 18:33:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:26] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:26] local.INFO: Model: Journal  
[2026-08-01 18:33:26] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:33:26] local.INFO: ID present? YES  
[2026-08-01 18:33:26] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:26] local.INFO: ID empty? NO  
[2026-08-01 18:33:26] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:26] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:33:26, 2026-08-01 18:33:26))  
[2026-08-01 18:33:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:32] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:32] local.INFO: Model: Journal  
[2026-08-01 18:33:32] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:33:32] local.INFO: ID present? YES  
[2026-08-01 18:33:32] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:32] local.INFO: ID empty? NO  
[2026-08-01 18:33:32] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:32] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:33:32, 2026-08-01 18:33:32))  
[2026-08-01 18:33:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:38] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:38] local.INFO: Model: Journal  
[2026-08-01 18:33:38] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:33:38] local.INFO: ID present? YES  
[2026-08-01 18:33:38] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:38] local.INFO: ID empty? NO  
[2026-08-01 18:33:38] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:38] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:33:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:33:38, 2026-08-01 18:33:38))  
[2026-08-01 18:33:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:39] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:39] local.INFO: Model: Journal  
[2026-08-01 18:33:39] local.INFO: Data received: {"id":"1e0d12e9-db6f-4da8-a1be-8e78971c2b8d","type":"Credit","amount":"3260.00","rate":null,"lcy_amount":"420540.000000","narrative":"USD WITHDRAWAL","uniqid":"8f539d84-511b-4d9f-89b6-867a125b781d","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 18:29:48","updated_at":"2026-08-01 18:29:50"} 
[2026-08-01 18:33:39] local.INFO: ID present? YES  
[2026-08-01 18:33:39] local.INFO: ID value: 1e0d12e9-db6f-4da8-a1be-8e78971c2b8d  
[2026-08-01 18:33:39] local.INFO: ID empty? NO  
[2026-08-01 18:33:39] local.INFO: Attempting to find record with ID: 1e0d12e9-db6f-4da8-a1be-8e78971c2b8d  
[2026-08-01 18:33:39] local.INFO: Record not found, creating new with ID: 1e0d12e9-db6f-4da8-a1be-8e78971c2b8d  
[2026-08-01 18:33:39] local.INFO: Created record: {"id":"1e0d12e9-db6f-4da8-a1be-8e78971c2b8d","type":"Credit","amount":"3260.00","rate":null,"lcy_amount":"420540.000000","narrative":"USD WITHDRAWAL","uniqid":"8f539d84-511b-4d9f-89b6-867a125b781d","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T15:33:39.000000Z","created_at":"2026-08-01T15:33:39.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":-200.0,"debit_total":"80509.00","credit_total":80709.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:26:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:33:41] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:41] local.INFO: Model: Journal  
[2026-08-01 18:33:41] local.INFO: Data received: {"id":"32c7d165-b19f-4113-b7b2-d7c7a3375caf","type":"Debit","amount":"3260.00","rate":null,"lcy_amount":"420540.000000","narrative":"USD WITHDRAWAL","uniqid":"8f539d84-511b-4d9f-89b6-867a125b781d","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 18:29:48","updated_at":"2026-08-01 18:29:50"} 
[2026-08-01 18:33:41] local.INFO: ID present? YES  
[2026-08-01 18:33:41] local.INFO: ID value: 32c7d165-b19f-4113-b7b2-d7c7a3375caf  
[2026-08-01 18:33:41] local.INFO: ID empty? NO  
[2026-08-01 18:33:41] local.INFO: Attempting to find record with ID: 32c7d165-b19f-4113-b7b2-d7c7a3375caf  
[2026-08-01 18:33:41] local.INFO: Record not found, creating new with ID: 32c7d165-b19f-4113-b7b2-d7c7a3375caf  
[2026-08-01 18:33:41] local.INFO: Created record: {"id":"32c7d165-b19f-4113-b7b2-d7c7a3375caf","type":"Debit","amount":"3260.00","rate":null,"lcy_amount":"420540.000000","narrative":"USD WITHDRAWAL","uniqid":"8f539d84-511b-4d9f-89b6-867a125b781d","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-01T15:33:41.000000Z","created_at":"2026-08-01T15:33:41.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":2997.11000000000012732925824820995330810546875,"debit_total":38469.0,"credit_total":"35471.89","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T16:02:37.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:33:42] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:42] local.INFO: Model: Journal  
[2026-08-01 18:33:42] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:33:42] local.INFO: ID present? YES  
[2026-08-01 18:33:42] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:42] local.INFO: ID empty? NO  
[2026-08-01 18:33:42] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:42] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:33:42, 2026-08-01 18:33:42))  
[2026-08-01 18:33:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:48] local.INFO: Model: Journal  
[2026-08-01 18:33:48] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:33:48] local.INFO: ID present? YES  
[2026-08-01 18:33:48] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:48] local.INFO: ID empty? NO  
[2026-08-01 18:33:48] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:48] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:33:48, 2026-08-01 18:33:48))  
[2026-08-01 18:33:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:33:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:33:54] local.INFO: Model: Journal  
[2026-08-01 18:33:54] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:33:54] local.INFO: ID present? YES  
[2026-08-01 18:33:54] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:54] local.INFO: ID empty? NO  
[2026-08-01 18:33:54] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:54] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:33:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:33:54, 2026-08-01 18:33:54))  
[2026-08-01 18:33:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:01] local.INFO: Model: Journal  
[2026-08-01 18:34:01] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:34:01] local.INFO: ID present? YES  
[2026-08-01 18:34:01] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:34:01] local.INFO: ID empty? NO  
[2026-08-01 18:34:01] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:34:01] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:34:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:01, 2026-08-01 18:34:01))  
[2026-08-01 18:34:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:02] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:02] local.INFO: Model: Journal  
[2026-08-01 18:34:02] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:34:02] local.INFO: ID present? YES  
[2026-08-01 18:34:02] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:02] local.INFO: ID empty? NO  
[2026-08-01 18:34:02] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:02] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:02, 2026-08-01 18:34:02))  
[2026-08-01 18:34:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:08] local.INFO: Model: Journal  
[2026-08-01 18:34:08] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:34:08] local.INFO: ID present? YES  
[2026-08-01 18:34:08] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:08] local.INFO: ID empty? NO  
[2026-08-01 18:34:08] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:08] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:08, 2026-08-01 18:34:08))  
[2026-08-01 18:34:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:14] local.INFO: Model: Journal  
[2026-08-01 18:34:14] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:34:14] local.INFO: ID present? YES  
[2026-08-01 18:34:14] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:14] local.INFO: ID empty? NO  
[2026-08-01 18:34:14] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:14] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:14, 2026-08-01 18:34:14))  
[2026-08-01 18:34:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:21] local.INFO: Model: Journal  
[2026-08-01 18:34:21] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:34:21] local.INFO: ID present? YES  
[2026-08-01 18:34:21] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:21] local.INFO: ID empty? NO  
[2026-08-01 18:34:21] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:21] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:34:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:21, 2026-08-01 18:34:21))  
[2026-08-01 18:34:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:22] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:22] local.INFO: Model: Journal  
[2026-08-01 18:34:22] local.INFO: Data received: {"id":"581ae4a2-f02f-4ace-8aed-fbf553b0e3e9","type":"Debit","amount":"50000.00","rate":null,"lcy_amount":"1500.000000","narrative":"UGX WITHDRAWAL","uniqid":"b64e5197-9178-436d-9de2-b8b662a86465","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"40268111-759c-4470-a1b2-2a3e1851a1a9","transaction_id":null,"customer_id":null,"currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","status":"Posted","created_at":"2026-08-01 18:29:04","updated_at":"2026-08-01 18:29:07"} 
[2026-08-01 18:34:22] local.INFO: ID present? YES  
[2026-08-01 18:34:22] local.INFO: ID value: 581ae4a2-f02f-4ace-8aed-fbf553b0e3e9  
[2026-08-01 18:34:22] local.INFO: ID empty? NO  
[2026-08-01 18:34:22] local.INFO: Attempting to find record with ID: 581ae4a2-f02f-4ace-8aed-fbf553b0e3e9  
[2026-08-01 18:34:22] local.INFO: Record not found, creating new with ID: 581ae4a2-f02f-4ace-8aed-fbf553b0e3e9  
[2026-08-01 18:34:22] local.INFO: Created record: {"id":"581ae4a2-f02f-4ace-8aed-fbf553b0e3e9","type":"Debit","amount":"50000.00","rate":null,"lcy_amount":"1500.000000","narrative":"UGX WITHDRAWAL","uniqid":"b64e5197-9178-436d-9de2-b8b662a86465","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"40268111-759c-4470-a1b2-2a3e1851a1a9","transaction_id":null,"customer_id":null,"currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","status":"Posted","updated_at":"2026-08-01T15:34:22.000000Z","created_at":"2026-08-01T15:34:22.000000Z","account":{"id":"40268111-759c-4470-a1b2-2a3e1851a1a9","name":"UGX-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-UGX-000001","is_fx_account":"1","balance":140000.0,"debit_total":140000.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"aacb4912-c0a6-40c3-9205-a41f9ef08e88","teller_id":null,"customer_id":null,"currency_id":"b2ade8f7-764f-40c1-978e-c50cc3f0bf44","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-23T22:23:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:34:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:23] local.INFO: Model: Journal  
[2026-08-01 18:34:23] local.INFO: Data received: {"id":"6e5ae2f7-3bf9-403a-8aa9-51d2f05977e4","type":"Credit","amount":"48303.00","rate":null,"lcy_amount":"48303.000000","narrative":"WU SENT 01-08-2026","uniqid":"a486af9a-9ee4-404b-a5b1-b64a03fc3870","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:31:17","updated_at":"2026-08-01 18:31:19"} 
[2026-08-01 18:34:23] local.INFO: ID present? YES  
[2026-08-01 18:34:23] local.INFO: ID value: 6e5ae2f7-3bf9-403a-8aa9-51d2f05977e4  
[2026-08-01 18:34:23] local.INFO: ID empty? NO  
[2026-08-01 18:34:23] local.INFO: Attempting to find record with ID: 6e5ae2f7-3bf9-403a-8aa9-51d2f05977e4  
[2026-08-01 18:34:23] local.INFO: Record not found, creating new with ID: 6e5ae2f7-3bf9-403a-8aa9-51d2f05977e4  
[2026-08-01 18:34:23] local.INFO: Created record: {"id":"6e5ae2f7-3bf9-403a-8aa9-51d2f05977e4","type":"Credit","amount":"48303.00","rate":null,"lcy_amount":"48303.000000","narrative":"WU SENT 01-08-2026","uniqid":"a486af9a-9ee4-404b-a5b1-b64a03fc3870","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:34:23.000000Z","created_at":"2026-08-01T15:34:23.000000Z","account":{"id":"4487e0b0-533e-4ec4-a541-3d18b81bdb9d","name":"Western Union - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000006","is_fx_account":null,"balance":1115773.0,"debit_total":"1189676.00","credit_total":73903.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"a28afc38-859b-4f22-9bf4-1b0809adf602","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:24:54.000000Z","updated_at":"2026-08-01T15:33:18.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 18:34:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:24] local.INFO: Model: Journal  
[2026-08-01 18:34:24] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:34:24] local.INFO: ID present? YES  
[2026-08-01 18:34:24] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:24] local.INFO: ID empty? NO  
[2026-08-01 18:34:24] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:24] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:24, 2026-08-01 18:34:24))  
[2026-08-01 18:34:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:31] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:31] local.INFO: Model: Journal  
[2026-08-01 18:34:31] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:34:31] local.INFO: ID present? YES  
[2026-08-01 18:34:31] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:31] local.INFO: ID empty? NO  
[2026-08-01 18:34:31] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:31] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:31, 2026-08-01 18:34:31))  
[2026-08-01 18:34:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:37] local.INFO: Model: Journal  
[2026-08-01 18:34:37] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:34:37] local.INFO: ID present? YES  
[2026-08-01 18:34:37] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:37] local.INFO: ID empty? NO  
[2026-08-01 18:34:37] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:37] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:37, 2026-08-01 18:34:37))  
[2026-08-01 18:34:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:43] local.INFO: Model: Journal  
[2026-08-01 18:34:43] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:34:43] local.INFO: ID present? YES  
[2026-08-01 18:34:43] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:43] local.INFO: ID empty? NO  
[2026-08-01 18:34:43] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:43] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:34:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:34:43, 2026-08-01 18:34:43))  
[2026-08-01 18:34:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:44] local.INFO: Model: Journal  
[2026-08-01 18:34:44] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:34:44] local.INFO: ID present? YES  
[2026-08-01 18:34:44] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:44] local.INFO: ID empty? NO  
[2026-08-01 18:34:44] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:44] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:34:44, 2026-08-01 18:34:44))  
[2026-08-01 18:34:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:50] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:50] local.INFO: Model: Journal  
[2026-08-01 18:34:50] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:34:50] local.INFO: ID present? YES  
[2026-08-01 18:34:50] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:50] local.INFO: ID empty? NO  
[2026-08-01 18:34:50] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:50] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:34:50, 2026-08-01 18:34:50))  
[2026-08-01 18:34:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:34:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:34:57] local.INFO: Model: Journal  
[2026-08-01 18:34:57] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:34:57] local.INFO: ID present? YES  
[2026-08-01 18:34:57] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:57] local.INFO: ID empty? NO  
[2026-08-01 18:34:57] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:57] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:34:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:34:57, 2026-08-01 18:34:57))  
[2026-08-01 18:34:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:03] local.INFO: Model: Journal  
[2026-08-01 18:35:03] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:03] local.INFO: ID present? YES  
[2026-08-01 18:35:03] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:35:03] local.INFO: ID empty? NO  
[2026-08-01 18:35:03] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:35:03] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:35:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:35:03, 2026-08-01 18:35:03))  
[2026-08-01 18:35:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:04] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:04] local.INFO: Model: Journal  
[2026-08-01 18:35:04] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:35:04] local.INFO: ID present? YES  
[2026-08-01 18:35:04] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:04] local.INFO: ID empty? NO  
[2026-08-01 18:35:04] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:04] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:35:04, 2026-08-01 18:35:04))  
[2026-08-01 18:35:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:10] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:10] local.INFO: Model: Journal  
[2026-08-01 18:35:10] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:35:10] local.INFO: ID present? YES  
[2026-08-01 18:35:10] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:10] local.INFO: ID empty? NO  
[2026-08-01 18:35:10] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:10] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:35:10, 2026-08-01 18:35:10))  
[2026-08-01 18:35:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:17] local.INFO: Model: Journal  
[2026-08-01 18:35:17] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:35:17] local.INFO: ID present? YES  
[2026-08-01 18:35:17] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:17] local.INFO: ID empty? NO  
[2026-08-01 18:35:17] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:17] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:35:17, 2026-08-01 18:35:17))  
[2026-08-01 18:35:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:23] local.INFO: Model: Journal  
[2026-08-01 18:35:23] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:35:23] local.INFO: ID present? YES  
[2026-08-01 18:35:23] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:23] local.INFO: ID empty? NO  
[2026-08-01 18:35:23] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:23] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:35:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:35:23, 2026-08-01 18:35:23))  
[2026-08-01 18:35:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:24] local.INFO: Model: Journal  
[2026-08-01 18:35:24] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:24] local.INFO: ID present? YES  
[2026-08-01 18:35:24] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:24] local.INFO: ID empty? NO  
[2026-08-01 18:35:24] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:24] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:35:24, 2026-08-01 18:35:24))  
[2026-08-01 18:35:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:30] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:30] local.INFO: Model: Journal  
[2026-08-01 18:35:30] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:30] local.INFO: ID present? YES  
[2026-08-01 18:35:30] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:30] local.INFO: ID empty? NO  
[2026-08-01 18:35:30] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:30] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:35:30, 2026-08-01 18:35:30))  
[2026-08-01 18:35:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:37] local.INFO: Model: Journal  
[2026-08-01 18:35:37] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:37] local.INFO: ID present? YES  
[2026-08-01 18:35:37] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:37] local.INFO: ID empty? NO  
[2026-08-01 18:35:37] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:37] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:35:37, 2026-08-01 18:35:37))  
[2026-08-01 18:35:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:43] local.INFO: Model: Journal  
[2026-08-01 18:35:43] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:43] local.INFO: ID present? YES  
[2026-08-01 18:35:43] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:43] local.INFO: ID empty? NO  
[2026-08-01 18:35:43] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:43] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:35:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:35:43, 2026-08-01 18:35:43))  
[2026-08-01 18:35:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:44] local.INFO: Model: Journal  
[2026-08-01 18:35:44] local.INFO: Data received: {"id":"b828a383-9e78-4e9f-bb5d-e64aafecc37e","type":"Debit","amount":"1115.00","rate":null,"lcy_amount":"168588.000000","narrative":"EUR WITHDRAWAL","uniqid":"09623658-1de0-4aaa-9a2d-19d13641478a","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-01 18:29:27","updated_at":"2026-08-01 18:29:29"} 
[2026-08-01 18:35:44] local.INFO: ID present? YES  
[2026-08-01 18:35:44] local.INFO: ID value: b828a383-9e78-4e9f-bb5d-e64aafecc37e  
[2026-08-01 18:35:44] local.INFO: ID empty? NO  
[2026-08-01 18:35:44] local.INFO: Attempting to find record with ID: b828a383-9e78-4e9f-bb5d-e64aafecc37e  
[2026-08-01 18:35:44] local.INFO: Record not found, creating new with ID: b828a383-9e78-4e9f-bb5d-e64aafecc37e  
[2026-08-01 18:35:44] local.INFO: Created record: {"id":"b828a383-9e78-4e9f-bb5d-e64aafecc37e","type":"Debit","amount":"1115.00","rate":null,"lcy_amount":"168588.000000","narrative":"EUR WITHDRAWAL","uniqid":"09623658-1de0-4aaa-9a2d-19d13641478a","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-01T15:35:44.000000Z","created_at":"2026-08-01T15:35:44.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":7135.0,"debit_total":17520.0,"credit_total":"10385.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T16:01:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:35:45] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:45] local.INFO: Model: Journal  
[2026-08-01 18:35:45] local.INFO: Data received: {"id":"dee6fb3b-c619-43f2-8069-0151e4d943fd","type":"Credit","amount":"1115.00","rate":null,"lcy_amount":"168588.000000","narrative":"EUR WITHDRAWAL","uniqid":"09623658-1de0-4aaa-9a2d-19d13641478a","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-01 18:29:27","updated_at":"2026-08-01 18:29:29"} 
[2026-08-01 18:35:45] local.INFO: ID present? YES  
[2026-08-01 18:35:45] local.INFO: ID value: dee6fb3b-c619-43f2-8069-0151e4d943fd  
[2026-08-01 18:35:45] local.INFO: ID empty? NO  
[2026-08-01 18:35:45] local.INFO: Attempting to find record with ID: dee6fb3b-c619-43f2-8069-0151e4d943fd  
[2026-08-01 18:35:45] local.INFO: Record not found, creating new with ID: dee6fb3b-c619-43f2-8069-0151e4d943fd  
[2026-08-01 18:35:45] local.INFO: Created record: {"id":"dee6fb3b-c619-43f2-8069-0151e4d943fd","type":"Credit","amount":"1115.00","rate":null,"lcy_amount":"168588.000000","narrative":"EUR WITHDRAWAL","uniqid":"09623658-1de0-4aaa-9a2d-19d13641478a","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-01T15:35:45.000000Z","created_at":"2026-08-01T15:35:45.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":0.0,"debit_total":"23905.00","credit_total":23905.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T14:02:38.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:35:47] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:47] local.INFO: Model: Journal  
[2026-08-01 18:35:47] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:47] local.INFO: ID present? YES  
[2026-08-01 18:35:47] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:47] local.INFO: ID empty? NO  
[2026-08-01 18:35:47] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:47] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:35:47, 2026-08-01 18:35:47))  
[2026-08-01 18:35:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:53] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:53] local.INFO: Model: Journal  
[2026-08-01 18:35:53] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:53] local.INFO: ID present? YES  
[2026-08-01 18:35:53] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:53] local.INFO: ID empty? NO  
[2026-08-01 18:35:53] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:53] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:35:53, 2026-08-01 18:35:53))  
[2026-08-01 18:35:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:35:59] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:35:59] local.INFO: Model: Journal  
[2026-08-01 18:35:59] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:35:59] local.INFO: ID present? YES  
[2026-08-01 18:35:59] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:59] local.INFO: ID empty? NO  
[2026-08-01 18:35:59] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:59] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:35:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:35:59, 2026-08-01 18:35:59))  
[2026-08-01 18:35:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:36:05] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:36:05] local.INFO: Model: Journal  
[2026-08-01 18:36:05] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:36:05] local.INFO: ID present? YES  
[2026-08-01 18:36:05] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:36:05] local.INFO: ID empty? NO  
[2026-08-01 18:36:05] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:36:05] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:36:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:36:05, 2026-08-01 18:36:05))  
[2026-08-01 18:36:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:36:07] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:36:07] local.INFO: Model: Journal  
[2026-08-01 18:36:07] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:36:07] local.INFO: ID present? YES  
[2026-08-01 18:36:07] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:07] local.INFO: ID empty? NO  
[2026-08-01 18:36:07] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:07] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:36:07, 2026-08-01 18:36:07))  
[2026-08-01 18:36:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:36:13] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:36:13] local.INFO: Model: Journal  
[2026-08-01 18:36:13] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:36:13] local.INFO: ID present? YES  
[2026-08-01 18:36:13] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:13] local.INFO: ID empty? NO  
[2026-08-01 18:36:13] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:13] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:36:13, 2026-08-01 18:36:13))  
[2026-08-01 18:36:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:36:19] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:36:19] local.INFO: Model: Journal  
[2026-08-01 18:36:19] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:36:19] local.INFO: ID present? YES  
[2026-08-01 18:36:19] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:19] local.INFO: ID empty? NO  
[2026-08-01 18:36:19] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:19] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:36:19, 2026-08-01 18:36:19))  
[2026-08-01 18:36:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:36:25] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:36:25] local.INFO: Model: Journal  
[2026-08-01 18:36:25] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:36:25] local.INFO: ID present? YES  
[2026-08-01 18:36:25] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:25] local.INFO: ID empty? NO  
[2026-08-01 18:36:25] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:25] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:36:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:36:25, 2026-08-01 18:36:25))  
[2026-08-01 18:36:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:36:27] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:36:27] local.INFO: Model: Journal  
[2026-08-01 18:36:27] local.INFO: Data received: {"id":"fddad380-903a-4d2e-ba1b-7473f4a63c20","type":"Debit","amount":"48303.00","rate":null,"lcy_amount":"48303.000000","narrative":"WU SENT 01-08-2026","uniqid":"a486af9a-9ee4-404b-a5b1-b64a03fc3870","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:31:17","updated_at":"2026-08-01 18:31:19"} 
[2026-08-01 18:36:27] local.INFO: ID present? YES  
[2026-08-01 18:36:27] local.INFO: ID value: fddad380-903a-4d2e-ba1b-7473f4a63c20  
[2026-08-01 18:36:27] local.INFO: ID empty? NO  
[2026-08-01 18:36:27] local.INFO: Attempting to find record with ID: fddad380-903a-4d2e-ba1b-7473f4a63c20  
[2026-08-01 18:36:27] local.INFO: Record not found, creating new with ID: fddad380-903a-4d2e-ba1b-7473f4a63c20  
[2026-08-01 18:36:27] local.INFO: Created record: {"id":"fddad380-903a-4d2e-ba1b-7473f4a63c20","type":"Debit","amount":"48303.00","rate":null,"lcy_amount":"48303.000000","narrative":"WU SENT 01-08-2026","uniqid":"a486af9a-9ee4-404b-a5b1-b64a03fc3870","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:36:27.000000Z","created_at":"2026-08-01T15:36:27.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-59115.0,"debit_total":21997898.100000001490116119384765625,"credit_total":"22057013.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:33:16.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:51:04] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:04] local.INFO: Model: Transaction  
[2026-08-01 18:51:04] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:51:04] local.INFO: ID present? YES  
[2026-08-01 18:51:04] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:04] local.INFO: ID empty? NO  
[2026-08-01 18:51:04] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:04] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:51:04, 2026-08-01 18:51:04))  
[2026-08-01 18:51:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:11] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:11] local.INFO: Model: Transaction  
[2026-08-01 18:51:11] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:51:11] local.INFO: ID present? YES  
[2026-08-01 18:51:11] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:11] local.INFO: ID empty? NO  
[2026-08-01 18:51:11] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:11] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:51:11, 2026-08-01 18:51:11))  
[2026-08-01 18:51:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:17] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:17] local.INFO: Model: Transaction  
[2026-08-01 18:51:17] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:51:17] local.INFO: ID present? YES  
[2026-08-01 18:51:17] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:17] local.INFO: ID empty? NO  
[2026-08-01 18:51:17] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:17] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:51:17, 2026-08-01 18:51:17))  
[2026-08-01 18:51:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:23] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:23] local.INFO: Model: Transaction  
[2026-08-01 18:51:23] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:51:23] local.INFO: ID present? YES  
[2026-08-01 18:51:23] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:23] local.INFO: ID empty? NO  
[2026-08-01 18:51:23] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:23] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-01 18:51:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-01 18:51:23, 2026-08-01 18:51:23))  
[2026-08-01 18:51:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:24] local.INFO: Model: Transaction  
[2026-08-01 18:51:24] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:51:24] local.INFO: ID present? YES  
[2026-08-01 18:51:24] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:24] local.INFO: ID empty? NO  
[2026-08-01 18:51:24] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:24] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:51:24, 2026-08-01 18:51:24))  
[2026-08-01 18:51:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:31] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:31] local.INFO: Model: Transaction  
[2026-08-01 18:51:31] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:51:31] local.INFO: ID present? YES  
[2026-08-01 18:51:31] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:31] local.INFO: ID empty? NO  
[2026-08-01 18:51:31] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:31] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:51:31, 2026-08-01 18:51:31))  
[2026-08-01 18:51:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:37] local.INFO: Model: Transaction  
[2026-08-01 18:51:37] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:51:37] local.INFO: ID present? YES  
[2026-08-01 18:51:37] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:37] local.INFO: ID empty? NO  
[2026-08-01 18:51:37] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:37] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:51:37, 2026-08-01 18:51:37))  
[2026-08-01 18:51:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:43] local.INFO: Model: Transaction  
[2026-08-01 18:51:43] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:51:43] local.INFO: ID present? YES  
[2026-08-01 18:51:43] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:43] local.INFO: ID empty? NO  
[2026-08-01 18:51:43] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:43] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-01 18:51:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-01 18:51:43, 2026-08-01 18:51:43))  
[2026-08-01 18:51:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:44] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:44] local.INFO: Model: Transaction  
[2026-08-01 18:51:44] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:51:44] local.INFO: ID present? YES  
[2026-08-01 18:51:44] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:44] local.INFO: ID empty? NO  
[2026-08-01 18:51:44] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:44] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:51:44, 2026-08-01 18:51:44))  
[2026-08-01 18:51:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:51] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:51] local.INFO: Model: Transaction  
[2026-08-01 18:51:51] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:51:51] local.INFO: ID present? YES  
[2026-08-01 18:51:51] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:51] local.INFO: ID empty? NO  
[2026-08-01 18:51:51] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:51] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:51:51, 2026-08-01 18:51:51))  
[2026-08-01 18:51:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:51:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:51:57] local.INFO: Model: Transaction  
[2026-08-01 18:51:57] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:51:57] local.INFO: ID present? YES  
[2026-08-01 18:51:57] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:57] local.INFO: ID empty? NO  
[2026-08-01 18:51:57] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:57] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:51:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:51:57, 2026-08-01 18:51:57))  
[2026-08-01 18:51:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:04] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:04] local.INFO: Model: Transaction  
[2026-08-01 18:52:04] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:52:04] local.INFO: ID present? YES  
[2026-08-01 18:52:04] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:52:04] local.INFO: ID empty? NO  
[2026-08-01 18:52:04] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:52:04] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-01 18:52:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-01 18:52:04, 2026-08-01 18:52:04))  
[2026-08-01 18:52:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:05] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:05] local.INFO: Model: Journal  
[2026-08-01 18:52:05] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:52:05] local.INFO: ID present? YES  
[2026-08-01 18:52:05] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:05] local.INFO: ID empty? NO  
[2026-08-01 18:52:05] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:05] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:05, 2026-08-01 18:52:05))  
[2026-08-01 18:52:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:12] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:12] local.INFO: Model: Journal  
[2026-08-01 18:52:12] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:52:12] local.INFO: ID present? YES  
[2026-08-01 18:52:12] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:12] local.INFO: ID empty? NO  
[2026-08-01 18:52:12] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:12] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:12, 2026-08-01 18:52:12))  
[2026-08-01 18:52:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:18] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:18] local.INFO: Model: Journal  
[2026-08-01 18:52:18] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:52:18] local.INFO: ID present? YES  
[2026-08-01 18:52:18] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:18] local.INFO: ID empty? NO  
[2026-08-01 18:52:18] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:18] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:18, 2026-08-01 18:52:18))  
[2026-08-01 18:52:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:24] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:24] local.INFO: Model: Journal  
[2026-08-01 18:52:24] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:52:24] local.INFO: ID present? YES  
[2026-08-01 18:52:24] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:24] local.INFO: ID empty? NO  
[2026-08-01 18:52:24] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:24] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-01 18:52:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:24, 2026-08-01 18:52:24))  
[2026-08-01 18:52:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:25] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:25] local.INFO: Model: Journal  
[2026-08-01 18:52:25] local.INFO: Data received: {"id":"22202015-e952-4078-babe-d76c9e805132","type":"Debit","amount":"51303.00","rate":null,"lcy_amount":"51303.000000","narrative":"MPESA WITHDRAWAL 01-08-2026","uniqid":"d7555375-0c00-488f-acca-8ab95afbd34c","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:50:17","updated_at":"2026-08-01 18:50:19"} 
[2026-08-01 18:52:25] local.INFO: ID present? YES  
[2026-08-01 18:52:25] local.INFO: ID value: 22202015-e952-4078-babe-d76c9e805132  
[2026-08-01 18:52:25] local.INFO: ID empty? NO  
[2026-08-01 18:52:25] local.INFO: Attempting to find record with ID: 22202015-e952-4078-babe-d76c9e805132  
[2026-08-01 18:52:25] local.INFO: Record not found, creating new with ID: 22202015-e952-4078-babe-d76c9e805132  
[2026-08-01 18:52:25] local.INFO: Created record: {"id":"22202015-e952-4078-babe-d76c9e805132","type":"Debit","amount":"51303.00","rate":null,"lcy_amount":"51303.000000","narrative":"MPESA WITHDRAWAL 01-08-2026","uniqid":"d7555375-0c00-488f-acca-8ab95afbd34c","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:52:25.000000Z","created_at":"2026-08-01T15:52:25.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2220843.0,"debit_total":4621343.0,"credit_total":"6842186.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-07-31T15:48:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 18:52:27] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:27] local.INFO: Model: Journal  
[2026-08-01 18:52:27] local.INFO: Data received: {"id":"3129ce38-9e98-467b-9087-2c596733f72f","type":"Credit","amount":"174746.00","rate":null,"lcy_amount":"174746.000000","narrative":"MPESA DEPOSIT 01-08-2026","uniqid":"f48466c4-0e88-4e16-a179-b96397dea080","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:50:52","updated_at":"2026-08-01 18:50:53"} 
[2026-08-01 18:52:27] local.INFO: ID present? YES  
[2026-08-01 18:52:27] local.INFO: ID value: 3129ce38-9e98-467b-9087-2c596733f72f  
[2026-08-01 18:52:27] local.INFO: ID empty? NO  
[2026-08-01 18:52:27] local.INFO: Attempting to find record with ID: 3129ce38-9e98-467b-9087-2c596733f72f  
[2026-08-01 18:52:27] local.INFO: Record not found, creating new with ID: 3129ce38-9e98-467b-9087-2c596733f72f  
[2026-08-01 18:52:27] local.INFO: Created record: {"id":"3129ce38-9e98-467b-9087-2c596733f72f","type":"Credit","amount":"174746.00","rate":null,"lcy_amount":"174746.000000","narrative":"MPESA DEPOSIT 01-08-2026","uniqid":"f48466c4-0e88-4e16-a179-b96397dea080","date":"2026-08-01","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:52:27.000000Z","created_at":"2026-08-01T15:52:27.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2395589.0,"debit_total":"4621343.00","credit_total":7016932.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-08-01T15:52:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-01 18:52:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:28] local.INFO: Model: Journal  
[2026-08-01 18:52:28] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:52:28] local.INFO: ID present? YES  
[2026-08-01 18:52:28] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:28] local.INFO: ID empty? NO  
[2026-08-01 18:52:28] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:28] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:28, 2026-08-01 18:52:28))  
[2026-08-01 18:52:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:34] local.INFO: Model: Journal  
[2026-08-01 18:52:34] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:52:34] local.INFO: ID present? YES  
[2026-08-01 18:52:34] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:34] local.INFO: ID empty? NO  
[2026-08-01 18:52:34] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:34] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:34, 2026-08-01 18:52:34))  
[2026-08-01 18:52:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:40] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:40] local.INFO: Model: Journal  
[2026-08-01 18:52:40] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:52:40] local.INFO: ID present? YES  
[2026-08-01 18:52:40] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:40] local.INFO: ID empty? NO  
[2026-08-01 18:52:40] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:40] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:40, 2026-08-01 18:52:40))  
[2026-08-01 18:52:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:46] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:46] local.INFO: Model: Journal  
[2026-08-01 18:52:46] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:52:46] local.INFO: ID present? YES  
[2026-08-01 18:52:46] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:46] local.INFO: ID empty? NO  
[2026-08-01 18:52:46] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:46] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-01 18:52:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:46, 2026-08-01 18:52:46))  
[2026-08-01 18:52:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:48] local.INFO: Model: Journal  
[2026-08-01 18:52:48] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:52:48] local.INFO: ID present? YES  
[2026-08-01 18:52:48] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:52:48] local.INFO: ID empty? NO  
[2026-08-01 18:52:48] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:52:48] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:52:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:48, 2026-08-01 18:52:48))  
[2026-08-01 18:52:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:52:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:52:54] local.INFO: Model: Journal  
[2026-08-01 18:52:54] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:52:54] local.INFO: ID present? YES  
[2026-08-01 18:52:54] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:52:54] local.INFO: ID empty? NO  
[2026-08-01 18:52:54] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:52:54] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:52:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:52:54, 2026-08-01 18:52:54))  
[2026-08-01 18:52:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:00] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:00] local.INFO: Model: Journal  
[2026-08-01 18:53:00] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:53:00] local.INFO: ID present? YES  
[2026-08-01 18:53:00] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:53:00] local.INFO: ID empty? NO  
[2026-08-01 18:53:00] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:53:00] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:53:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:53:00, 2026-08-01 18:53:00))  
[2026-08-01 18:53:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:06] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:06] local.INFO: Model: Journal  
[2026-08-01 18:53:06] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:53:06] local.INFO: ID present? YES  
[2026-08-01 18:53:06] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:53:06] local.INFO: ID empty? NO  
[2026-08-01 18:53:06] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:53:06] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-01 18:53:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:53:06, 2026-08-01 18:53:06))  
[2026-08-01 18:53:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:08] local.INFO: Model: Journal  
[2026-08-01 18:53:08] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:53:08] local.INFO: ID present? YES  
[2026-08-01 18:53:08] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:08] local.INFO: ID empty? NO  
[2026-08-01 18:53:08] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:08] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:53:08, 2026-08-01 18:53:08))  
[2026-08-01 18:53:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:14] local.INFO: Model: Journal  
[2026-08-01 18:53:14] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:53:14] local.INFO: ID present? YES  
[2026-08-01 18:53:14] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:14] local.INFO: ID empty? NO  
[2026-08-01 18:53:14] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:14] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:53:14, 2026-08-01 18:53:14))  
[2026-08-01 18:53:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:20] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:20] local.INFO: Model: Journal  
[2026-08-01 18:53:20] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:53:20] local.INFO: ID present? YES  
[2026-08-01 18:53:20] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:20] local.INFO: ID empty? NO  
[2026-08-01 18:53:20] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:20] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:53:20, 2026-08-01 18:53:20))  
[2026-08-01 18:53:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:27] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:27] local.INFO: Model: Journal  
[2026-08-01 18:53:27] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:53:27] local.INFO: ID present? YES  
[2026-08-01 18:53:27] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:27] local.INFO: ID empty? NO  
[2026-08-01 18:53:27] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:27] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-01 18:53:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:53:27, 2026-08-01 18:53:27))  
[2026-08-01 18:53:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:28] local.INFO: Model: Journal  
[2026-08-01 18:53:28] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:53:28] local.INFO: ID present? YES  
[2026-08-01 18:53:28] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:28] local.INFO: ID empty? NO  
[2026-08-01 18:53:28] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:28] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:53:28, 2026-08-01 18:53:28))  
[2026-08-01 18:53:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:34] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:34] local.INFO: Model: Journal  
[2026-08-01 18:53:34] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:53:34] local.INFO: ID present? YES  
[2026-08-01 18:53:34] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:34] local.INFO: ID empty? NO  
[2026-08-01 18:53:34] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:34] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:53:34, 2026-08-01 18:53:34))  
[2026-08-01 18:53:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:41] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:41] local.INFO: Model: Journal  
[2026-08-01 18:53:41] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:53:41] local.INFO: ID present? YES  
[2026-08-01 18:53:41] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:41] local.INFO: ID empty? NO  
[2026-08-01 18:53:41] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:41] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:53:41, 2026-08-01 18:53:41))  
[2026-08-01 18:53:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:47] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:47] local.INFO: Model: Journal  
[2026-08-01 18:53:47] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:53:47] local.INFO: ID present? YES  
[2026-08-01 18:53:47] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:47] local.INFO: ID empty? NO  
[2026-08-01 18:53:47] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:47] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-01 18:53:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-01 18:53:47, 2026-08-01 18:53:47))  
[2026-08-01 18:53:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:48] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:48] local.INFO: Model: Journal  
[2026-08-01 18:53:48] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:53:48] local.INFO: ID present? YES  
[2026-08-01 18:53:48] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:53:48] local.INFO: ID empty? NO  
[2026-08-01 18:53:48] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:53:48] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:53:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:53:48, 2026-08-01 18:53:48))  
[2026-08-01 18:53:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:53:54] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:53:54] local.INFO: Model: Journal  
[2026-08-01 18:53:54] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:53:54] local.INFO: ID present? YES  
[2026-08-01 18:53:54] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:53:54] local.INFO: ID empty? NO  
[2026-08-01 18:53:54] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:53:54] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:53:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:53:54, 2026-08-01 18:53:54))  
[2026-08-01 18:53:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:01] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:01] local.INFO: Model: Journal  
[2026-08-01 18:54:01] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:54:01] local.INFO: ID present? YES  
[2026-08-01 18:54:01] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:54:01] local.INFO: ID empty? NO  
[2026-08-01 18:54:01] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:54:01] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:54:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:54:01, 2026-08-01 18:54:01))  
[2026-08-01 18:54:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:07] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:07] local.INFO: Model: Journal  
[2026-08-01 18:54:07] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-01 18:54:07] local.INFO: ID present? YES  
[2026-08-01 18:54:07] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:54:07] local.INFO: ID empty? NO  
[2026-08-01 18:54:07] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:54:07] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-01 18:54:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-01 18:54:07, 2026-08-01 18:54:07))  
[2026-08-01 18:54:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:08] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:08] local.INFO: Model: Journal  
[2026-08-01 18:54:08] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:08] local.INFO: ID present? YES  
[2026-08-01 18:54:08] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:08] local.INFO: ID empty? NO  
[2026-08-01 18:54:08] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:08] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:08, 2026-08-01 18:54:08))  
[2026-08-01 18:54:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:14] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:14] local.INFO: Model: Journal  
[2026-08-01 18:54:14] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:14] local.INFO: ID present? YES  
[2026-08-01 18:54:14] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:14] local.INFO: ID empty? NO  
[2026-08-01 18:54:14] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:14] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:14, 2026-08-01 18:54:14))  
[2026-08-01 18:54:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:21] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:21] local.INFO: Model: Journal  
[2026-08-01 18:54:21] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:21] local.INFO: ID present? YES  
[2026-08-01 18:54:21] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:21] local.INFO: ID empty? NO  
[2026-08-01 18:54:21] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:21] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:21, 2026-08-01 18:54:21))  
[2026-08-01 18:54:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:27] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:27] local.INFO: Model: Journal  
[2026-08-01 18:54:27] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:27] local.INFO: ID present? YES  
[2026-08-01 18:54:27] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:27] local.INFO: ID empty? NO  
[2026-08-01 18:54:27] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:27] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-01 18:54:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:27, 2026-08-01 18:54:27))  
[2026-08-01 18:54:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:28] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:28] local.INFO: Model: Journal  
[2026-08-01 18:54:28] local.INFO: Data received: {"id":"cbca22bd-5095-4aa9-808e-62dee9ac6ced","type":"Credit","amount":"51303.00","rate":null,"lcy_amount":"51303.000000","narrative":"MPESA WITHDRAWAL 01-08-2026","uniqid":"d7555375-0c00-488f-acca-8ab95afbd34c","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:50:17","updated_at":"2026-08-01 18:50:19"} 
[2026-08-01 18:54:28] local.INFO: ID present? YES  
[2026-08-01 18:54:28] local.INFO: ID value: cbca22bd-5095-4aa9-808e-62dee9ac6ced  
[2026-08-01 18:54:28] local.INFO: ID empty? NO  
[2026-08-01 18:54:28] local.INFO: Attempting to find record with ID: cbca22bd-5095-4aa9-808e-62dee9ac6ced  
[2026-08-01 18:54:28] local.INFO: Record not found, creating new with ID: cbca22bd-5095-4aa9-808e-62dee9ac6ced  
[2026-08-01 18:54:28] local.INFO: Created record: {"id":"cbca22bd-5095-4aa9-808e-62dee9ac6ced","type":"Credit","amount":"51303.00","rate":null,"lcy_amount":"51303.000000","narrative":"MPESA WITHDRAWAL 01-08-2026","uniqid":"d7555375-0c00-488f-acca-8ab95afbd34c","date":"2026-08-01","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:54:28.000000Z","created_at":"2026-08-01T15:54:28.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-110418.0,"debit_total":"21997898.10","credit_total":22108316.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:36:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:54:29] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:29] local.INFO: Model: Journal  
[2026-08-01 18:54:29] local.INFO: Data received: {"id":"d2846b0b-7cf2-499d-9d6f-45c6c33b3798","type":"Debit","amount":"174746.00","rate":null,"lcy_amount":"174746.000000","narrative":"MPESA DEPOSIT 01-08-2026","uniqid":"f48466c4-0e88-4e16-a179-b96397dea080","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 18:50:52","updated_at":"2026-08-01 18:50:53"} 
[2026-08-01 18:54:29] local.INFO: ID present? YES  
[2026-08-01 18:54:29] local.INFO: ID value: d2846b0b-7cf2-499d-9d6f-45c6c33b3798  
[2026-08-01 18:54:29] local.INFO: ID empty? NO  
[2026-08-01 18:54:29] local.INFO: Attempting to find record with ID: d2846b0b-7cf2-499d-9d6f-45c6c33b3798  
[2026-08-01 18:54:29] local.INFO: Record not found, creating new with ID: d2846b0b-7cf2-499d-9d6f-45c6c33b3798  
[2026-08-01 18:54:29] local.INFO: Created record: {"id":"d2846b0b-7cf2-499d-9d6f-45c6c33b3798","type":"Debit","amount":"174746.00","rate":null,"lcy_amount":"174746.000000","narrative":"MPESA DEPOSIT 01-08-2026","uniqid":"f48466c4-0e88-4e16-a179-b96397dea080","date":"2026-08-01","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-01T15:54:29.000000Z","created_at":"2026-08-01T15:54:29.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":64328.0,"debit_total":22172644.100000001490116119384765625,"credit_total":"22108316.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:54:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-01 18:54:31] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:31] local.INFO: Model: Journal  
[2026-08-01 18:54:31] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:31] local.INFO: ID present? YES  
[2026-08-01 18:54:31] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:31] local.INFO: ID empty? NO  
[2026-08-01 18:54:31] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:31] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:31, 2026-08-01 18:54:31))  
[2026-08-01 18:54:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:37] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:37] local.INFO: Model: Journal  
[2026-08-01 18:54:37] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:37] local.INFO: ID present? YES  
[2026-08-01 18:54:37] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:37] local.INFO: ID empty? NO  
[2026-08-01 18:54:37] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:37] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:37, 2026-08-01 18:54:37))  
[2026-08-01 18:54:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:43] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:43] local.INFO: Model: Journal  
[2026-08-01 18:54:43] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:43] local.INFO: ID present? YES  
[2026-08-01 18:54:43] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:43] local.INFO: ID empty? NO  
[2026-08-01 18:54:43] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:43] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:43, 2026-08-01 18:54:43))  
[2026-08-01 18:54:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:49] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:49] local.INFO: Model: Journal  
[2026-08-01 18:54:49] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-01 18:54:49] local.INFO: ID present? YES  
[2026-08-01 18:54:49] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:49] local.INFO: ID empty? NO  
[2026-08-01 18:54:49] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:49] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-01 18:54:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-01 18:54:49, 2026-08-01 18:54:49))  
[2026-08-01 18:54:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:51] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:51] local.INFO: Model: Journal  
[2026-08-01 18:54:51] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:54:51] local.INFO: ID present? YES  
[2026-08-01 18:54:51] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:54:51] local.INFO: ID empty? NO  
[2026-08-01 18:54:51] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:54:51] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:54:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:54:51, 2026-08-01 18:54:51))  
[2026-08-01 18:54:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:54:57] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:54:57] local.INFO: Model: Journal  
[2026-08-01 18:54:57] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:54:57] local.INFO: ID present? YES  
[2026-08-01 18:54:57] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:54:57] local.INFO: ID empty? NO  
[2026-08-01 18:54:57] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:54:57] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:54:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:54:57, 2026-08-01 18:54:57))  
[2026-08-01 18:54:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:55:03] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:55:03] local.INFO: Model: Journal  
[2026-08-01 18:55:03] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:55:03] local.INFO: ID present? YES  
[2026-08-01 18:55:03] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:55:03] local.INFO: ID empty? NO  
[2026-08-01 18:55:03] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:55:03] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:55:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:55:03, 2026-08-01 18:55:03))  
[2026-08-01 18:55:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-01 18:55:09] local.INFO: === SYNC DEBUG ===  
[2026-08-01 18:55:09] local.INFO: Model: Journal  
[2026-08-01 18:55:09] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-01 18:55:09] local.INFO: ID present? YES  
[2026-08-01 18:55:09] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:55:09] local.INFO: ID empty? NO  
[2026-08-01 18:55:09] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:55:09] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-01 18:55:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-01 18:55:09, 2026-08-01 18:55:09))  
[2026-08-01 18:55:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:08] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:08] local.INFO: Model: Customer  
[2026-08-02 12:57:08] local.INFO: Data received: {"id":"98411ea5-8184-4ece-b389-6a9234d5fafa","first_name":"KELVIN","last_name":"MUNGAI","sur_name":null,"phone":"721256208","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"33195961","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-02 12:53:48","updated_at":"2026-08-02 12:53:48"} 
[2026-08-02 12:57:08] local.INFO: ID present? YES  
[2026-08-02 12:57:08] local.INFO: ID value: 98411ea5-8184-4ece-b389-6a9234d5fafa  
[2026-08-02 12:57:08] local.INFO: ID empty? NO  
[2026-08-02 12:57:08] local.INFO: Attempting to find record with ID: 98411ea5-8184-4ece-b389-6a9234d5fafa  
[2026-08-02 12:57:08] local.INFO: Record not found, creating new with ID: 98411ea5-8184-4ece-b389-6a9234d5fafa  
[2026-08-02 12:57:08] local.INFO: Created record: {"id":"98411ea5-8184-4ece-b389-6a9234d5fafa","first_name":"KELVIN","last_name":"MUNGAI","sur_name":null,"phone":"721256208","calling_code":"+254","email":null,"residence":"Ukunda, Kwale, Kenya","id_type":"National ID","id_number":"33195961","nationality":"Kenyan","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-02T09:57:08.000000Z","created_at":"2026-08-02T09:57:08.000000Z"} 
[2026-08-02 12:57:09] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:09] local.INFO: Model: Transaction  
[2026-08-02 12:57:09] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:57:09] local.INFO: ID present? YES  
[2026-08-02 12:57:09] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:09] local.INFO: ID empty? NO  
[2026-08-02 12:57:09] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:09] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 12:57:09, 2026-08-02 12:57:09))  
[2026-08-02 12:57:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:16] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:16] local.INFO: Model: Transaction  
[2026-08-02 12:57:16] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:57:16] local.INFO: ID present? YES  
[2026-08-02 12:57:16] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:16] local.INFO: ID empty? NO  
[2026-08-02 12:57:16] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:16] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 12:57:16, 2026-08-02 12:57:16))  
[2026-08-02 12:57:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:22] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:22] local.INFO: Model: Transaction  
[2026-08-02 12:57:22] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:57:22] local.INFO: ID present? YES  
[2026-08-02 12:57:22] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:22] local.INFO: ID empty? NO  
[2026-08-02 12:57:22] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:22] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 12:57:22, 2026-08-02 12:57:22))  
[2026-08-02 12:57:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:28] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:28] local.INFO: Model: Transaction  
[2026-08-02 12:57:28] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:57:28] local.INFO: ID present? YES  
[2026-08-02 12:57:28] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:28] local.INFO: ID empty? NO  
[2026-08-02 12:57:28] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:28] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 12:57:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 12:57:28, 2026-08-02 12:57:28))  
[2026-08-02 12:57:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:29] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:29] local.INFO: Model: Transaction  
[2026-08-02 12:57:29] local.INFO: Data received: {"id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3626-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 12:52:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"dcea66cc-46cd-4a4e-95ef-e50a29f73f01","cancellation_reason":null,"customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-02 12:52:04","updated_at":"2026-08-02 12:52:05"} 
[2026-08-02 12:57:29] local.INFO: ID present? YES  
[2026-08-02 12:57:29] local.INFO: ID value: 62c3d4fd-f754-403d-b696-cc6fc20fb888  
[2026-08-02 12:57:29] local.INFO: ID empty? NO  
[2026-08-02 12:57:29] local.INFO: Attempting to find record with ID: 62c3d4fd-f754-403d-b696-cc6fc20fb888  
[2026-08-02 12:57:29] local.INFO: Record not found, creating new with ID: 62c3d4fd-f754-403d-b696-cc6fc20fb888  
[2026-08-02 12:57:29] local.INFO: Created record: {"id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3626-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 12:52:05","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"dcea66cc-46cd-4a4e-95ef-e50a29f73f01","cancellation_reason":null,"customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-02T09:57:29.000000Z","created_at":"2026-08-02T09:57:29.000000Z"} 
[2026-08-02 12:57:31] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:31] local.INFO: Model: Transaction  
[2026-08-02 12:57:31] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:57:31] local.INFO: ID present? YES  
[2026-08-02 12:57:31] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:31] local.INFO: ID empty? NO  
[2026-08-02 12:57:31] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:31] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 12:57:31, 2026-08-02 12:57:31))  
[2026-08-02 12:57:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:37] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:37] local.INFO: Model: Transaction  
[2026-08-02 12:57:37] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:57:37] local.INFO: ID present? YES  
[2026-08-02 12:57:37] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:37] local.INFO: ID empty? NO  
[2026-08-02 12:57:37] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:37] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 12:57:37, 2026-08-02 12:57:37))  
[2026-08-02 12:57:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:43] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:43] local.INFO: Model: Transaction  
[2026-08-02 12:57:43] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:57:43] local.INFO: ID present? YES  
[2026-08-02 12:57:43] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:43] local.INFO: ID empty? NO  
[2026-08-02 12:57:43] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:43] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 12:57:43, 2026-08-02 12:57:43))  
[2026-08-02 12:57:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:50] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:50] local.INFO: Model: Transaction  
[2026-08-02 12:57:50] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:57:50] local.INFO: ID present? YES  
[2026-08-02 12:57:50] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:50] local.INFO: ID empty? NO  
[2026-08-02 12:57:50] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:50] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 12:57:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 12:57:50, 2026-08-02 12:57:50))  
[2026-08-02 12:57:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:51] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:51] local.INFO: Model: Transaction  
[2026-08-02 12:57:51] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 12:57:51] local.INFO: ID present? YES  
[2026-08-02 12:57:51] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:57:51] local.INFO: ID empty? NO  
[2026-08-02 12:57:51] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:57:51] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:57:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 12:57:51, 2026-08-02 12:57:51))  
[2026-08-02 12:57:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:57:57] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:57:57] local.INFO: Model: Transaction  
[2026-08-02 12:57:57] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 12:57:57] local.INFO: ID present? YES  
[2026-08-02 12:57:57] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:57:57] local.INFO: ID empty? NO  
[2026-08-02 12:57:57] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:57:57] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:57:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 12:57:57, 2026-08-02 12:57:57))  
[2026-08-02 12:57:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:04] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:04] local.INFO: Model: Transaction  
[2026-08-02 12:58:04] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 12:58:04] local.INFO: ID present? YES  
[2026-08-02 12:58:04] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:58:04] local.INFO: ID empty? NO  
[2026-08-02 12:58:04] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:58:04] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:58:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 12:58:04, 2026-08-02 12:58:04))  
[2026-08-02 12:58:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:10] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:10] local.INFO: Model: Transaction  
[2026-08-02 12:58:10] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 12:58:10] local.INFO: ID present? YES  
[2026-08-02 12:58:10] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:58:10] local.INFO: ID empty? NO  
[2026-08-02 12:58:10] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:58:10] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 12:58:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 12:58:10, 2026-08-02 12:58:10))  
[2026-08-02 12:58:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:11] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:11] local.INFO: Model: Transaction  
[2026-08-02 12:58:11] local.INFO: Data received: {"id":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","type":"Selling","amount":330,"rate":130,"negotiated_rate":"0","amount_paid":330,"amount_received":42900,"narrative":null,"transaction_number":"TR-3627-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 12:52:32","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"745e2666-b2ff-4323-b3e9-e510b9a85f18","cancellation_reason":null,"customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-08-02 12:52:31","updated_at":"2026-08-02 12:52:32"} 
[2026-08-02 12:58:11] local.INFO: ID present? YES  
[2026-08-02 12:58:11] local.INFO: ID value: 90d4c541-0324-475c-a70e-e1ee8e007efe  
[2026-08-02 12:58:11] local.INFO: ID empty? NO  
[2026-08-02 12:58:11] local.INFO: Attempting to find record with ID: 90d4c541-0324-475c-a70e-e1ee8e007efe  
[2026-08-02 12:58:11] local.INFO: Record not found, creating new with ID: 90d4c541-0324-475c-a70e-e1ee8e007efe  
[2026-08-02 12:58:11] local.INFO: Created record: {"id":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","type":"Selling","amount":330,"rate":130,"negotiated_rate":"0","amount_paid":330,"amount_received":42900,"narrative":null,"transaction_number":"TR-3627-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 12:52:32","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Travel / Tourism","uniqid":null,"batch_id":"745e2666-b2ff-4323-b3e9-e510b9a85f18","cancellation_reason":null,"customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","updated_at":"2026-08-02T09:58:11.000000Z","created_at":"2026-08-02T09:58:11.000000Z"} 
[2026-08-02 12:58:13] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:13] local.INFO: Model: Transaction  
[2026-08-02 12:58:13] local.INFO: Data received: {"id":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","type":"Buying","amount":35,"rate":145,"negotiated_rate":"0","amount_paid":5075,"amount_received":35,"narrative":null,"transaction_number":"TR-3628-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 12:54:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5084265a-75cb-4eb0-b125-083bc5226cf1","cancellation_reason":null,"customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-02 12:54:05","updated_at":"2026-08-02 12:54:11"} 
[2026-08-02 12:58:13] local.INFO: ID present? YES  
[2026-08-02 12:58:13] local.INFO: ID value: 982fbade-d304-4de8-ae08-309bfbe45691  
[2026-08-02 12:58:13] local.INFO: ID empty? NO  
[2026-08-02 12:58:13] local.INFO: Attempting to find record with ID: 982fbade-d304-4de8-ae08-309bfbe45691  
[2026-08-02 12:58:13] local.INFO: Record not found, creating new with ID: 982fbade-d304-4de8-ae08-309bfbe45691  
[2026-08-02 12:58:13] local.INFO: Created record: {"id":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","type":"Buying","amount":35,"rate":145,"negotiated_rate":"0","amount_paid":5075,"amount_received":35,"narrative":null,"transaction_number":"TR-3628-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 12:54:11","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"5084265a-75cb-4eb0-b125-083bc5226cf1","cancellation_reason":null,"customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-02T09:58:13.000000Z","created_at":"2026-08-02T09:58:13.000000Z"} 
[2026-08-02 12:58:14] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:14] local.INFO: Model: Journal  
[2026-08-02 12:58:14] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:58:14] local.INFO: ID present? YES  
[2026-08-02 12:58:14] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:14] local.INFO: ID empty? NO  
[2026-08-02 12:58:14] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:14] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:14, 2026-08-02 12:58:14))  
[2026-08-02 12:58:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:20] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:20] local.INFO: Model: Journal  
[2026-08-02 12:58:20] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:58:20] local.INFO: ID present? YES  
[2026-08-02 12:58:20] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:20] local.INFO: ID empty? NO  
[2026-08-02 12:58:20] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:20] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:20, 2026-08-02 12:58:20))  
[2026-08-02 12:58:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:27] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:27] local.INFO: Model: Journal  
[2026-08-02 12:58:27] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:58:27] local.INFO: ID present? YES  
[2026-08-02 12:58:27] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:27] local.INFO: ID empty? NO  
[2026-08-02 12:58:27] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:27] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:27, 2026-08-02 12:58:27))  
[2026-08-02 12:58:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:33] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:33] local.INFO: Model: Journal  
[2026-08-02 12:58:33] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:58:33] local.INFO: ID present? YES  
[2026-08-02 12:58:33] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:33] local.INFO: ID empty? NO  
[2026-08-02 12:58:33] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:33] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 12:58:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:33, 2026-08-02 12:58:33))  
[2026-08-02 12:58:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:34] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:34] local.INFO: Model: Journal  
[2026-08-02 12:58:34] local.INFO: Data received: {"id":"2ac9ea8b-67b5-474d-9d64-7a0cbf28b5eb","type":"Credit","amount":"630000.00","rate":null,"lcy_amount":"630000.000000","narrative":"CASH GIVEN TO DIANI BRANCH","uniqid":"e11066fb-43af-43b1-bb41-4f1c2ee32263","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:55:36","updated_at":"2026-08-02 12:55:38"} 
[2026-08-02 12:58:34] local.INFO: ID present? YES  
[2026-08-02 12:58:34] local.INFO: ID value: 2ac9ea8b-67b5-474d-9d64-7a0cbf28b5eb  
[2026-08-02 12:58:34] local.INFO: ID empty? NO  
[2026-08-02 12:58:34] local.INFO: Attempting to find record with ID: 2ac9ea8b-67b5-474d-9d64-7a0cbf28b5eb  
[2026-08-02 12:58:34] local.INFO: Record not found, creating new with ID: 2ac9ea8b-67b5-474d-9d64-7a0cbf28b5eb  
[2026-08-02 12:58:34] local.INFO: Created record: {"id":"2ac9ea8b-67b5-474d-9d64-7a0cbf28b5eb","type":"Credit","amount":"630000.00","rate":null,"lcy_amount":"630000.000000","narrative":"CASH GIVEN TO DIANI BRANCH","uniqid":"e11066fb-43af-43b1-bb41-4f1c2ee32263","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T09:58:34.000000Z","created_at":"2026-08-02T09:58:34.000000Z","account":{"id":"a9b41c04-873a-4b18-824b-ebb0fa921f19","name":"Inter-branch transfer (KES)","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-000-000-10-KES-000005","is_fx_account":null,"balance":-2886838.0,"debit_total":"75752177.00","credit_total":78639015.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":null,"user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":null,"teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-12T11:04:40.000000Z","updated_at":"2026-08-01T14:48:43.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Inter-branch"}} 
[2026-08-02 12:58:36] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:36] local.INFO: Model: Journal  
[2026-08-02 12:58:36] local.INFO: Data received: {"id":"3cb5b0f5-9982-477e-85b3-66e62ac1d698","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3626-2026","uniqid":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:52:05","updated_at":"2026-08-02 12:52:05"} 
[2026-08-02 12:58:36] local.INFO: ID present? YES  
[2026-08-02 12:58:36] local.INFO: ID value: 3cb5b0f5-9982-477e-85b3-66e62ac1d698  
[2026-08-02 12:58:36] local.INFO: ID empty? NO  
[2026-08-02 12:58:36] local.INFO: Attempting to find record with ID: 3cb5b0f5-9982-477e-85b3-66e62ac1d698  
[2026-08-02 12:58:36] local.INFO: Record not found, creating new with ID: 3cb5b0f5-9982-477e-85b3-66e62ac1d698  
[2026-08-02 12:58:36] local.INFO: Created record: {"id":"3cb5b0f5-9982-477e-85b3-66e62ac1d698","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3626-2026","uniqid":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T09:58:36.000000Z","created_at":"2026-08-02T09:58:36.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-129984.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":137296.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T15:56:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 12:58:37] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:37] local.INFO: Model: Journal  
[2026-08-02 12:58:37] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:58:37] local.INFO: ID present? YES  
[2026-08-02 12:58:37] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:37] local.INFO: ID empty? NO  
[2026-08-02 12:58:37] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:37] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:37, 2026-08-02 12:58:37))  
[2026-08-02 12:58:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:43] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:43] local.INFO: Model: Journal  
[2026-08-02 12:58:43] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:58:43] local.INFO: ID present? YES  
[2026-08-02 12:58:43] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:43] local.INFO: ID empty? NO  
[2026-08-02 12:58:43] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:43] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:43, 2026-08-02 12:58:43))  
[2026-08-02 12:58:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:49] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:49] local.INFO: Model: Journal  
[2026-08-02 12:58:49] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:58:49] local.INFO: ID present? YES  
[2026-08-02 12:58:49] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:49] local.INFO: ID empty? NO  
[2026-08-02 12:58:49] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:49] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:49, 2026-08-02 12:58:49))  
[2026-08-02 12:58:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:56] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:56] local.INFO: Model: Journal  
[2026-08-02 12:58:56] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:58:56] local.INFO: ID present? YES  
[2026-08-02 12:58:56] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:56] local.INFO: ID empty? NO  
[2026-08-02 12:58:56] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:56] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 12:58:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:58:56, 2026-08-02 12:58:56))  
[2026-08-02 12:58:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:58:57] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:57] local.INFO: Model: Journal  
[2026-08-02 12:58:57] local.INFO: Data received: {"id":"3e8ed696-b77c-4cd0-95e5-895cec74d8ee","type":"Debit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"cfdeb638-5b8d-4ba2-abdc-4b94385ab3da","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:55:53","updated_at":"2026-08-02 12:55:54"} 
[2026-08-02 12:58:57] local.INFO: ID present? YES  
[2026-08-02 12:58:57] local.INFO: ID value: 3e8ed696-b77c-4cd0-95e5-895cec74d8ee  
[2026-08-02 12:58:57] local.INFO: ID empty? NO  
[2026-08-02 12:58:57] local.INFO: Attempting to find record with ID: 3e8ed696-b77c-4cd0-95e5-895cec74d8ee  
[2026-08-02 12:58:57] local.INFO: Record not found, creating new with ID: 3e8ed696-b77c-4cd0-95e5-895cec74d8ee  
[2026-08-02 12:58:57] local.INFO: Created record: {"id":"3e8ed696-b77c-4cd0-95e5-895cec74d8ee","type":"Debit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"cfdeb638-5b8d-4ba2-abdc-4b94385ab3da","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T09:58:57.000000Z","created_at":"2026-08-02T09:58:57.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":138828.0,"debit_total":22272644.100000001490116119384765625,"credit_total":"22133816.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:56:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 12:58:58] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:58] local.INFO: Model: Journal  
[2026-08-02 12:58:58] local.INFO: Data received: {"id":"4c41c704-9e09-4bd7-8b45-d4243acc0f7d","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:52:05","updated_at":"2026-08-02 12:52:05"} 
[2026-08-02 12:58:58] local.INFO: ID present? YES  
[2026-08-02 12:58:58] local.INFO: ID value: 4c41c704-9e09-4bd7-8b45-d4243acc0f7d  
[2026-08-02 12:58:58] local.INFO: ID empty? NO  
[2026-08-02 12:58:58] local.INFO: Attempting to find record with ID: 4c41c704-9e09-4bd7-8b45-d4243acc0f7d  
[2026-08-02 12:58:58] local.INFO: Record not found, creating new with ID: 4c41c704-9e09-4bd7-8b45-d4243acc0f7d  
[2026-08-02 12:58:58] local.INFO: Created record: {"id":"4c41c704-9e09-4bd7-8b45-d4243acc0f7d","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T09:58:58.000000Z","created_at":"2026-08-02T09:58:58.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":95328.0,"debit_total":"22272644.10","credit_total":22177316.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T09:58:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 12:58:59] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:58:59] local.INFO: Model: Journal  
[2026-08-02 12:58:59] local.INFO: Data received: {"id":"55cea498-61ba-448c-9437-0a3dbee9b1aa","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"1063c6c2-048a-45b7-acaf-e85bb21677b7","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:54:26","updated_at":"2026-08-02 12:54:28"} 
[2026-08-02 12:58:59] local.INFO: ID present? YES  
[2026-08-02 12:58:59] local.INFO: ID value: 55cea498-61ba-448c-9437-0a3dbee9b1aa  
[2026-08-02 12:58:59] local.INFO: ID empty? NO  
[2026-08-02 12:58:59] local.INFO: Attempting to find record with ID: 55cea498-61ba-448c-9437-0a3dbee9b1aa  
[2026-08-02 12:58:59] local.INFO: Record not found, creating new with ID: 55cea498-61ba-448c-9437-0a3dbee9b1aa  
[2026-08-02 12:58:59] local.INFO: Created record: {"id":"55cea498-61ba-448c-9437-0a3dbee9b1aa","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"1063c6c2-048a-45b7-acaf-e85bb21677b7","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T09:58:59.000000Z","created_at":"2026-08-02T09:58:59.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":95268.0,"debit_total":"22272644.10","credit_total":22177376.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T09:58:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 12:59:01] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:01] local.INFO: Model: Journal  
[2026-08-02 12:59:01] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:59:01] local.INFO: ID present? YES  
[2026-08-02 12:59:01] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:01] local.INFO: ID empty? NO  
[2026-08-02 12:59:01] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:01] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:01, 2026-08-02 12:59:01))  
[2026-08-02 12:59:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:07] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:07] local.INFO: Model: Journal  
[2026-08-02 12:59:07] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:59:07] local.INFO: ID present? YES  
[2026-08-02 12:59:07] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:07] local.INFO: ID empty? NO  
[2026-08-02 12:59:07] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:07] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:07, 2026-08-02 12:59:07))  
[2026-08-02 12:59:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:13] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:13] local.INFO: Model: Journal  
[2026-08-02 12:59:13] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:59:13] local.INFO: ID present? YES  
[2026-08-02 12:59:13] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:13] local.INFO: ID empty? NO  
[2026-08-02 12:59:13] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:13] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:13, 2026-08-02 12:59:13))  
[2026-08-02 12:59:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:20] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:20] local.INFO: Model: Journal  
[2026-08-02 12:59:20] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 12:59:20] local.INFO: ID present? YES  
[2026-08-02 12:59:20] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:20] local.INFO: ID empty? NO  
[2026-08-02 12:59:20] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:20] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 12:59:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:20, 2026-08-02 12:59:20))  
[2026-08-02 12:59:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:21] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:21] local.INFO: Model: Journal  
[2026-08-02 12:59:21] local.INFO: Data received: {"id":"59af8d52-2422-4d3c-9d99-9beb3093676b","type":"Debit","amount":"42900.00","rate":"130.000000","lcy_amount":"42900.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"90d4c541-0324-475c-a70e-e1ee8e007efe","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:52:32","updated_at":"2026-08-02 12:52:32"} 
[2026-08-02 12:59:21] local.INFO: ID present? YES  
[2026-08-02 12:59:21] local.INFO: ID value: 59af8d52-2422-4d3c-9d99-9beb3093676b  
[2026-08-02 12:59:21] local.INFO: ID empty? NO  
[2026-08-02 12:59:21] local.INFO: Attempting to find record with ID: 59af8d52-2422-4d3c-9d99-9beb3093676b  
[2026-08-02 12:59:21] local.INFO: Record not found, creating new with ID: 59af8d52-2422-4d3c-9d99-9beb3093676b  
[2026-08-02 12:59:21] local.INFO: Created record: {"id":"59af8d52-2422-4d3c-9d99-9beb3093676b","type":"Debit","amount":"42900.00","rate":"130.000000","lcy_amount":"42900.000000","narrative":"Selling TX: Funds into cashbox","uniqid":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"90d4c541-0324-475c-a70e-e1ee8e007efe","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T09:59:21.000000Z","created_at":"2026-08-02T09:59:21.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":138168.0,"debit_total":22315544.100000001490116119384765625,"credit_total":"22177376.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T09:58:59.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 12:59:22] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:22] local.INFO: Model: Journal  
[2026-08-02 12:59:22] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:59:22] local.INFO: ID present? YES  
[2026-08-02 12:59:22] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:22] local.INFO: ID empty? NO  
[2026-08-02 12:59:22] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:22] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:22, 2026-08-02 12:59:22))  
[2026-08-02 12:59:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:28] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:28] local.INFO: Model: Journal  
[2026-08-02 12:59:28] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:59:29] local.INFO: ID present? YES  
[2026-08-02 12:59:29] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:29] local.INFO: ID empty? NO  
[2026-08-02 12:59:29] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:29] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:29, 2026-08-02 12:59:29))  
[2026-08-02 12:59:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:35] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:35] local.INFO: Model: Journal  
[2026-08-02 12:59:35] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:59:35] local.INFO: ID present? YES  
[2026-08-02 12:59:35] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:35] local.INFO: ID empty? NO  
[2026-08-02 12:59:35] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:35] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:35, 2026-08-02 12:59:35))  
[2026-08-02 12:59:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:41] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:41] local.INFO: Model: Journal  
[2026-08-02 12:59:41] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 12:59:41] local.INFO: ID present? YES  
[2026-08-02 12:59:41] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:41] local.INFO: ID empty? NO  
[2026-08-02 12:59:41] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:41] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 12:59:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 12:59:41, 2026-08-02 12:59:41))  
[2026-08-02 12:59:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:42] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:42] local.INFO: Model: Journal  
[2026-08-02 12:59:42] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 12:59:42] local.INFO: ID present? YES  
[2026-08-02 12:59:42] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:42] local.INFO: ID empty? NO  
[2026-08-02 12:59:42] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:42] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 12:59:42, 2026-08-02 12:59:42))  
[2026-08-02 12:59:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:49] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:49] local.INFO: Model: Journal  
[2026-08-02 12:59:49] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 12:59:49] local.INFO: ID present? YES  
[2026-08-02 12:59:49] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:49] local.INFO: ID empty? NO  
[2026-08-02 12:59:49] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:49] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 12:59:49, 2026-08-02 12:59:49))  
[2026-08-02 12:59:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 12:59:55] local.INFO: === SYNC DEBUG ===  
[2026-08-02 12:59:55] local.INFO: Model: Journal  
[2026-08-02 12:59:55] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 12:59:55] local.INFO: ID present? YES  
[2026-08-02 12:59:55] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:55] local.INFO: ID empty? NO  
[2026-08-02 12:59:55] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:55] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 12:59:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 12:59:55, 2026-08-02 12:59:55))  
[2026-08-02 12:59:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:01] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:01] local.INFO: Model: Journal  
[2026-08-02 13:00:01] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:00:01] local.INFO: ID present? YES  
[2026-08-02 13:00:01] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 13:00:01] local.INFO: ID empty? NO  
[2026-08-02 13:00:01] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 13:00:01] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 13:00:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 13:00:01, 2026-08-02 13:00:01))  
[2026-08-02 13:00:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:02] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:02] local.INFO: Model: Journal  
[2026-08-02 13:00:02] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 13:00:02] local.INFO: ID present? YES  
[2026-08-02 13:00:02] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:02] local.INFO: ID empty? NO  
[2026-08-02 13:00:02] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:02] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 13:00:02, 2026-08-02 13:00:02))  
[2026-08-02 13:00:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:09] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:09] local.INFO: Model: Journal  
[2026-08-02 13:00:09] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 13:00:09] local.INFO: ID present? YES  
[2026-08-02 13:00:09] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:09] local.INFO: ID empty? NO  
[2026-08-02 13:00:09] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:09] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 13:00:09, 2026-08-02 13:00:09))  
[2026-08-02 13:00:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:15] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:15] local.INFO: Model: Journal  
[2026-08-02 13:00:15] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 13:00:15] local.INFO: ID present? YES  
[2026-08-02 13:00:15] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:15] local.INFO: ID empty? NO  
[2026-08-02 13:00:15] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:15] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 13:00:15, 2026-08-02 13:00:15))  
[2026-08-02 13:00:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:21] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:21] local.INFO: Model: Journal  
[2026-08-02 13:00:21] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 13:00:21] local.INFO: ID present? YES  
[2026-08-02 13:00:21] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:21] local.INFO: ID empty? NO  
[2026-08-02 13:00:21] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:21] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 13:00:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 13:00:21, 2026-08-02 13:00:21))  
[2026-08-02 13:00:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:23] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:23] local.INFO: Model: Journal  
[2026-08-02 13:00:23] local.INFO: Data received: {"id":"9d0273d6-d88d-4cdb-a43d-5c5ff810efb9","type":"Credit","amount":"330.00","rate":null,"lcy_amount":"42570.000000","narrative":"USD ADDITION","uniqid":"a6cb3465-c21b-46ec-bbfb-2b95425979ff","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 12:55:06","updated_at":"2026-08-02 12:55:07"} 
[2026-08-02 13:00:23] local.INFO: ID present? YES  
[2026-08-02 13:00:23] local.INFO: ID value: 9d0273d6-d88d-4cdb-a43d-5c5ff810efb9  
[2026-08-02 13:00:23] local.INFO: ID empty? NO  
[2026-08-02 13:00:23] local.INFO: Attempting to find record with ID: 9d0273d6-d88d-4cdb-a43d-5c5ff810efb9  
[2026-08-02 13:00:23] local.INFO: Record not found, creating new with ID: 9d0273d6-d88d-4cdb-a43d-5c5ff810efb9  
[2026-08-02 13:00:23] local.INFO: Created record: {"id":"9d0273d6-d88d-4cdb-a43d-5c5ff810efb9","type":"Credit","amount":"330.00","rate":null,"lcy_amount":"42570.000000","narrative":"USD ADDITION","uniqid":"a6cb3465-c21b-46ec-bbfb-2b95425979ff","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T10:00:23.000000Z","created_at":"2026-08-02T10:00:23.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":2667.11000000000012732925824820995330810546875,"debit_total":"38469.00","credit_total":35801.889999999999417923390865325927734375,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T15:33:41.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:24] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:24] local.INFO: Model: Journal  
[2026-08-02 13:00:24] local.INFO: Data received: {"id":"a5279e5e-8472-4319-afd9-63271046d90b","type":"Debit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH","uniqid":"8a4d4d05-3358-4a39-80f2-6a982874c8f4","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:54:48","updated_at":"2026-08-02 12:54:50"} 
[2026-08-02 13:00:24] local.INFO: ID present? YES  
[2026-08-02 13:00:24] local.INFO: ID value: a5279e5e-8472-4319-afd9-63271046d90b  
[2026-08-02 13:00:24] local.INFO: ID empty? NO  
[2026-08-02 13:00:24] local.INFO: Attempting to find record with ID: a5279e5e-8472-4319-afd9-63271046d90b  
[2026-08-02 13:00:24] local.INFO: Record not found, creating new with ID: a5279e5e-8472-4319-afd9-63271046d90b  
[2026-08-02 13:00:24] local.INFO: Created record: {"id":"a5279e5e-8472-4319-afd9-63271046d90b","type":"Debit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH","uniqid":"8a4d4d05-3358-4a39-80f2-6a982874c8f4","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:00:24.000000Z","created_at":"2026-08-02T10:00:24.000000Z","account":{"id":"0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a","name":"Travel Expense[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000019","is_fx_account":null,"balance":14700.0,"debit_total":14700.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb16c45e-e5d7-4c6d-9fa2-51cb3e635477","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-07-31T11:13:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 13:00:25] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:25] local.INFO: Model: Journal  
[2026-08-02 13:00:25] local.INFO: Data received: {"id":"a55dec25-8134-43cf-a014-96cd4793f632","type":"Debit","amount":"330.00","rate":null,"lcy_amount":"42570.000000","narrative":"USD ADDITION","uniqid":"a6cb3465-c21b-46ec-bbfb-2b95425979ff","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 12:55:06","updated_at":"2026-08-02 12:55:07"} 
[2026-08-02 13:00:25] local.INFO: ID present? YES  
[2026-08-02 13:00:25] local.INFO: ID value: a55dec25-8134-43cf-a014-96cd4793f632  
[2026-08-02 13:00:25] local.INFO: ID empty? NO  
[2026-08-02 13:00:25] local.INFO: Attempting to find record with ID: a55dec25-8134-43cf-a014-96cd4793f632  
[2026-08-02 13:00:25] local.INFO: Record not found, creating new with ID: a55dec25-8134-43cf-a014-96cd4793f632  
[2026-08-02 13:00:25] local.INFO: Created record: {"id":"a55dec25-8134-43cf-a014-96cd4793f632","type":"Debit","amount":"330.00","rate":null,"lcy_amount":"42570.000000","narrative":"USD ADDITION","uniqid":"a6cb3465-c21b-46ec-bbfb-2b95425979ff","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T10:00:25.000000Z","created_at":"2026-08-02T10:00:25.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":330.0,"debit_total":81039.0,"credit_total":"80709.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:56:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:26] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:26] local.INFO: Model: Journal  
[2026-08-02 13:00:26] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:00:26] local.INFO: ID present? YES  
[2026-08-02 13:00:26] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:26] local.INFO: ID empty? NO  
[2026-08-02 13:00:26] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:26] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:00:26, 2026-08-02 13:00:26))  
[2026-08-02 13:00:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:33] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:33] local.INFO: Model: Journal  
[2026-08-02 13:00:33] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:00:33] local.INFO: ID present? YES  
[2026-08-02 13:00:33] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:33] local.INFO: ID empty? NO  
[2026-08-02 13:00:33] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:33] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:00:33, 2026-08-02 13:00:33))  
[2026-08-02 13:00:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:39] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:39] local.INFO: Model: Journal  
[2026-08-02 13:00:39] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:00:39] local.INFO: ID present? YES  
[2026-08-02 13:00:39] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:39] local.INFO: ID empty? NO  
[2026-08-02 13:00:39] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:39] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:00:39, 2026-08-02 13:00:39))  
[2026-08-02 13:00:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:45] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:45] local.INFO: Model: Journal  
[2026-08-02 13:00:45] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:00:45] local.INFO: ID present? YES  
[2026-08-02 13:00:45] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:45] local.INFO: ID empty? NO  
[2026-08-02 13:00:45] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:45] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 13:00:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:00:45, 2026-08-02 13:00:45))  
[2026-08-02 13:00:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:00:46] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:46] local.INFO: Model: Journal  
[2026-08-02 13:00:46] local.INFO: Data received: {"id":"ae6b466e-e377-42f8-8a55-4c0f4b0d9e8b","type":"Credit","amount":"330.00","rate":"130.000000","lcy_amount":"42570.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"90d4c541-0324-475c-a70e-e1ee8e007efe","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 12:52:32","updated_at":"2026-08-02 12:52:32"} 
[2026-08-02 13:00:46] local.INFO: ID present? YES  
[2026-08-02 13:00:46] local.INFO: ID value: ae6b466e-e377-42f8-8a55-4c0f4b0d9e8b  
[2026-08-02 13:00:46] local.INFO: ID empty? NO  
[2026-08-02 13:00:46] local.INFO: Attempting to find record with ID: ae6b466e-e377-42f8-8a55-4c0f4b0d9e8b  
[2026-08-02 13:00:46] local.INFO: Record not found, creating new with ID: ae6b466e-e377-42f8-8a55-4c0f4b0d9e8b  
[2026-08-02 13:00:46] local.INFO: Created record: {"id":"ae6b466e-e377-42f8-8a55-4c0f4b0d9e8b","type":"Credit","amount":"330.00","rate":"130.000000","lcy_amount":"42570.000000","narrative":"Selling TX: Funds out of cashbox","uniqid":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"90d4c541-0324-475c-a70e-e1ee8e007efe","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T10:00:46.000000Z","created_at":"2026-08-02T10:00:46.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":0.0,"debit_total":"81039.00","credit_total":81039.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T10:00:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:48] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:48] local.INFO: Model: Journal  
[2026-08-02 13:00:48] local.INFO: Data received: {"id":"b52a4316-d514-458c-99de-751acf283987","type":"Credit","amount":"217.00","rate":"145.000000","lcy_amount":"217.000000","narrative":"Gain on TR-3628-2026","uniqid":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"982fbade-d304-4de8-ae08-309bfbe45691","customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:54:11","updated_at":"2026-08-02 12:54:11"} 
[2026-08-02 13:00:48] local.INFO: ID present? YES  
[2026-08-02 13:00:48] local.INFO: ID value: b52a4316-d514-458c-99de-751acf283987  
[2026-08-02 13:00:48] local.INFO: ID empty? NO  
[2026-08-02 13:00:48] local.INFO: Attempting to find record with ID: b52a4316-d514-458c-99de-751acf283987  
[2026-08-02 13:00:48] local.INFO: Record not found, creating new with ID: b52a4316-d514-458c-99de-751acf283987  
[2026-08-02 13:00:48] local.INFO: Created record: {"id":"b52a4316-d514-458c-99de-751acf283987","type":"Credit","amount":"217.00","rate":"145.000000","lcy_amount":"217.000000","narrative":"Gain on TR-3628-2026","uniqid":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"982fbade-d304-4de8-ae08-309bfbe45691","customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:00:48.000000Z","created_at":"2026-08-02T10:00:48.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-130201.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":137513.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T09:58:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 13:00:49] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:49] local.INFO: Model: Journal  
[2026-08-02 13:00:49] local.INFO: Data received: {"id":"b9fe3606-edbc-4ab8-98cf-5a1ee3cb1a86","type":"Credit","amount":"330.00","rate":"130.000000","lcy_amount":"330.000000","narrative":"Gain on TR-3627-2026","uniqid":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"90d4c541-0324-475c-a70e-e1ee8e007efe","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:52:32","updated_at":"2026-08-02 12:52:32"} 
[2026-08-02 13:00:49] local.INFO: ID present? YES  
[2026-08-02 13:00:49] local.INFO: ID value: b9fe3606-edbc-4ab8-98cf-5a1ee3cb1a86  
[2026-08-02 13:00:49] local.INFO: ID empty? NO  
[2026-08-02 13:00:49] local.INFO: Attempting to find record with ID: b9fe3606-edbc-4ab8-98cf-5a1ee3cb1a86  
[2026-08-02 13:00:49] local.INFO: Record not found, creating new with ID: b9fe3606-edbc-4ab8-98cf-5a1ee3cb1a86  
[2026-08-02 13:00:49] local.INFO: Created record: {"id":"b9fe3606-edbc-4ab8-98cf-5a1ee3cb1a86","type":"Credit","amount":"330.00","rate":"130.000000","lcy_amount":"330.000000","narrative":"Gain on TR-3627-2026","uniqid":"90d4c541-0324-475c-a70e-e1ee8e007efe","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"90d4c541-0324-475c-a70e-e1ee8e007efe","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:00:49.000000Z","created_at":"2026-08-02T10:00:49.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-130531.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":137843.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T10:00:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 13:00:50] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:50] local.INFO: Model: Journal  
[2026-08-02 13:00:50] local.INFO: Data received: {"id":"beed0891-aa1d-45b9-912c-e1c7568a733c","type":"Credit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH","uniqid":"8a4d4d05-3358-4a39-80f2-6a982874c8f4","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:54:48","updated_at":"2026-08-02 12:54:50"} 
[2026-08-02 13:00:50] local.INFO: ID present? YES  
[2026-08-02 13:00:50] local.INFO: ID value: beed0891-aa1d-45b9-912c-e1c7568a733c  
[2026-08-02 13:00:50] local.INFO: ID empty? NO  
[2026-08-02 13:00:50] local.INFO: Attempting to find record with ID: beed0891-aa1d-45b9-912c-e1c7568a733c  
[2026-08-02 13:00:50] local.INFO: Record not found, creating new with ID: beed0891-aa1d-45b9-912c-e1c7568a733c  
[2026-08-02 13:00:50] local.INFO: Created record: {"id":"beed0891-aa1d-45b9-912c-e1c7568a733c","type":"Credit","amount":"650.00","rate":null,"lcy_amount":"650.000000","narrative":"TRANSPORT TO NYALI BRANCH","uniqid":"8a4d4d05-3358-4a39-80f2-6a982874c8f4","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:00:50.000000Z","created_at":"2026-08-02T10:00:50.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":137518.0,"debit_total":"22315544.10","credit_total":22178026.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T09:59:21.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:52] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:52] local.INFO: Model: Journal  
[2026-08-02 13:00:52] local.INFO: Data received: {"id":"cf42cb54-a92e-4ce9-a3cb-1473c39fc06e","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-02 12:52:05","updated_at":"2026-08-02 12:52:05"} 
[2026-08-02 13:00:52] local.INFO: ID present? YES  
[2026-08-02 13:00:52] local.INFO: ID value: cf42cb54-a92e-4ce9-a3cb-1473c39fc06e  
[2026-08-02 13:00:52] local.INFO: ID empty? NO  
[2026-08-02 13:00:52] local.INFO: Attempting to find record with ID: cf42cb54-a92e-4ce9-a3cb-1473c39fc06e  
[2026-08-02 13:00:52] local.INFO: Record not found, creating new with ID: cf42cb54-a92e-4ce9-a3cb-1473c39fc06e  
[2026-08-02 13:00:52] local.INFO: Created record: {"id":"cf42cb54-a92e-4ce9-a3cb-1473c39fc06e","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"62c3d4fd-f754-403d-b696-cc6fc20fb888","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"62c3d4fd-f754-403d-b696-cc6fc20fb888","customer_id":"781c4693-b10a-44da-aba7-0ce4c5c03768","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-02T10:00:52.000000Z","created_at":"2026-08-02T10:00:52.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":300.0,"debit_total":24205.0,"credit_total":"23905.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-01T15:35:45.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:53] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:53] local.INFO: Model: Journal  
[2026-08-02 13:00:53] local.INFO: Data received: {"id":"d11cd37a-e85c-40d0-a982-201ca0db0e8d","type":"Debit","amount":"35.00","rate":"145.000000","lcy_amount":"5292.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"982fbade-d304-4de8-ae08-309bfbe45691","customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-02 12:54:11","updated_at":"2026-08-02 12:54:11"} 
[2026-08-02 13:00:53] local.INFO: ID present? YES  
[2026-08-02 13:00:53] local.INFO: ID value: d11cd37a-e85c-40d0-a982-201ca0db0e8d  
[2026-08-02 13:00:53] local.INFO: ID empty? NO  
[2026-08-02 13:00:53] local.INFO: Attempting to find record with ID: d11cd37a-e85c-40d0-a982-201ca0db0e8d  
[2026-08-02 13:00:53] local.INFO: Record not found, creating new with ID: d11cd37a-e85c-40d0-a982-201ca0db0e8d  
[2026-08-02 13:00:53] local.INFO: Created record: {"id":"d11cd37a-e85c-40d0-a982-201ca0db0e8d","type":"Debit","amount":"35.00","rate":"145.000000","lcy_amount":"5292.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"982fbade-d304-4de8-ae08-309bfbe45691","customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-02T10:00:53.000000Z","created_at":"2026-08-02T10:00:53.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":335.0,"debit_total":24240.0,"credit_total":"23905.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T10:00:52.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:54] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:54] local.INFO: Model: Journal  
[2026-08-02 13:00:54] local.INFO: Data received: {"id":"d1380bec-a2c5-48e8-bdd8-fe64595615bd","type":"Debit","amount":"630000.00","rate":null,"lcy_amount":"630000.000000","narrative":"CASH GIVEN TO DIANI BRANCH","uniqid":"e11066fb-43af-43b1-bb41-4f1c2ee32263","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:55:36","updated_at":"2026-08-02 12:55:38"} 
[2026-08-02 13:00:54] local.INFO: ID present? YES  
[2026-08-02 13:00:54] local.INFO: ID value: d1380bec-a2c5-48e8-bdd8-fe64595615bd  
[2026-08-02 13:00:54] local.INFO: ID empty? NO  
[2026-08-02 13:00:54] local.INFO: Attempting to find record with ID: d1380bec-a2c5-48e8-bdd8-fe64595615bd  
[2026-08-02 13:00:54] local.INFO: Record not found, creating new with ID: d1380bec-a2c5-48e8-bdd8-fe64595615bd  
[2026-08-02 13:00:54] local.INFO: Created record: {"id":"d1380bec-a2c5-48e8-bdd8-fe64595615bd","type":"Debit","amount":"630000.00","rate":null,"lcy_amount":"630000.000000","narrative":"CASH GIVEN TO DIANI BRANCH","uniqid":"e11066fb-43af-43b1-bb41-4f1c2ee32263","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:00:54.000000Z","created_at":"2026-08-02T10:00:54.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":3885473.5,"debit_total":10133959.09999999962747097015380859375,"credit_total":"6248485.60","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T14:15:29.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:55] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:55] local.INFO: Model: Journal  
[2026-08-02 13:00:55] local.INFO: Data received: {"id":"d7d37c53-03d8-47e5-927a-7c39975dda07","type":"Credit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"cfdeb638-5b8d-4ba2-abdc-4b94385ab3da","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:55:53","updated_at":"2026-08-02 12:55:54"} 
[2026-08-02 13:00:55] local.INFO: ID present? YES  
[2026-08-02 13:00:55] local.INFO: ID value: d7d37c53-03d8-47e5-927a-7c39975dda07  
[2026-08-02 13:00:55] local.INFO: ID empty? NO  
[2026-08-02 13:00:55] local.INFO: Attempting to find record with ID: d7d37c53-03d8-47e5-927a-7c39975dda07  
[2026-08-02 13:00:55] local.INFO: Record not found, creating new with ID: d7d37c53-03d8-47e5-927a-7c39975dda07  
[2026-08-02 13:00:55] local.INFO: Created record: {"id":"d7d37c53-03d8-47e5-927a-7c39975dda07","type":"Credit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"cfdeb638-5b8d-4ba2-abdc-4b94385ab3da","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:00:55.000000Z","created_at":"2026-08-02T10:00:55.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":3785473.5,"debit_total":"10133959.10","credit_total":6348485.59999999962747097015380859375,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T10:00:54.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:57] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:57] local.INFO: Model: Journal  
[2026-08-02 13:00:57] local.INFO: Data received: {"id":"dce35541-c306-4ca5-b3cb-5d3243cdb087","type":"Credit","amount":"5075.00","rate":"145.000000","lcy_amount":"5075.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"982fbade-d304-4de8-ae08-309bfbe45691","customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:54:11","updated_at":"2026-08-02 12:54:11"} 
[2026-08-02 13:00:57] local.INFO: ID present? YES  
[2026-08-02 13:00:57] local.INFO: ID value: dce35541-c306-4ca5-b3cb-5d3243cdb087  
[2026-08-02 13:00:57] local.INFO: ID empty? NO  
[2026-08-02 13:00:57] local.INFO: Attempting to find record with ID: dce35541-c306-4ca5-b3cb-5d3243cdb087  
[2026-08-02 13:00:57] local.INFO: Record not found, creating new with ID: dce35541-c306-4ca5-b3cb-5d3243cdb087  
[2026-08-02 13:00:57] local.INFO: Created record: {"id":"dce35541-c306-4ca5-b3cb-5d3243cdb087","type":"Credit","amount":"5075.00","rate":"145.000000","lcy_amount":"5075.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"982fbade-d304-4de8-ae08-309bfbe45691","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"982fbade-d304-4de8-ae08-309bfbe45691","customer_id":"98411ea5-8184-4ece-b389-6a9234d5fafa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:00:57.000000Z","created_at":"2026-08-02T10:00:57.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":132443.0,"debit_total":"22315544.10","credit_total":22183101.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T10:00:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 13:00:58] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:00:58] local.INFO: Model: Journal  
[2026-08-02 13:00:58] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:00:58] local.INFO: ID present? YES  
[2026-08-02 13:00:58] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:00:58] local.INFO: ID empty? NO  
[2026-08-02 13:00:58] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:00:58] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:00:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:00:58, 2026-08-02 13:00:58))  
[2026-08-02 13:00:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:04] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:04] local.INFO: Model: Journal  
[2026-08-02 13:01:04] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:01:04] local.INFO: ID present? YES  
[2026-08-02 13:01:04] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:04] local.INFO: ID empty? NO  
[2026-08-02 13:01:04] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:04] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:01:04, 2026-08-02 13:01:04))  
[2026-08-02 13:01:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:11] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:11] local.INFO: Model: Journal  
[2026-08-02 13:01:11] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:01:11] local.INFO: ID present? YES  
[2026-08-02 13:01:11] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:11] local.INFO: ID empty? NO  
[2026-08-02 13:01:11] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:11] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:01:11, 2026-08-02 13:01:11))  
[2026-08-02 13:01:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:17] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:17] local.INFO: Model: Journal  
[2026-08-02 13:01:17] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 13:01:17] local.INFO: ID present? YES  
[2026-08-02 13:01:17] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:17] local.INFO: ID empty? NO  
[2026-08-02 13:01:17] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:17] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 13:01:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 13:01:17, 2026-08-02 13:01:17))  
[2026-08-02 13:01:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:18] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:18] local.INFO: Model: Journal  
[2026-08-02 13:01:18] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 13:01:18] local.INFO: ID present? YES  
[2026-08-02 13:01:18] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:18] local.INFO: ID empty? NO  
[2026-08-02 13:01:18] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:18] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 13:01:18, 2026-08-02 13:01:18))  
[2026-08-02 13:01:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:25] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:25] local.INFO: Model: Journal  
[2026-08-02 13:01:25] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 13:01:25] local.INFO: ID present? YES  
[2026-08-02 13:01:25] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:25] local.INFO: ID empty? NO  
[2026-08-02 13:01:25] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:25] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 13:01:25, 2026-08-02 13:01:25))  
[2026-08-02 13:01:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:31] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:31] local.INFO: Model: Journal  
[2026-08-02 13:01:31] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 13:01:31] local.INFO: ID present? YES  
[2026-08-02 13:01:31] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:31] local.INFO: ID empty? NO  
[2026-08-02 13:01:31] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:31] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 13:01:31, 2026-08-02 13:01:31))  
[2026-08-02 13:01:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:37] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:37] local.INFO: Model: Journal  
[2026-08-02 13:01:37] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 13:01:37] local.INFO: ID present? YES  
[2026-08-02 13:01:37] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:37] local.INFO: ID empty? NO  
[2026-08-02 13:01:37] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:37] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 13:01:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 13:01:37, 2026-08-02 13:01:37))  
[2026-08-02 13:01:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 13:01:38] local.INFO: === SYNC DEBUG ===  
[2026-08-02 13:01:38] local.INFO: Model: Journal  
[2026-08-02 13:01:38] local.INFO: Data received: {"id":"fd3d8966-31b1-4ae1-9059-57e96eb28770","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"1063c6c2-048a-45b7-acaf-e85bb21677b7","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 12:54:26","updated_at":"2026-08-02 12:54:28"} 
[2026-08-02 13:01:38] local.INFO: ID present? YES  
[2026-08-02 13:01:38] local.INFO: ID value: fd3d8966-31b1-4ae1-9059-57e96eb28770  
[2026-08-02 13:01:38] local.INFO: ID empty? NO  
[2026-08-02 13:01:38] local.INFO: Attempting to find record with ID: fd3d8966-31b1-4ae1-9059-57e96eb28770  
[2026-08-02 13:01:39] local.INFO: Record not found, creating new with ID: fd3d8966-31b1-4ae1-9059-57e96eb28770  
[2026-08-02 13:01:39] local.INFO: Created record: {"id":"fd3d8966-31b1-4ae1-9059-57e96eb28770","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"1063c6c2-048a-45b7-acaf-e85bb21677b7","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T10:01:39.000000Z","created_at":"2026-08-02T10:01:39.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5650.0,"debit_total":5650.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T08:27:13.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 16:41:37] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:41:37] local.INFO: Model: Customer  
[2026-08-02 16:41:37] local.INFO: Data received: {"id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","first_name":"OLAWALE","last_name":"AKINSEHINWA","sur_name":null,"phone":"702785383","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"A35762639","nationality":"American","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-02 16:38:51","updated_at":"2026-08-02 16:38:51"} 
[2026-08-02 16:41:37] local.INFO: ID present? YES  
[2026-08-02 16:41:37] local.INFO: ID value: 3ac17474-b29e-42b3-8abb-30e4f0ba40fa  
[2026-08-02 16:41:37] local.INFO: ID empty? NO  
[2026-08-02 16:41:37] local.INFO: Attempting to find record with ID: 3ac17474-b29e-42b3-8abb-30e4f0ba40fa  
[2026-08-02 16:41:37] local.INFO: Record not found, creating new with ID: 3ac17474-b29e-42b3-8abb-30e4f0ba40fa  
[2026-08-02 16:41:38] local.INFO: Created record: {"id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","first_name":"OLAWALE","last_name":"AKINSEHINWA","sur_name":null,"phone":"702785383","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"A35762639","nationality":"American","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-02T13:41:37.000000Z","created_at":"2026-08-02T13:41:37.000000Z"} 
[2026-08-02 16:41:39] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:41:39] local.INFO: Model: Customer  
[2026-08-02 16:41:39] local.INFO: Data received: {"id":"865f3df0-e895-43f9-be9f-8a390cfaf696","first_name":"DRAGANA","last_name":"ANDELKOVIC","sur_name":null,"phone":"521245164","calling_code":"+389","email":null,"residence":"undefined","id_type":"Passport","id_number":"018336951","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-02 16:40:56","updated_at":"2026-08-02 16:40:56"} 
[2026-08-02 16:41:39] local.INFO: ID present? YES  
[2026-08-02 16:41:39] local.INFO: ID value: 865f3df0-e895-43f9-be9f-8a390cfaf696  
[2026-08-02 16:41:39] local.INFO: ID empty? NO  
[2026-08-02 16:41:39] local.INFO: Attempting to find record with ID: 865f3df0-e895-43f9-be9f-8a390cfaf696  
[2026-08-02 16:41:39] local.INFO: Record not found, creating new with ID: 865f3df0-e895-43f9-be9f-8a390cfaf696  
[2026-08-02 16:41:39] local.INFO: Created record: {"id":"865f3df0-e895-43f9-be9f-8a390cfaf696","first_name":"DRAGANA","last_name":"ANDELKOVIC","sur_name":null,"phone":"521245164","calling_code":"+389","email":null,"residence":"undefined","id_type":"Passport","id_number":"018336951","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-02T13:41:39.000000Z","created_at":"2026-08-02T13:41:39.000000Z"} 
[2026-08-02 16:41:40] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:41:40] local.INFO: Model: Transaction  
[2026-08-02 16:41:40] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:41:40] local.INFO: ID present? YES  
[2026-08-02 16:41:40] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:40] local.INFO: ID empty? NO  
[2026-08-02 16:41:40] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:40] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 16:41:40, 2026-08-02 16:41:40))  
[2026-08-02 16:41:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:41:47] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:41:47] local.INFO: Model: Transaction  
[2026-08-02 16:41:47] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:41:47] local.INFO: ID present? YES  
[2026-08-02 16:41:47] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:47] local.INFO: ID empty? NO  
[2026-08-02 16:41:47] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:47] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 16:41:47, 2026-08-02 16:41:47))  
[2026-08-02 16:41:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:41:53] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:41:53] local.INFO: Model: Transaction  
[2026-08-02 16:41:53] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:41:53] local.INFO: ID present? YES  
[2026-08-02 16:41:53] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:53] local.INFO: ID empty? NO  
[2026-08-02 16:41:53] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:53] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 16:41:53, 2026-08-02 16:41:53))  
[2026-08-02 16:41:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:41:59] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:41:59] local.INFO: Model: Transaction  
[2026-08-02 16:41:59] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:41:59] local.INFO: ID present? YES  
[2026-08-02 16:41:59] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:59] local.INFO: ID empty? NO  
[2026-08-02 16:41:59] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:59] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 16:41:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 16:41:59, 2026-08-02 16:41:59))  
[2026-08-02 16:41:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:01] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:01] local.INFO: Model: Transaction  
[2026-08-02 16:42:01] local.INFO: Data received: {"id":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3633-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:41:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b6891eed-0e01-4e70-8189-748551a72eb8","cancellation_reason":null,"customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-02 16:41:10","updated_at":"2026-08-02 16:41:12"} 
[2026-08-02 16:42:01] local.INFO: ID present? YES  
[2026-08-02 16:42:01] local.INFO: ID value: 08f25aba-0587-420f-91ad-98d167e046da  
[2026-08-02 16:42:01] local.INFO: ID empty? NO  
[2026-08-02 16:42:01] local.INFO: Attempting to find record with ID: 08f25aba-0587-420f-91ad-98d167e046da  
[2026-08-02 16:42:01] local.INFO: Record not found, creating new with ID: 08f25aba-0587-420f-91ad-98d167e046da  
[2026-08-02 16:42:01] local.INFO: Created record: {"id":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","type":"Buying","amount":300,"rate":145,"negotiated_rate":"0","amount_paid":43500,"amount_received":300,"narrative":null,"transaction_number":"TR-3633-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:41:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"b6891eed-0e01-4e70-8189-748551a72eb8","cancellation_reason":null,"customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-02T13:42:01.000000Z","created_at":"2026-08-02T13:42:01.000000Z"} 
[2026-08-02 16:42:02] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:02] local.INFO: Model: Transaction  
[2026-08-02 16:42:02] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:42:02] local.INFO: ID present? YES  
[2026-08-02 16:42:02] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:02] local.INFO: ID empty? NO  
[2026-08-02 16:42:02] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:02] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 16:42:02, 2026-08-02 16:42:02))  
[2026-08-02 16:42:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:08] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:08] local.INFO: Model: Transaction  
[2026-08-02 16:42:08] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:42:08] local.INFO: ID present? YES  
[2026-08-02 16:42:08] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:08] local.INFO: ID empty? NO  
[2026-08-02 16:42:08] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:08] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 16:42:08, 2026-08-02 16:42:08))  
[2026-08-02 16:42:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:15] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:15] local.INFO: Model: Transaction  
[2026-08-02 16:42:15] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:42:15] local.INFO: ID present? YES  
[2026-08-02 16:42:15] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:15] local.INFO: ID empty? NO  
[2026-08-02 16:42:15] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:15] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 16:42:15, 2026-08-02 16:42:15))  
[2026-08-02 16:42:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:21] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:21] local.INFO: Model: Transaction  
[2026-08-02 16:42:21] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:42:21] local.INFO: ID present? YES  
[2026-08-02 16:42:21] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:21] local.INFO: ID empty? NO  
[2026-08-02 16:42:21] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:21] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 16:42:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 16:42:21, 2026-08-02 16:42:21))  
[2026-08-02 16:42:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:22] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:22] local.INFO: Model: Transaction  
[2026-08-02 16:42:22] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:42:22] local.INFO: ID present? YES  
[2026-08-02 16:42:22] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:22] local.INFO: ID empty? NO  
[2026-08-02 16:42:22] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:22] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 16:42:22, 2026-08-02 16:42:22))  
[2026-08-02 16:42:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:29] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:29] local.INFO: Model: Transaction  
[2026-08-02 16:42:29] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:42:29] local.INFO: ID present? YES  
[2026-08-02 16:42:29] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:29] local.INFO: ID empty? NO  
[2026-08-02 16:42:29] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:29] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 16:42:29, 2026-08-02 16:42:29))  
[2026-08-02 16:42:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:35] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:35] local.INFO: Model: Transaction  
[2026-08-02 16:42:35] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:42:35] local.INFO: ID present? YES  
[2026-08-02 16:42:35] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:35] local.INFO: ID empty? NO  
[2026-08-02 16:42:35] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:35] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 16:42:35, 2026-08-02 16:42:35))  
[2026-08-02 16:42:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:41] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:41] local.INFO: Model: Transaction  
[2026-08-02 16:42:41] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:42:41] local.INFO: ID present? YES  
[2026-08-02 16:42:41] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:41] local.INFO: ID empty? NO  
[2026-08-02 16:42:41] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:41] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 16:42:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 16:42:41, 2026-08-02 16:42:41))  
[2026-08-02 16:42:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:43] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:43] local.INFO: Model: Transaction  
[2026-08-02 16:42:43] local.INFO: Data received: {"id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","type":"Buying","amount":50,"rate":127.5,"negotiated_rate":"0","amount_paid":6375,"amount_received":50,"narrative":null,"transaction_number":"TR-3629-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 15:58:44","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"606967e5-7957-4d99-afa6-f50073a48454","cancellation_reason":null,"customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-02 15:58:42","updated_at":"2026-08-02 15:58:44"} 
[2026-08-02 16:42:43] local.INFO: ID present? YES  
[2026-08-02 16:42:43] local.INFO: ID value: 81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9  
[2026-08-02 16:42:43] local.INFO: ID empty? NO  
[2026-08-02 16:42:43] local.INFO: Attempting to find record with ID: 81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9  
[2026-08-02 16:42:43] local.INFO: Record not found, creating new with ID: 81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9  
[2026-08-02 16:42:43] local.INFO: Created record: {"id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","type":"Buying","amount":50,"rate":127.5,"negotiated_rate":"0","amount_paid":6375,"amount_received":50,"narrative":null,"transaction_number":"TR-3629-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 15:58:44","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"606967e5-7957-4d99-afa6-f50073a48454","cancellation_reason":null,"customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-02T13:42:43.000000Z","created_at":"2026-08-02T13:42:43.000000Z"} 
[2026-08-02 16:42:44] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:44] local.INFO: Model: Transaction  
[2026-08-02 16:42:44] local.INFO: Data received: {"id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","type":"Buying","amount":2,"rate":100,"negotiated_rate":"0","amount_paid":200,"amount_received":2,"narrative":null,"transaction_number":"TR-3631-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:39:20","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d7c6f16a-3c89-4c3b-992e-97f9d7ef77e1","cancellation_reason":null,"customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-02 16:39:18","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:42:44] local.INFO: ID present? YES  
[2026-08-02 16:42:44] local.INFO: ID value: bcecd96b-223b-4f48-a5bb-d2beb72b110b  
[2026-08-02 16:42:44] local.INFO: ID empty? NO  
[2026-08-02 16:42:44] local.INFO: Attempting to find record with ID: bcecd96b-223b-4f48-a5bb-d2beb72b110b  
[2026-08-02 16:42:44] local.INFO: Record not found, creating new with ID: bcecd96b-223b-4f48-a5bb-d2beb72b110b  
[2026-08-02 16:42:44] local.INFO: Created record: {"id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","type":"Buying","amount":2,"rate":100,"negotiated_rate":"0","amount_paid":200,"amount_received":2,"narrative":null,"transaction_number":"TR-3631-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:39:20","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d7c6f16a-3c89-4c3b-992e-97f9d7ef77e1","cancellation_reason":null,"customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-02T13:42:44.000000Z","created_at":"2026-08-02T13:42:44.000000Z"} 
[2026-08-02 16:42:45] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:45] local.INFO: Model: Transaction  
[2026-08-02 16:42:45] local.INFO: Data received: {"id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3630-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:39:20","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d7c6f16a-3c89-4c3b-992e-97f9d7ef77e1","cancellation_reason":null,"customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-02 16:39:17","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:42:45] local.INFO: ID present? YES  
[2026-08-02 16:42:45] local.INFO: ID value: c2bea0ae-ec7a-4d88-8527-56efef9ce642  
[2026-08-02 16:42:45] local.INFO: ID empty? NO  
[2026-08-02 16:42:45] local.INFO: Attempting to find record with ID: c2bea0ae-ec7a-4d88-8527-56efef9ce642  
[2026-08-02 16:42:45] local.INFO: Record not found, creating new with ID: c2bea0ae-ec7a-4d88-8527-56efef9ce642  
[2026-08-02 16:42:45] local.INFO: Created record: {"id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3630-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:39:20","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d7c6f16a-3c89-4c3b-992e-97f9d7ef77e1","cancellation_reason":null,"customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-02T13:42:45.000000Z","created_at":"2026-08-02T13:42:45.000000Z"} 
[2026-08-02 16:42:47] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:47] local.INFO: Model: Transaction  
[2026-08-02 16:42:47] local.INFO: Data received: {"id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","type":"Buying","amount":200,"rate":128,"negotiated_rate":"0","amount_paid":25600,"amount_received":200,"narrative":null,"transaction_number":"TR-3632-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:39:53","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"94585d01-3159-404e-82c8-a27ccffd7085","cancellation_reason":null,"customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-02 16:39:51","updated_at":"2026-08-02 16:39:53"} 
[2026-08-02 16:42:47] local.INFO: ID present? YES  
[2026-08-02 16:42:47] local.INFO: ID value: f6bff7dd-8418-40bf-baf8-15d758bbd30e  
[2026-08-02 16:42:47] local.INFO: ID empty? NO  
[2026-08-02 16:42:47] local.INFO: Attempting to find record with ID: f6bff7dd-8418-40bf-baf8-15d758bbd30e  
[2026-08-02 16:42:47] local.INFO: Record not found, creating new with ID: f6bff7dd-8418-40bf-baf8-15d758bbd30e  
[2026-08-02 16:42:47] local.INFO: Created record: {"id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","type":"Buying","amount":200,"rate":128,"negotiated_rate":"0","amount_paid":25600,"amount_received":200,"narrative":null,"transaction_number":"TR-3632-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-02 16:39:53","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"94585d01-3159-404e-82c8-a27ccffd7085","cancellation_reason":null,"customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-02T13:42:47.000000Z","created_at":"2026-08-02T13:42:47.000000Z"} 
[2026-08-02 16:42:48] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:48] local.INFO: Model: Journal  
[2026-08-02 16:42:48] local.INFO: Data received: {"id":"0ce89e66-f6dc-4a9b-9cee-9a536cbee868","type":"Credit","amount":"58.00","rate":"100.000000","lcy_amount":"58.000000","narrative":"Gain on TR-3631-2026","uniqid":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:39:20","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:42:48] local.INFO: ID present? YES  
[2026-08-02 16:42:48] local.INFO: ID value: 0ce89e66-f6dc-4a9b-9cee-9a536cbee868  
[2026-08-02 16:42:48] local.INFO: ID empty? NO  
[2026-08-02 16:42:48] local.INFO: Attempting to find record with ID: 0ce89e66-f6dc-4a9b-9cee-9a536cbee868  
[2026-08-02 16:42:48] local.INFO: Record not found, creating new with ID: 0ce89e66-f6dc-4a9b-9cee-9a536cbee868  
[2026-08-02 16:42:48] local.INFO: Created record: {"id":"0ce89e66-f6dc-4a9b-9cee-9a536cbee868","type":"Credit","amount":"58.00","rate":"100.000000","lcy_amount":"58.000000","narrative":"Gain on TR-3631-2026","uniqid":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:42:48.000000Z","created_at":"2026-08-02T13:42:48.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-130589.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":137901.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T10:00:49.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 16:42:50] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:50] local.INFO: Model: Journal  
[2026-08-02 16:42:50] local.INFO: Data received: {"id":"11d88ede-9e75-44a1-b617-d2cdeccf7ddb","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3633-2026","uniqid":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"08f25aba-0587-420f-91ad-98d167e046da","customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:41:12","updated_at":"2026-08-02 16:41:12"} 
[2026-08-02 16:42:50] local.INFO: ID present? YES  
[2026-08-02 16:42:50] local.INFO: ID value: 11d88ede-9e75-44a1-b617-d2cdeccf7ddb  
[2026-08-02 16:42:50] local.INFO: ID empty? NO  
[2026-08-02 16:42:50] local.INFO: Attempting to find record with ID: 11d88ede-9e75-44a1-b617-d2cdeccf7ddb  
[2026-08-02 16:42:50] local.INFO: Record not found, creating new with ID: 11d88ede-9e75-44a1-b617-d2cdeccf7ddb  
[2026-08-02 16:42:50] local.INFO: Created record: {"id":"11d88ede-9e75-44a1-b617-d2cdeccf7ddb","type":"Credit","amount":"1860.00","rate":"145.000000","lcy_amount":"1860.000000","narrative":"Gain on TR-3633-2026","uniqid":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"08f25aba-0587-420f-91ad-98d167e046da","customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:42:50.000000Z","created_at":"2026-08-02T13:42:50.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-132449.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":139761.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T13:42:48.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 16:42:51] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:51] local.INFO: Model: Journal  
[2026-08-02 16:42:51] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:42:51] local.INFO: ID present? YES  
[2026-08-02 16:42:51] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:42:51] local.INFO: ID empty? NO  
[2026-08-02 16:42:51] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:42:51] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:42:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:42:51, 2026-08-02 16:42:51))  
[2026-08-02 16:42:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:42:57] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:42:57] local.INFO: Model: Journal  
[2026-08-02 16:42:57] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:42:57] local.INFO: ID present? YES  
[2026-08-02 16:42:57] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:42:57] local.INFO: ID empty? NO  
[2026-08-02 16:42:57] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:42:57] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:42:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:42:57, 2026-08-02 16:42:57))  
[2026-08-02 16:42:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:04] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:04] local.INFO: Model: Journal  
[2026-08-02 16:43:04] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:43:04] local.INFO: ID present? YES  
[2026-08-02 16:43:04] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:43:04] local.INFO: ID empty? NO  
[2026-08-02 16:43:04] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:43:04] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:43:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:04, 2026-08-02 16:43:04))  
[2026-08-02 16:43:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:10] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:10] local.INFO: Model: Journal  
[2026-08-02 16:43:10] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:43:10] local.INFO: ID present? YES  
[2026-08-02 16:43:10] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:43:10] local.INFO: ID empty? NO  
[2026-08-02 16:43:10] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:43:10] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 16:43:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:10, 2026-08-02 16:43:10))  
[2026-08-02 16:43:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:11] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:11] local.INFO: Model: Journal  
[2026-08-02 16:43:11] local.INFO: Data received: {"id":"305d8a6a-e5b0-4dbd-939a-4ce3bd90967b","type":"Credit","amount":"75.00","rate":"127.500000","lcy_amount":"75.000000","narrative":"Gain on TR-3629-2026","uniqid":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 15:58:44","updated_at":"2026-08-02 15:58:44"} 
[2026-08-02 16:43:11] local.INFO: ID present? YES  
[2026-08-02 16:43:11] local.INFO: ID value: 305d8a6a-e5b0-4dbd-939a-4ce3bd90967b  
[2026-08-02 16:43:11] local.INFO: ID empty? NO  
[2026-08-02 16:43:11] local.INFO: Attempting to find record with ID: 305d8a6a-e5b0-4dbd-939a-4ce3bd90967b  
[2026-08-02 16:43:11] local.INFO: Record not found, creating new with ID: 305d8a6a-e5b0-4dbd-939a-4ce3bd90967b  
[2026-08-02 16:43:11] local.INFO: Created record: {"id":"305d8a6a-e5b0-4dbd-939a-4ce3bd90967b","type":"Credit","amount":"75.00","rate":"127.500000","lcy_amount":"75.000000","narrative":"Gain on TR-3629-2026","uniqid":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:43:11.000000Z","created_at":"2026-08-02T13:43:11.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-132524.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":139836.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T13:42:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 16:43:12] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:12] local.INFO: Model: Journal  
[2026-08-02 16:43:12] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:43:12] local.INFO: ID present? YES  
[2026-08-02 16:43:12] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:12] local.INFO: ID empty? NO  
[2026-08-02 16:43:12] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:12] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:12, 2026-08-02 16:43:12))  
[2026-08-02 16:43:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:19] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:19] local.INFO: Model: Journal  
[2026-08-02 16:43:19] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:43:19] local.INFO: ID present? YES  
[2026-08-02 16:43:19] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:19] local.INFO: ID empty? NO  
[2026-08-02 16:43:19] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:19] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:19, 2026-08-02 16:43:19))  
[2026-08-02 16:43:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:25] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:25] local.INFO: Model: Journal  
[2026-08-02 16:43:25] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:43:25] local.INFO: ID present? YES  
[2026-08-02 16:43:25] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:25] local.INFO: ID empty? NO  
[2026-08-02 16:43:25] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:25] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:25, 2026-08-02 16:43:25))  
[2026-08-02 16:43:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:32] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:32] local.INFO: Model: Journal  
[2026-08-02 16:43:32] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:43:32] local.INFO: ID present? YES  
[2026-08-02 16:43:32] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:32] local.INFO: ID empty? NO  
[2026-08-02 16:43:32] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:32] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 16:43:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:32, 2026-08-02 16:43:32))  
[2026-08-02 16:43:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:33] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:33] local.INFO: Model: Journal  
[2026-08-02 16:43:33] local.INFO: Data received: {"id":"4341092e-9ee0-4c15-8cfd-aec330d1820f","type":"Credit","amount":"200.00","rate":"128.000000","lcy_amount":"200.000000","narrative":"Gain on TR-3632-2026","uniqid":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:39:53","updated_at":"2026-08-02 16:39:53"} 
[2026-08-02 16:43:33] local.INFO: ID present? YES  
[2026-08-02 16:43:33] local.INFO: ID value: 4341092e-9ee0-4c15-8cfd-aec330d1820f  
[2026-08-02 16:43:33] local.INFO: ID empty? NO  
[2026-08-02 16:43:33] local.INFO: Attempting to find record with ID: 4341092e-9ee0-4c15-8cfd-aec330d1820f  
[2026-08-02 16:43:33] local.INFO: Record not found, creating new with ID: 4341092e-9ee0-4c15-8cfd-aec330d1820f  
[2026-08-02 16:43:33] local.INFO: Created record: {"id":"4341092e-9ee0-4c15-8cfd-aec330d1820f","type":"Credit","amount":"200.00","rate":"128.000000","lcy_amount":"200.000000","narrative":"Gain on TR-3632-2026","uniqid":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:43:33.000000Z","created_at":"2026-08-02T13:43:33.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-132724.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":140036.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T13:43:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 16:43:35] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:35] local.INFO: Model: Journal  
[2026-08-02 16:43:35] local.INFO: Data received: {"id":"4780afba-3936-4b02-bee2-6dcab92efb8e","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"08f25aba-0587-420f-91ad-98d167e046da","customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:41:12","updated_at":"2026-08-02 16:41:12"} 
[2026-08-02 16:43:35] local.INFO: ID present? YES  
[2026-08-02 16:43:35] local.INFO: ID value: 4780afba-3936-4b02-bee2-6dcab92efb8e  
[2026-08-02 16:43:35] local.INFO: ID empty? NO  
[2026-08-02 16:43:35] local.INFO: Attempting to find record with ID: 4780afba-3936-4b02-bee2-6dcab92efb8e  
[2026-08-02 16:43:35] local.INFO: Record not found, creating new with ID: 4780afba-3936-4b02-bee2-6dcab92efb8e  
[2026-08-02 16:43:35] local.INFO: Created record: {"id":"4780afba-3936-4b02-bee2-6dcab92efb8e","type":"Credit","amount":"43500.00","rate":"145.000000","lcy_amount":"43500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"08f25aba-0587-420f-91ad-98d167e046da","customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:43:35.000000Z","created_at":"2026-08-02T13:43:35.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":88943.0,"debit_total":"22315544.10","credit_total":22226601.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T10:00:57.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:43:36] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:36] local.INFO: Model: Journal  
[2026-08-02 16:43:36] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:43:36] local.INFO: ID present? YES  
[2026-08-02 16:43:36] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:36] local.INFO: ID empty? NO  
[2026-08-02 16:43:36] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:36] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:36, 2026-08-02 16:43:36))  
[2026-08-02 16:43:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:42] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:42] local.INFO: Model: Journal  
[2026-08-02 16:43:42] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:43:42] local.INFO: ID present? YES  
[2026-08-02 16:43:42] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:42] local.INFO: ID empty? NO  
[2026-08-02 16:43:42] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:42] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:42, 2026-08-02 16:43:42))  
[2026-08-02 16:43:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:49] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:49] local.INFO: Model: Journal  
[2026-08-02 16:43:49] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:43:49] local.INFO: ID present? YES  
[2026-08-02 16:43:49] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:49] local.INFO: ID empty? NO  
[2026-08-02 16:43:49] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:49] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:49, 2026-08-02 16:43:49))  
[2026-08-02 16:43:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:55] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:55] local.INFO: Model: Journal  
[2026-08-02 16:43:55] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:43:55] local.INFO: ID present? YES  
[2026-08-02 16:43:55] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:55] local.INFO: ID empty? NO  
[2026-08-02 16:43:55] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:55] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 16:43:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:43:55, 2026-08-02 16:43:55))  
[2026-08-02 16:43:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:43:56] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:56] local.INFO: Model: Journal  
[2026-08-02 16:43:56] local.INFO: Data received: {"id":"60ff8e9b-3c71-497f-94a6-362300d6350f","type":"Debit","amount":"2.00","rate":"100.000000","lcy_amount":"258.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 16:39:20","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:43:56] local.INFO: ID present? YES  
[2026-08-02 16:43:56] local.INFO: ID value: 60ff8e9b-3c71-497f-94a6-362300d6350f  
[2026-08-02 16:43:56] local.INFO: ID empty? NO  
[2026-08-02 16:43:56] local.INFO: Attempting to find record with ID: 60ff8e9b-3c71-497f-94a6-362300d6350f  
[2026-08-02 16:43:56] local.INFO: Record not found, creating new with ID: 60ff8e9b-3c71-497f-94a6-362300d6350f  
[2026-08-02 16:43:56] local.INFO: Created record: {"id":"60ff8e9b-3c71-497f-94a6-362300d6350f","type":"Debit","amount":"2.00","rate":"100.000000","lcy_amount":"258.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T13:43:56.000000Z","created_at":"2026-08-02T13:43:56.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":2.0,"debit_total":81041.0,"credit_total":"81039.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T10:00:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:43:58] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:58] local.INFO: Model: Journal  
[2026-08-02 16:43:58] local.INFO: Data received: {"id":"6147628c-e4e8-44d0-b5ba-b4d2260ea24d","type":"Credit","amount":"25600.00","rate":"128.000000","lcy_amount":"25600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:39:53","updated_at":"2026-08-02 16:39:53"} 
[2026-08-02 16:43:58] local.INFO: ID present? YES  
[2026-08-02 16:43:58] local.INFO: ID value: 6147628c-e4e8-44d0-b5ba-b4d2260ea24d  
[2026-08-02 16:43:58] local.INFO: ID empty? NO  
[2026-08-02 16:43:58] local.INFO: Attempting to find record with ID: 6147628c-e4e8-44d0-b5ba-b4d2260ea24d  
[2026-08-02 16:43:58] local.INFO: Record not found, creating new with ID: 6147628c-e4e8-44d0-b5ba-b4d2260ea24d  
[2026-08-02 16:43:58] local.INFO: Created record: {"id":"6147628c-e4e8-44d0-b5ba-b4d2260ea24d","type":"Credit","amount":"25600.00","rate":"128.000000","lcy_amount":"25600.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:43:58.000000Z","created_at":"2026-08-02T13:43:58.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":63343.0,"debit_total":"22315544.10","credit_total":22252201.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:43:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:43:59] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:43:59] local.INFO: Model: Journal  
[2026-08-02 16:43:59] local.INFO: Data received: {"id":"6552f5c0-f526-4036-85aa-405a0eb0b326","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3630-2026","uniqid":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:39:20","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:43:59] local.INFO: ID present? YES  
[2026-08-02 16:43:59] local.INFO: ID value: 6552f5c0-f526-4036-85aa-405a0eb0b326  
[2026-08-02 16:43:59] local.INFO: ID empty? NO  
[2026-08-02 16:43:59] local.INFO: Attempting to find record with ID: 6552f5c0-f526-4036-85aa-405a0eb0b326  
[2026-08-02 16:43:59] local.INFO: Record not found, creating new with ID: 6552f5c0-f526-4036-85aa-405a0eb0b326  
[2026-08-02 16:43:59] local.INFO: Created record: {"id":"6552f5c0-f526-4036-85aa-405a0eb0b326","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3630-2026","uniqid":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:43:59.000000Z","created_at":"2026-08-02T13:43:59.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-133024.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":140336.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T13:43:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 16:44:01] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:01] local.INFO: Model: Journal  
[2026-08-02 16:44:01] local.INFO: Data received: {"id":"6c0e4634-bd2f-4051-bf5e-df8bcc3117ef","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 16:39:20","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:44:01] local.INFO: ID present? YES  
[2026-08-02 16:44:01] local.INFO: ID value: 6c0e4634-bd2f-4051-bf5e-df8bcc3117ef  
[2026-08-02 16:44:01] local.INFO: ID empty? NO  
[2026-08-02 16:44:01] local.INFO: Attempting to find record with ID: 6c0e4634-bd2f-4051-bf5e-df8bcc3117ef  
[2026-08-02 16:44:01] local.INFO: Record not found, creating new with ID: 6c0e4634-bd2f-4051-bf5e-df8bcc3117ef  
[2026-08-02 16:44:01] local.INFO: Created record: {"id":"6c0e4634-bd2f-4051-bf5e-df8bcc3117ef","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T13:44:01.000000Z","created_at":"2026-08-02T13:44:01.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":302.0,"debit_total":81341.0,"credit_total":"81039.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:43:56.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:44:02] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:02] local.INFO: Model: Journal  
[2026-08-02 16:44:02] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:44:02] local.INFO: ID present? YES  
[2026-08-02 16:44:02] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:02] local.INFO: ID empty? NO  
[2026-08-02 16:44:02] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:02] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:44:02, 2026-08-02 16:44:02))  
[2026-08-02 16:44:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:08] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:08] local.INFO: Model: Journal  
[2026-08-02 16:44:08] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:44:08] local.INFO: ID present? YES  
[2026-08-02 16:44:08] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:08] local.INFO: ID empty? NO  
[2026-08-02 16:44:08] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:08] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:44:08, 2026-08-02 16:44:08))  
[2026-08-02 16:44:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:15] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:15] local.INFO: Model: Journal  
[2026-08-02 16:44:15] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:44:15] local.INFO: ID present? YES  
[2026-08-02 16:44:15] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:15] local.INFO: ID empty? NO  
[2026-08-02 16:44:15] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:15] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:44:15, 2026-08-02 16:44:15))  
[2026-08-02 16:44:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:21] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:21] local.INFO: Model: Journal  
[2026-08-02 16:44:21] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:44:21] local.INFO: ID present? YES  
[2026-08-02 16:44:21] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:21] local.INFO: ID empty? NO  
[2026-08-02 16:44:21] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:21] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 16:44:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:44:21, 2026-08-02 16:44:21))  
[2026-08-02 16:44:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:22] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:22] local.INFO: Model: Journal  
[2026-08-02 16:44:22] local.INFO: Data received: {"id":"8054ea2c-a5db-4e7f-81c5-406137a1bffd","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"08f25aba-0587-420f-91ad-98d167e046da","customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-02 16:41:12","updated_at":"2026-08-02 16:41:12"} 
[2026-08-02 16:44:22] local.INFO: ID present? YES  
[2026-08-02 16:44:22] local.INFO: ID value: 8054ea2c-a5db-4e7f-81c5-406137a1bffd  
[2026-08-02 16:44:22] local.INFO: ID empty? NO  
[2026-08-02 16:44:22] local.INFO: Attempting to find record with ID: 8054ea2c-a5db-4e7f-81c5-406137a1bffd  
[2026-08-02 16:44:22] local.INFO: Record not found, creating new with ID: 8054ea2c-a5db-4e7f-81c5-406137a1bffd  
[2026-08-02 16:44:22] local.INFO: Created record: {"id":"8054ea2c-a5db-4e7f-81c5-406137a1bffd","type":"Debit","amount":"300.00","rate":"145.000000","lcy_amount":"45360.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"08f25aba-0587-420f-91ad-98d167e046da","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"08f25aba-0587-420f-91ad-98d167e046da","customer_id":"865f3df0-e895-43f9-be9f-8a390cfaf696","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-02T13:44:22.000000Z","created_at":"2026-08-02T13:44:22.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":635.0,"debit_total":24540.0,"credit_total":"23905.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T10:00:53.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:44:24] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:24] local.INFO: Model: Journal  
[2026-08-02 16:44:24] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:44:24] local.INFO: ID present? YES  
[2026-08-02 16:44:24] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:24] local.INFO: ID empty? NO  
[2026-08-02 16:44:24] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:24] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 16:44:24, 2026-08-02 16:44:24))  
[2026-08-02 16:44:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:30] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:30] local.INFO: Model: Journal  
[2026-08-02 16:44:30] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:44:30] local.INFO: ID present? YES  
[2026-08-02 16:44:30] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:30] local.INFO: ID empty? NO  
[2026-08-02 16:44:30] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:30] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 16:44:30, 2026-08-02 16:44:30))  
[2026-08-02 16:44:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:36] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:36] local.INFO: Model: Journal  
[2026-08-02 16:44:36] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:44:36] local.INFO: ID present? YES  
[2026-08-02 16:44:36] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:36] local.INFO: ID empty? NO  
[2026-08-02 16:44:36] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:36] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 16:44:36, 2026-08-02 16:44:36))  
[2026-08-02 16:44:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:43] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:43] local.INFO: Model: Journal  
[2026-08-02 16:44:43] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:44:43] local.INFO: ID present? YES  
[2026-08-02 16:44:43] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:43] local.INFO: ID empty? NO  
[2026-08-02 16:44:43] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:43] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 16:44:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 16:44:43, 2026-08-02 16:44:43))  
[2026-08-02 16:44:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:44] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:44] local.INFO: Model: Journal  
[2026-08-02 16:44:44] local.INFO: Data received: {"id":"8de7dba5-a6a0-4fd5-857c-0615b97decca","type":"Debit","amount":"200.00","rate":"128.000000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 16:39:53","updated_at":"2026-08-02 16:39:53"} 
[2026-08-02 16:44:44] local.INFO: ID present? YES  
[2026-08-02 16:44:44] local.INFO: ID value: 8de7dba5-a6a0-4fd5-857c-0615b97decca  
[2026-08-02 16:44:44] local.INFO: ID empty? NO  
[2026-08-02 16:44:44] local.INFO: Attempting to find record with ID: 8de7dba5-a6a0-4fd5-857c-0615b97decca  
[2026-08-02 16:44:44] local.INFO: Record not found, creating new with ID: 8de7dba5-a6a0-4fd5-857c-0615b97decca  
[2026-08-02 16:44:44] local.INFO: Created record: {"id":"8de7dba5-a6a0-4fd5-857c-0615b97decca","type":"Debit","amount":"200.00","rate":"128.000000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"f6bff7dd-8418-40bf-baf8-15d758bbd30e","customer_id":"675d8bfb-f952-441e-899d-8b8cfb4986f2","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T13:44:44.000000Z","created_at":"2026-08-02T13:44:44.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":502.0,"debit_total":81541.0,"credit_total":"81039.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:44:01.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:44:45] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:45] local.INFO: Model: Journal  
[2026-08-02 16:44:45] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:44:45] local.INFO: ID present? YES  
[2026-08-02 16:44:45] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:45] local.INFO: ID empty? NO  
[2026-08-02 16:44:45] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:45] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 16:44:45, 2026-08-02 16:44:45))  
[2026-08-02 16:44:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:52] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:52] local.INFO: Model: Journal  
[2026-08-02 16:44:52] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:44:52] local.INFO: ID present? YES  
[2026-08-02 16:44:52] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:52] local.INFO: ID empty? NO  
[2026-08-02 16:44:52] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:52] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 16:44:52, 2026-08-02 16:44:52))  
[2026-08-02 16:44:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:44:58] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:44:58] local.INFO: Model: Journal  
[2026-08-02 16:44:58] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:44:58] local.INFO: ID present? YES  
[2026-08-02 16:44:58] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:58] local.INFO: ID empty? NO  
[2026-08-02 16:44:58] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:58] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:44:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 16:44:58, 2026-08-02 16:44:58))  
[2026-08-02 16:44:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:04] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:04] local.INFO: Model: Journal  
[2026-08-02 16:45:04] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 16:45:04] local.INFO: ID present? YES  
[2026-08-02 16:45:04] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:45:04] local.INFO: ID empty? NO  
[2026-08-02 16:45:04] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:45:04] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 16:45:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 16:45:04, 2026-08-02 16:45:04))  
[2026-08-02 16:45:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:06] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:06] local.INFO: Model: Journal  
[2026-08-02 16:45:06] local.INFO: Data received: {"id":"9e1d9b47-d3e8-420c-b28a-c876fd18e443","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:39:20","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:45:06] local.INFO: ID present? YES  
[2026-08-02 16:45:06] local.INFO: ID value: 9e1d9b47-d3e8-420c-b28a-c876fd18e443  
[2026-08-02 16:45:06] local.INFO: ID empty? NO  
[2026-08-02 16:45:06] local.INFO: Attempting to find record with ID: 9e1d9b47-d3e8-420c-b28a-c876fd18e443  
[2026-08-02 16:45:06] local.INFO: Record not found, creating new with ID: 9e1d9b47-d3e8-420c-b28a-c876fd18e443  
[2026-08-02 16:45:06] local.INFO: Created record: {"id":"9e1d9b47-d3e8-420c-b28a-c876fd18e443","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"c2bea0ae-ec7a-4d88-8527-56efef9ce642","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:45:06.000000Z","created_at":"2026-08-02T13:45:06.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":24943.0,"debit_total":"22315544.10","credit_total":22290601.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:43:58.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:45:07] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:07] local.INFO: Model: Journal  
[2026-08-02 16:45:07] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:07] local.INFO: ID present? YES  
[2026-08-02 16:45:07] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:07] local.INFO: ID empty? NO  
[2026-08-02 16:45:07] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:07] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:07, 2026-08-02 16:45:07))  
[2026-08-02 16:45:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:13] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:13] local.INFO: Model: Journal  
[2026-08-02 16:45:13] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:13] local.INFO: ID present? YES  
[2026-08-02 16:45:13] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:13] local.INFO: ID empty? NO  
[2026-08-02 16:45:13] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:13] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:13, 2026-08-02 16:45:13))  
[2026-08-02 16:45:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:20] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:20] local.INFO: Model: Journal  
[2026-08-02 16:45:20] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:20] local.INFO: ID present? YES  
[2026-08-02 16:45:20] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:20] local.INFO: ID empty? NO  
[2026-08-02 16:45:20] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:20] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:20, 2026-08-02 16:45:20))  
[2026-08-02 16:45:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:26] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:26] local.INFO: Model: Journal  
[2026-08-02 16:45:26] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:26] local.INFO: ID present? YES  
[2026-08-02 16:45:26] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:26] local.INFO: ID empty? NO  
[2026-08-02 16:45:26] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:26] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 16:45:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:26, 2026-08-02 16:45:26))  
[2026-08-02 16:45:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:27] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:27] local.INFO: Model: Journal  
[2026-08-02 16:45:27] local.INFO: Data received: {"id":"dc15d794-5b4d-4e9e-9751-51aed8c4f7e3","type":"Debit","amount":"50.00","rate":"127.500000","lcy_amount":"6450.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 15:58:44","updated_at":"2026-08-02 15:58:44"} 
[2026-08-02 16:45:27] local.INFO: ID present? YES  
[2026-08-02 16:45:27] local.INFO: ID value: dc15d794-5b4d-4e9e-9751-51aed8c4f7e3  
[2026-08-02 16:45:27] local.INFO: ID empty? NO  
[2026-08-02 16:45:27] local.INFO: Attempting to find record with ID: dc15d794-5b4d-4e9e-9751-51aed8c4f7e3  
[2026-08-02 16:45:27] local.INFO: Record not found, creating new with ID: dc15d794-5b4d-4e9e-9751-51aed8c4f7e3  
[2026-08-02 16:45:27] local.INFO: Created record: {"id":"dc15d794-5b4d-4e9e-9751-51aed8c4f7e3","type":"Debit","amount":"50.00","rate":"127.500000","lcy_amount":"6450.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T13:45:27.000000Z","created_at":"2026-08-02T13:45:27.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":552.0,"debit_total":81591.0,"credit_total":"81039.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:44:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:45:29] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:29] local.INFO: Model: Journal  
[2026-08-02 16:45:29] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:29] local.INFO: ID present? YES  
[2026-08-02 16:45:29] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:29] local.INFO: ID empty? NO  
[2026-08-02 16:45:29] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:29] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:29, 2026-08-02 16:45:29))  
[2026-08-02 16:45:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:35] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:35] local.INFO: Model: Journal  
[2026-08-02 16:45:35] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:35] local.INFO: ID present? YES  
[2026-08-02 16:45:35] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:35] local.INFO: ID empty? NO  
[2026-08-02 16:45:35] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:35] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:35, 2026-08-02 16:45:35))  
[2026-08-02 16:45:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:41] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:41] local.INFO: Model: Journal  
[2026-08-02 16:45:41] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:41] local.INFO: ID present? YES  
[2026-08-02 16:45:41] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:41] local.INFO: ID empty? NO  
[2026-08-02 16:45:41] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:41] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:41, 2026-08-02 16:45:41))  
[2026-08-02 16:45:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:48] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:48] local.INFO: Model: Journal  
[2026-08-02 16:45:48] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 16:45:48] local.INFO: ID present? YES  
[2026-08-02 16:45:48] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:48] local.INFO: ID empty? NO  
[2026-08-02 16:45:48] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:48] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 16:45:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 16:45:48, 2026-08-02 16:45:48))  
[2026-08-02 16:45:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:49] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:49] local.INFO: Model: Journal  
[2026-08-02 16:45:49] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:45:49] local.INFO: ID present? YES  
[2026-08-02 16:45:49] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:45:49] local.INFO: ID empty? NO  
[2026-08-02 16:45:49] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:45:49] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:45:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 16:45:49, 2026-08-02 16:45:49))  
[2026-08-02 16:45:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:45:55] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:45:55] local.INFO: Model: Journal  
[2026-08-02 16:45:55] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:45:55] local.INFO: ID present? YES  
[2026-08-02 16:45:55] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:45:55] local.INFO: ID empty? NO  
[2026-08-02 16:45:55] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:45:55] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:45:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 16:45:55, 2026-08-02 16:45:55))  
[2026-08-02 16:45:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:46:02] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:46:02] local.INFO: Model: Journal  
[2026-08-02 16:46:02] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:46:02] local.INFO: ID present? YES  
[2026-08-02 16:46:02] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:46:02] local.INFO: ID empty? NO  
[2026-08-02 16:46:02] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:46:02] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:46:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 16:46:02, 2026-08-02 16:46:02))  
[2026-08-02 16:46:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:46:08] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:46:08] local.INFO: Model: Journal  
[2026-08-02 16:46:08] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 16:46:08] local.INFO: ID present? YES  
[2026-08-02 16:46:08] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:46:08] local.INFO: ID empty? NO  
[2026-08-02 16:46:08] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:46:08] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 16:46:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 16:46:08, 2026-08-02 16:46:08))  
[2026-08-02 16:46:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 16:46:09] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:46:09] local.INFO: Model: Journal  
[2026-08-02 16:46:09] local.INFO: Data received: {"id":"fa71c55f-97b8-40b0-97de-ee8cbc5ddc5e","type":"Credit","amount":"200.00","rate":"100.000000","lcy_amount":"200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 16:39:20","updated_at":"2026-08-02 16:39:20"} 
[2026-08-02 16:46:09] local.INFO: ID present? YES  
[2026-08-02 16:46:09] local.INFO: ID value: fa71c55f-97b8-40b0-97de-ee8cbc5ddc5e  
[2026-08-02 16:46:09] local.INFO: ID empty? NO  
[2026-08-02 16:46:09] local.INFO: Attempting to find record with ID: fa71c55f-97b8-40b0-97de-ee8cbc5ddc5e  
[2026-08-02 16:46:09] local.INFO: Record not found, creating new with ID: fa71c55f-97b8-40b0-97de-ee8cbc5ddc5e  
[2026-08-02 16:46:09] local.INFO: Created record: {"id":"fa71c55f-97b8-40b0-97de-ee8cbc5ddc5e","type":"Credit","amount":"200.00","rate":"100.000000","lcy_amount":"200.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bcecd96b-223b-4f48-a5bb-d2beb72b110b","customer_id":"3ac17474-b29e-42b3-8abb-30e4f0ba40fa","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:46:09.000000Z","created_at":"2026-08-02T13:46:09.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":24743.0,"debit_total":"22315544.10","credit_total":22290801.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:45:06.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 16:46:11] local.INFO: === SYNC DEBUG ===  
[2026-08-02 16:46:11] local.INFO: Model: Journal  
[2026-08-02 16:46:11] local.INFO: Data received: {"id":"fdb316be-4ba4-4023-a97d-664b6aa783d4","type":"Credit","amount":"6375.00","rate":"127.500000","lcy_amount":"6375.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 15:58:44","updated_at":"2026-08-02 15:58:44"} 
[2026-08-02 16:46:11] local.INFO: ID present? YES  
[2026-08-02 16:46:11] local.INFO: ID value: fdb316be-4ba4-4023-a97d-664b6aa783d4  
[2026-08-02 16:46:11] local.INFO: ID empty? NO  
[2026-08-02 16:46:11] local.INFO: Attempting to find record with ID: fdb316be-4ba4-4023-a97d-664b6aa783d4  
[2026-08-02 16:46:11] local.INFO: Record not found, creating new with ID: fdb316be-4ba4-4023-a97d-664b6aa783d4  
[2026-08-02 16:46:11] local.INFO: Created record: {"id":"fdb316be-4ba4-4023-a97d-664b6aa783d4","type":"Credit","amount":"6375.00","rate":"127.500000","lcy_amount":"6375.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","date":"2026-08-02","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"81d7d6c9-2af9-4ded-8a8d-e20c046a1ef9","customer_id":"c61a95a6-1316-486b-bd6a-f88e7223264b","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T13:46:11.000000Z","created_at":"2026-08-02T13:46:11.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":18368.0,"debit_total":"22315544.10","credit_total":22297176.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:46:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 18:26:38] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:26:38] local.INFO: Model: Transaction  
[2026-08-02 18:26:38] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:26:38] local.INFO: ID present? YES  
[2026-08-02 18:26:38] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:38] local.INFO: ID empty? NO  
[2026-08-02 18:26:38] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:38] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:26:38, 2026-08-02 18:26:38))  
[2026-08-02 18:26:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:26:44] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:26:44] local.INFO: Model: Transaction  
[2026-08-02 18:26:44] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:26:44] local.INFO: ID present? YES  
[2026-08-02 18:26:44] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:44] local.INFO: ID empty? NO  
[2026-08-02 18:26:44] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:44] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:26:44, 2026-08-02 18:26:44))  
[2026-08-02 18:26:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:26:54] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:26:54] local.INFO: Model: Transaction  
[2026-08-02 18:26:54] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:26:54] local.INFO: ID present? YES  
[2026-08-02 18:26:54] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:54] local.INFO: ID empty? NO  
[2026-08-02 18:26:54] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:54] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:26:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:26:54, 2026-08-02 18:26:54))  
[2026-08-02 18:26:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:00] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:00] local.INFO: Model: Transaction  
[2026-08-02 18:27:00] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:27:00] local.INFO: ID present? YES  
[2026-08-02 18:27:00] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:27:00] local.INFO: ID empty? NO  
[2026-08-02 18:27:00] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:27:00] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:27:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:27:00, 2026-08-02 18:27:00))  
[2026-08-02 18:27:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:02] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:02] local.INFO: Model: Transaction  
[2026-08-02 18:27:02] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:27:02] local.INFO: ID present? YES  
[2026-08-02 18:27:02] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:02] local.INFO: ID empty? NO  
[2026-08-02 18:27:02] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:02] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:27:02, 2026-08-02 18:27:02))  
[2026-08-02 18:27:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:08] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:08] local.INFO: Model: Transaction  
[2026-08-02 18:27:08] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:27:08] local.INFO: ID present? YES  
[2026-08-02 18:27:08] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:08] local.INFO: ID empty? NO  
[2026-08-02 18:27:08] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:08] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:27:08, 2026-08-02 18:27:08))  
[2026-08-02 18:27:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:15] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:15] local.INFO: Model: Transaction  
[2026-08-02 18:27:15] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:27:15] local.INFO: ID present? YES  
[2026-08-02 18:27:15] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:15] local.INFO: ID empty? NO  
[2026-08-02 18:27:15] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:15] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:27:15, 2026-08-02 18:27:15))  
[2026-08-02 18:27:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:21] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:21] local.INFO: Model: Transaction  
[2026-08-02 18:27:21] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:27:21] local.INFO: ID present? YES  
[2026-08-02 18:27:21] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:21] local.INFO: ID empty? NO  
[2026-08-02 18:27:21] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:21] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:27:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:27:21, 2026-08-02 18:27:21))  
[2026-08-02 18:27:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:23] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:23] local.INFO: Model: Transaction  
[2026-08-02 18:27:23] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:27:23] local.INFO: ID present? YES  
[2026-08-02 18:27:23] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:23] local.INFO: ID empty? NO  
[2026-08-02 18:27:23] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:23] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:27:23, 2026-08-02 18:27:23))  
[2026-08-02 18:27:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:29] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:29] local.INFO: Model: Transaction  
[2026-08-02 18:27:29] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:27:29] local.INFO: ID present? YES  
[2026-08-02 18:27:29] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:29] local.INFO: ID empty? NO  
[2026-08-02 18:27:29] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:29] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:27:29, 2026-08-02 18:27:29))  
[2026-08-02 18:27:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:35] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:35] local.INFO: Model: Transaction  
[2026-08-02 18:27:35] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:27:35] local.INFO: ID present? YES  
[2026-08-02 18:27:35] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:35] local.INFO: ID empty? NO  
[2026-08-02 18:27:35] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:35] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:27:35, 2026-08-02 18:27:35))  
[2026-08-02 18:27:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:42] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:42] local.INFO: Model: Transaction  
[2026-08-02 18:27:42] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:27:42] local.INFO: ID present? YES  
[2026-08-02 18:27:42] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:42] local.INFO: ID empty? NO  
[2026-08-02 18:27:42] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:42] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:27:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:27:42, 2026-08-02 18:27:42))  
[2026-08-02 18:27:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:43] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:43] local.INFO: Model: Journal  
[2026-08-02 18:27:43] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:27:43] local.INFO: ID present? YES  
[2026-08-02 18:27:43] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:43] local.INFO: ID empty? NO  
[2026-08-02 18:27:43] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:43] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:27:43, 2026-08-02 18:27:43))  
[2026-08-02 18:27:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:49] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:49] local.INFO: Model: Journal  
[2026-08-02 18:27:49] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:27:49] local.INFO: ID present? YES  
[2026-08-02 18:27:49] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:49] local.INFO: ID empty? NO  
[2026-08-02 18:27:49] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:49] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:27:49, 2026-08-02 18:27:49))  
[2026-08-02 18:27:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:27:56] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:27:56] local.INFO: Model: Journal  
[2026-08-02 18:27:56] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:27:56] local.INFO: ID present? YES  
[2026-08-02 18:27:56] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:56] local.INFO: ID empty? NO  
[2026-08-02 18:27:56] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:56] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:27:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:27:56, 2026-08-02 18:27:56))  
[2026-08-02 18:27:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:02] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:02] local.INFO: Model: Journal  
[2026-08-02 18:28:02] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:28:02] local.INFO: ID present? YES  
[2026-08-02 18:28:02] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:28:02] local.INFO: ID empty? NO  
[2026-08-02 18:28:02] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:28:02] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:28:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:02, 2026-08-02 18:28:02))  
[2026-08-02 18:28:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:03] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:03] local.INFO: Model: Journal  
[2026-08-02 18:28:03] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:28:03] local.INFO: ID present? YES  
[2026-08-02 18:28:03] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:03] local.INFO: ID empty? NO  
[2026-08-02 18:28:03] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:04] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:04, 2026-08-02 18:28:04))  
[2026-08-02 18:28:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:10] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:10] local.INFO: Model: Journal  
[2026-08-02 18:28:10] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:28:10] local.INFO: ID present? YES  
[2026-08-02 18:28:10] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:10] local.INFO: ID empty? NO  
[2026-08-02 18:28:10] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:10] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:10, 2026-08-02 18:28:10))  
[2026-08-02 18:28:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:16] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:16] local.INFO: Model: Journal  
[2026-08-02 18:28:16] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:28:16] local.INFO: ID present? YES  
[2026-08-02 18:28:16] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:16] local.INFO: ID empty? NO  
[2026-08-02 18:28:16] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:16] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:16, 2026-08-02 18:28:16))  
[2026-08-02 18:28:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:23] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:23] local.INFO: Model: Journal  
[2026-08-02 18:28:23] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:28:23] local.INFO: ID present? YES  
[2026-08-02 18:28:23] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:23] local.INFO: ID empty? NO  
[2026-08-02 18:28:23] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:23] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:28:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:23, 2026-08-02 18:28:23))  
[2026-08-02 18:28:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:24] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:24] local.INFO: Model: Journal  
[2026-08-02 18:28:24] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:28:24] local.INFO: ID present? YES  
[2026-08-02 18:28:24] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:24] local.INFO: ID empty? NO  
[2026-08-02 18:28:24] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:24] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:24, 2026-08-02 18:28:24))  
[2026-08-02 18:28:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:31] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:31] local.INFO: Model: Journal  
[2026-08-02 18:28:31] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:28:31] local.INFO: ID present? YES  
[2026-08-02 18:28:31] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:31] local.INFO: ID empty? NO  
[2026-08-02 18:28:31] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:31] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:31, 2026-08-02 18:28:31))  
[2026-08-02 18:28:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:37] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:37] local.INFO: Model: Journal  
[2026-08-02 18:28:37] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:28:37] local.INFO: ID present? YES  
[2026-08-02 18:28:37] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:37] local.INFO: ID empty? NO  
[2026-08-02 18:28:37] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:37] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:37, 2026-08-02 18:28:37))  
[2026-08-02 18:28:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:43] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:43] local.INFO: Model: Journal  
[2026-08-02 18:28:43] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:28:43] local.INFO: ID present? YES  
[2026-08-02 18:28:43] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:43] local.INFO: ID empty? NO  
[2026-08-02 18:28:43] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:43] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:28:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:43, 2026-08-02 18:28:43))  
[2026-08-02 18:28:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:44] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:44] local.INFO: Model: Journal  
[2026-08-02 18:28:44] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:28:44] local.INFO: ID present? YES  
[2026-08-02 18:28:44] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:44] local.INFO: ID empty? NO  
[2026-08-02 18:28:44] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:44] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:44, 2026-08-02 18:28:44))  
[2026-08-02 18:28:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:51] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:51] local.INFO: Model: Journal  
[2026-08-02 18:28:51] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:28:51] local.INFO: ID present? YES  
[2026-08-02 18:28:51] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:51] local.INFO: ID empty? NO  
[2026-08-02 18:28:51] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:51] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:51, 2026-08-02 18:28:51))  
[2026-08-02 18:28:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:28:57] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:28:57] local.INFO: Model: Journal  
[2026-08-02 18:28:57] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:28:57] local.INFO: ID present? YES  
[2026-08-02 18:28:57] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:57] local.INFO: ID empty? NO  
[2026-08-02 18:28:57] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:57] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:28:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:28:57, 2026-08-02 18:28:57))  
[2026-08-02 18:28:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:03] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:03] local.INFO: Model: Journal  
[2026-08-02 18:29:03] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:29:03] local.INFO: ID present? YES  
[2026-08-02 18:29:03] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:29:03] local.INFO: ID empty? NO  
[2026-08-02 18:29:03] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:29:03] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:29:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:29:03, 2026-08-02 18:29:03))  
[2026-08-02 18:29:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:05] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:05] local.INFO: Model: Journal  
[2026-08-02 18:29:05] local.INFO: Data received: {"id":"8a2f2ecd-dcae-4861-9366-a3a243638de7","type":"Credit","amount":"552.00","rate":null,"lcy_amount":"71208.000000","narrative":"USD WITHDRAWAL","uniqid":"d8a5f2f7-668c-4f5a-9b50-0adfea92b60c","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 18:26:21","updated_at":"2026-08-02 18:26:23"} 
[2026-08-02 18:29:05] local.INFO: ID present? YES  
[2026-08-02 18:29:05] local.INFO: ID value: 8a2f2ecd-dcae-4861-9366-a3a243638de7  
[2026-08-02 18:29:05] local.INFO: ID empty? NO  
[2026-08-02 18:29:05] local.INFO: Attempting to find record with ID: 8a2f2ecd-dcae-4861-9366-a3a243638de7  
[2026-08-02 18:29:05] local.INFO: Record not found, creating new with ID: 8a2f2ecd-dcae-4861-9366-a3a243638de7  
[2026-08-02 18:29:05] local.INFO: Created record: {"id":"8a2f2ecd-dcae-4861-9366-a3a243638de7","type":"Credit","amount":"552.00","rate":null,"lcy_amount":"71208.000000","narrative":"USD WITHDRAWAL","uniqid":"d8a5f2f7-668c-4f5a-9b50-0adfea92b60c","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T15:29:05.000000Z","created_at":"2026-08-02T15:29:05.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":0.0,"debit_total":"81591.00","credit_total":81591.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:45:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 18:29:06] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:06] local.INFO: Model: Journal  
[2026-08-02 18:29:06] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:29:06] local.INFO: ID present? YES  
[2026-08-02 18:29:06] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:06] local.INFO: ID empty? NO  
[2026-08-02 18:29:06] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:06] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:29:06, 2026-08-02 18:29:06))  
[2026-08-02 18:29:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:12] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:12] local.INFO: Model: Journal  
[2026-08-02 18:29:12] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:29:12] local.INFO: ID present? YES  
[2026-08-02 18:29:12] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:12] local.INFO: ID empty? NO  
[2026-08-02 18:29:12] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:12] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:29:12, 2026-08-02 18:29:12))  
[2026-08-02 18:29:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:19] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:19] local.INFO: Model: Journal  
[2026-08-02 18:29:19] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:29:19] local.INFO: ID present? YES  
[2026-08-02 18:29:19] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:19] local.INFO: ID empty? NO  
[2026-08-02 18:29:19] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:19] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:29:19, 2026-08-02 18:29:19))  
[2026-08-02 18:29:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:25] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:25] local.INFO: Model: Journal  
[2026-08-02 18:29:25] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:29:25] local.INFO: ID present? YES  
[2026-08-02 18:29:25] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:25] local.INFO: ID empty? NO  
[2026-08-02 18:29:25] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:25] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:29:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:29:25, 2026-08-02 18:29:25))  
[2026-08-02 18:29:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:27] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:27] local.INFO: Model: Journal  
[2026-08-02 18:29:27] local.INFO: Data received: {"id":"9ba9801e-cc59-49ad-9e3d-28f2fb774e0a","type":"Credit","amount":"635.00","rate":null,"lcy_amount":"96012.000000","narrative":"EUR WITHDRAWAL","uniqid":"42a10917-243c-4450-b631-8f103ce68b6b","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-02 18:26:04","updated_at":"2026-08-02 18:26:06"} 
[2026-08-02 18:29:27] local.INFO: ID present? YES  
[2026-08-02 18:29:27] local.INFO: ID value: 9ba9801e-cc59-49ad-9e3d-28f2fb774e0a  
[2026-08-02 18:29:27] local.INFO: ID empty? NO  
[2026-08-02 18:29:27] local.INFO: Attempting to find record with ID: 9ba9801e-cc59-49ad-9e3d-28f2fb774e0a  
[2026-08-02 18:29:27] local.INFO: Record not found, creating new with ID: 9ba9801e-cc59-49ad-9e3d-28f2fb774e0a  
[2026-08-02 18:29:27] local.INFO: Created record: {"id":"9ba9801e-cc59-49ad-9e3d-28f2fb774e0a","type":"Credit","amount":"635.00","rate":null,"lcy_amount":"96012.000000","narrative":"EUR WITHDRAWAL","uniqid":"42a10917-243c-4450-b631-8f103ce68b6b","date":"2026-08-02","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-02T15:29:27.000000Z","created_at":"2026-08-02T15:29:27.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":0.0,"debit_total":"24540.00","credit_total":24540.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:44:22.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 18:29:28] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:28] local.INFO: Model: Journal  
[2026-08-02 18:29:28] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:29:28] local.INFO: ID present? YES  
[2026-08-02 18:29:28] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:28] local.INFO: ID empty? NO  
[2026-08-02 18:29:28] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:28] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:29:28, 2026-08-02 18:29:28))  
[2026-08-02 18:29:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:34] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:34] local.INFO: Model: Journal  
[2026-08-02 18:29:34] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:29:34] local.INFO: ID present? YES  
[2026-08-02 18:29:34] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:34] local.INFO: ID empty? NO  
[2026-08-02 18:29:34] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:34] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:29:34, 2026-08-02 18:29:34))  
[2026-08-02 18:29:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:41] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:41] local.INFO: Model: Journal  
[2026-08-02 18:29:41] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:29:41] local.INFO: ID present? YES  
[2026-08-02 18:29:41] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:41] local.INFO: ID empty? NO  
[2026-08-02 18:29:41] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:41] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:29:41, 2026-08-02 18:29:41))  
[2026-08-02 18:29:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:47] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:47] local.INFO: Model: Journal  
[2026-08-02 18:29:47] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:29:47] local.INFO: ID present? YES  
[2026-08-02 18:29:47] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:47] local.INFO: ID empty? NO  
[2026-08-02 18:29:47] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:47] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:29:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:29:47, 2026-08-02 18:29:47))  
[2026-08-02 18:29:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:48] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:48] local.INFO: Model: Journal  
[2026-08-02 18:29:48] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:29:48] local.INFO: ID present? YES  
[2026-08-02 18:29:48] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:29:48] local.INFO: ID empty? NO  
[2026-08-02 18:29:48] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:29:48] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:29:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:29:48, 2026-08-02 18:29:48))  
[2026-08-02 18:29:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:29:55] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:29:55] local.INFO: Model: Journal  
[2026-08-02 18:29:55] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:29:55] local.INFO: ID present? YES  
[2026-08-02 18:29:55] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:29:55] local.INFO: ID empty? NO  
[2026-08-02 18:29:55] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:29:55] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:29:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:29:55, 2026-08-02 18:29:55))  
[2026-08-02 18:29:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:01] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:01] local.INFO: Model: Journal  
[2026-08-02 18:30:01] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:30:01] local.INFO: ID present? YES  
[2026-08-02 18:30:01] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:30:01] local.INFO: ID empty? NO  
[2026-08-02 18:30:01] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:30:01] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:30:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:30:01, 2026-08-02 18:30:01))  
[2026-08-02 18:30:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:08] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:08] local.INFO: Model: Journal  
[2026-08-02 18:30:08] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:30:08] local.INFO: ID present? YES  
[2026-08-02 18:30:08] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:30:08] local.INFO: ID empty? NO  
[2026-08-02 18:30:08] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:30:08] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:30:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:30:08, 2026-08-02 18:30:08))  
[2026-08-02 18:30:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:09] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:09] local.INFO: Model: Journal  
[2026-08-02 18:30:09] local.INFO: Data received: {"id":"c40fa8c7-0dcf-4144-be4f-bee70148e628","type":"Debit","amount":"552.00","rate":null,"lcy_amount":"71208.000000","narrative":"USD WITHDRAWAL","uniqid":"d8a5f2f7-668c-4f5a-9b50-0adfea92b60c","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-02 18:26:21","updated_at":"2026-08-02 18:26:23"} 
[2026-08-02 18:30:09] local.INFO: ID present? YES  
[2026-08-02 18:30:09] local.INFO: ID value: c40fa8c7-0dcf-4144-be4f-bee70148e628  
[2026-08-02 18:30:09] local.INFO: ID empty? NO  
[2026-08-02 18:30:09] local.INFO: Attempting to find record with ID: c40fa8c7-0dcf-4144-be4f-bee70148e628  
[2026-08-02 18:30:09] local.INFO: Record not found, creating new with ID: c40fa8c7-0dcf-4144-be4f-bee70148e628  
[2026-08-02 18:30:09] local.INFO: Created record: {"id":"c40fa8c7-0dcf-4144-be4f-bee70148e628","type":"Debit","amount":"552.00","rate":null,"lcy_amount":"71208.000000","narrative":"USD WITHDRAWAL","uniqid":"d8a5f2f7-668c-4f5a-9b50-0adfea92b60c","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-02T15:30:09.000000Z","created_at":"2026-08-02T15:30:09.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":3219.11000000000012732925824820995330810546875,"debit_total":39021.0,"credit_total":"35801.89","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T10:00:23.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 18:30:11] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:11] local.INFO: Model: Journal  
[2026-08-02 18:30:11] local.INFO: Data received: {"id":"c99ab122-4dc5-4b33-b473-fdd90abe6a6c","type":"Debit","amount":"635.00","rate":null,"lcy_amount":"96012.000000","narrative":"EUR WITHDRAWAL","uniqid":"42a10917-243c-4450-b631-8f103ce68b6b","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-02 18:26:04","updated_at":"2026-08-02 18:26:06"} 
[2026-08-02 18:30:11] local.INFO: ID present? YES  
[2026-08-02 18:30:11] local.INFO: ID value: c99ab122-4dc5-4b33-b473-fdd90abe6a6c  
[2026-08-02 18:30:11] local.INFO: ID empty? NO  
[2026-08-02 18:30:11] local.INFO: Attempting to find record with ID: c99ab122-4dc5-4b33-b473-fdd90abe6a6c  
[2026-08-02 18:30:11] local.INFO: Record not found, creating new with ID: c99ab122-4dc5-4b33-b473-fdd90abe6a6c  
[2026-08-02 18:30:11] local.INFO: Created record: {"id":"c99ab122-4dc5-4b33-b473-fdd90abe6a6c","type":"Debit","amount":"635.00","rate":null,"lcy_amount":"96012.000000","narrative":"EUR WITHDRAWAL","uniqid":"42a10917-243c-4450-b631-8f103ce68b6b","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-02T15:30:11.000000Z","created_at":"2026-08-02T15:30:11.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":7770.0,"debit_total":18155.0,"credit_total":"10385.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-01T15:35:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 18:30:12] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:12] local.INFO: Model: Journal  
[2026-08-02 18:30:12] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:30:12] local.INFO: ID present? YES  
[2026-08-02 18:30:12] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:12] local.INFO: ID empty? NO  
[2026-08-02 18:30:12] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:12] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:30:12, 2026-08-02 18:30:12))  
[2026-08-02 18:30:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:18] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:18] local.INFO: Model: Journal  
[2026-08-02 18:30:18] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:30:18] local.INFO: ID present? YES  
[2026-08-02 18:30:18] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:18] local.INFO: ID empty? NO  
[2026-08-02 18:30:18] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:18] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:30:18, 2026-08-02 18:30:18))  
[2026-08-02 18:30:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:25] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:25] local.INFO: Model: Journal  
[2026-08-02 18:30:25] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:30:25] local.INFO: ID present? YES  
[2026-08-02 18:30:25] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:25] local.INFO: ID empty? NO  
[2026-08-02 18:30:25] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:25] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:30:25, 2026-08-02 18:30:25))  
[2026-08-02 18:30:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:31] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:31] local.INFO: Model: Journal  
[2026-08-02 18:30:31] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:30:31] local.INFO: ID present? YES  
[2026-08-02 18:30:31] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:31] local.INFO: ID empty? NO  
[2026-08-02 18:30:31] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:31] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:30:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:30:31, 2026-08-02 18:30:31))  
[2026-08-02 18:30:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:32] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:32] local.INFO: Model: Journal  
[2026-08-02 18:30:32] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:30:32] local.INFO: ID present? YES  
[2026-08-02 18:30:32] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:32] local.INFO: ID empty? NO  
[2026-08-02 18:30:32] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:32] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:30:32, 2026-08-02 18:30:32))  
[2026-08-02 18:30:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:39] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:39] local.INFO: Model: Journal  
[2026-08-02 18:30:39] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:30:39] local.INFO: ID present? YES  
[2026-08-02 18:30:39] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:39] local.INFO: ID empty? NO  
[2026-08-02 18:30:39] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:39] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:30:39, 2026-08-02 18:30:39))  
[2026-08-02 18:30:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:45] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:45] local.INFO: Model: Journal  
[2026-08-02 18:30:45] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:30:45] local.INFO: ID present? YES  
[2026-08-02 18:30:45] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:45] local.INFO: ID empty? NO  
[2026-08-02 18:30:45] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:45] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:30:45, 2026-08-02 18:30:45))  
[2026-08-02 18:30:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:30:51] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:30:51] local.INFO: Model: Journal  
[2026-08-02 18:30:51] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:30:51] local.INFO: ID present? YES  
[2026-08-02 18:30:51] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:51] local.INFO: ID empty? NO  
[2026-08-02 18:30:51] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:51] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:30:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:30:51, 2026-08-02 18:30:51))  
[2026-08-02 18:30:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:47:21] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:47:21] local.INFO: Model: Transaction  
[2026-08-02 18:47:21] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:47:21] local.INFO: ID present? YES  
[2026-08-02 18:47:21] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:21] local.INFO: ID empty? NO  
[2026-08-02 18:47:21] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:21] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:47:21, 2026-08-02 18:47:21))  
[2026-08-02 18:47:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:47:27] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:47:27] local.INFO: Model: Transaction  
[2026-08-02 18:47:27] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:47:27] local.INFO: ID present? YES  
[2026-08-02 18:47:27] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:27] local.INFO: ID empty? NO  
[2026-08-02 18:47:27] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:27] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:47:27, 2026-08-02 18:47:27))  
[2026-08-02 18:47:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:47:33] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:47:33] local.INFO: Model: Transaction  
[2026-08-02 18:47:33] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:47:33] local.INFO: ID present? YES  
[2026-08-02 18:47:33] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:33] local.INFO: ID empty? NO  
[2026-08-02 18:47:33] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:33] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:47:33, 2026-08-02 18:47:33))  
[2026-08-02 18:47:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:47:40] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:47:40] local.INFO: Model: Transaction  
[2026-08-02 18:47:40] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:47:40] local.INFO: ID present? YES  
[2026-08-02 18:47:40] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:40] local.INFO: ID empty? NO  
[2026-08-02 18:47:40] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:40] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-02 18:47:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-02 18:47:40, 2026-08-02 18:47:40))  
[2026-08-02 18:47:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:47:41] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:47:41] local.INFO: Model: Transaction  
[2026-08-02 18:47:41] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:47:41] local.INFO: ID present? YES  
[2026-08-02 18:47:41] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:41] local.INFO: ID empty? NO  
[2026-08-02 18:47:41] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:41] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:47:41, 2026-08-02 18:47:41))  
[2026-08-02 18:47:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:47:47] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:47:47] local.INFO: Model: Transaction  
[2026-08-02 18:47:47] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:47:47] local.INFO: ID present? YES  
[2026-08-02 18:47:47] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:47] local.INFO: ID empty? NO  
[2026-08-02 18:47:47] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:47] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:47:47, 2026-08-02 18:47:47))  
[2026-08-02 18:47:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:47:54] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:47:54] local.INFO: Model: Transaction  
[2026-08-02 18:47:54] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:47:54] local.INFO: ID present? YES  
[2026-08-02 18:47:54] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:54] local.INFO: ID empty? NO  
[2026-08-02 18:47:54] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:54] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:47:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:47:54, 2026-08-02 18:47:54))  
[2026-08-02 18:47:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:00] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:00] local.INFO: Model: Transaction  
[2026-08-02 18:48:00] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:48:00] local.INFO: ID present? YES  
[2026-08-02 18:48:00] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:48:00] local.INFO: ID empty? NO  
[2026-08-02 18:48:00] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:48:00] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-02 18:48:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-02 18:48:00, 2026-08-02 18:48:00))  
[2026-08-02 18:48:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:01] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:01] local.INFO: Model: Transaction  
[2026-08-02 18:48:01] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:48:01] local.INFO: ID present? YES  
[2026-08-02 18:48:01] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:01] local.INFO: ID empty? NO  
[2026-08-02 18:48:01] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:01] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:48:01, 2026-08-02 18:48:01))  
[2026-08-02 18:48:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:07] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:07] local.INFO: Model: Transaction  
[2026-08-02 18:48:07] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:48:07] local.INFO: ID present? YES  
[2026-08-02 18:48:07] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:07] local.INFO: ID empty? NO  
[2026-08-02 18:48:07] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:07] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:48:07, 2026-08-02 18:48:07))  
[2026-08-02 18:48:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:14] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:14] local.INFO: Model: Transaction  
[2026-08-02 18:48:14] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:48:14] local.INFO: ID present? YES  
[2026-08-02 18:48:14] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:14] local.INFO: ID empty? NO  
[2026-08-02 18:48:14] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:14] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:48:14, 2026-08-02 18:48:14))  
[2026-08-02 18:48:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:20] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:20] local.INFO: Model: Transaction  
[2026-08-02 18:48:20] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:48:20] local.INFO: ID present? YES  
[2026-08-02 18:48:20] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:20] local.INFO: ID empty? NO  
[2026-08-02 18:48:20] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:20] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-02 18:48:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-02 18:48:20, 2026-08-02 18:48:20))  
[2026-08-02 18:48:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:22] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:22] local.INFO: Model: Journal  
[2026-08-02 18:48:22] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:48:22] local.INFO: ID present? YES  
[2026-08-02 18:48:22] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:22] local.INFO: ID empty? NO  
[2026-08-02 18:48:22] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:22] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:48:22, 2026-08-02 18:48:22))  
[2026-08-02 18:48:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:28] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:28] local.INFO: Model: Journal  
[2026-08-02 18:48:28] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:48:28] local.INFO: ID present? YES  
[2026-08-02 18:48:28] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:28] local.INFO: ID empty? NO  
[2026-08-02 18:48:28] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:28] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:48:28, 2026-08-02 18:48:28))  
[2026-08-02 18:48:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:34] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:34] local.INFO: Model: Journal  
[2026-08-02 18:48:34] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:48:34] local.INFO: ID present? YES  
[2026-08-02 18:48:34] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:34] local.INFO: ID empty? NO  
[2026-08-02 18:48:34] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:34] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:48:34, 2026-08-02 18:48:34))  
[2026-08-02 18:48:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:41] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:41] local.INFO: Model: Journal  
[2026-08-02 18:48:41] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:48:41] local.INFO: ID present? YES  
[2026-08-02 18:48:41] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:41] local.INFO: ID empty? NO  
[2026-08-02 18:48:41] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:41] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-02 18:48:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:48:41, 2026-08-02 18:48:41))  
[2026-08-02 18:48:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:42] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:42] local.INFO: Model: Journal  
[2026-08-02 18:48:42] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:48:42] local.INFO: ID present? YES  
[2026-08-02 18:48:42] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:42] local.INFO: ID empty? NO  
[2026-08-02 18:48:42] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:42] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:48:42, 2026-08-02 18:48:42))  
[2026-08-02 18:48:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:48] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:48] local.INFO: Model: Journal  
[2026-08-02 18:48:48] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:48:48] local.INFO: ID present? YES  
[2026-08-02 18:48:48] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:48] local.INFO: ID empty? NO  
[2026-08-02 18:48:48] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:48] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:48:48, 2026-08-02 18:48:48))  
[2026-08-02 18:48:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:48:55] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:48:55] local.INFO: Model: Journal  
[2026-08-02 18:48:55] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:48:55] local.INFO: ID present? YES  
[2026-08-02 18:48:55] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:55] local.INFO: ID empty? NO  
[2026-08-02 18:48:55] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:55] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:48:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:48:55, 2026-08-02 18:48:55))  
[2026-08-02 18:48:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:01] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:01] local.INFO: Model: Journal  
[2026-08-02 18:49:01] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:49:01] local.INFO: ID present? YES  
[2026-08-02 18:49:01] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:49:01] local.INFO: ID empty? NO  
[2026-08-02 18:49:01] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:49:01] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-02 18:49:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:01, 2026-08-02 18:49:01))  
[2026-08-02 18:49:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:02] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:02] local.INFO: Model: Journal  
[2026-08-02 18:49:02] local.INFO: Data received: {"id":"52297d3f-ab6a-4918-9008-f4e68c25510d","type":"Debit","amount":"28200.00","rate":null,"lcy_amount":"28200.000000","narrative":"MPESA DEPOSIT 02-08-2026","uniqid":"c53b774b-fb3f-4d1a-a2fd-b327034f9860","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 18:47:09","updated_at":"2026-08-02 18:47:11"} 
[2026-08-02 18:49:02] local.INFO: ID present? YES  
[2026-08-02 18:49:02] local.INFO: ID value: 52297d3f-ab6a-4918-9008-f4e68c25510d  
[2026-08-02 18:49:02] local.INFO: ID empty? NO  
[2026-08-02 18:49:02] local.INFO: Attempting to find record with ID: 52297d3f-ab6a-4918-9008-f4e68c25510d  
[2026-08-02 18:49:02] local.INFO: Record not found, creating new with ID: 52297d3f-ab6a-4918-9008-f4e68c25510d  
[2026-08-02 18:49:02] local.INFO: Created record: {"id":"52297d3f-ab6a-4918-9008-f4e68c25510d","type":"Debit","amount":"28200.00","rate":null,"lcy_amount":"28200.000000","narrative":"MPESA DEPOSIT 02-08-2026","uniqid":"c53b774b-fb3f-4d1a-a2fd-b327034f9860","date":"2026-08-02","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T15:49:02.000000Z","created_at":"2026-08-02T15:49:02.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":46568.0,"debit_total":22343744.100000001490116119384765625,"credit_total":"22297176.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T13:46:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-02 18:49:04] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:04] local.INFO: Model: Journal  
[2026-08-02 18:49:04] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:49:04] local.INFO: ID present? YES  
[2026-08-02 18:49:04] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:04] local.INFO: ID empty? NO  
[2026-08-02 18:49:04] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:04] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:04, 2026-08-02 18:49:04))  
[2026-08-02 18:49:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:10] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:10] local.INFO: Model: Journal  
[2026-08-02 18:49:10] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:49:10] local.INFO: ID present? YES  
[2026-08-02 18:49:10] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:10] local.INFO: ID empty? NO  
[2026-08-02 18:49:10] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:10] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:10, 2026-08-02 18:49:10))  
[2026-08-02 18:49:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:16] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:16] local.INFO: Model: Journal  
[2026-08-02 18:49:16] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:49:16] local.INFO: ID present? YES  
[2026-08-02 18:49:16] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:16] local.INFO: ID empty? NO  
[2026-08-02 18:49:16] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:16] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:16, 2026-08-02 18:49:16))  
[2026-08-02 18:49:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:23] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:23] local.INFO: Model: Journal  
[2026-08-02 18:49:23] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:49:23] local.INFO: ID present? YES  
[2026-08-02 18:49:23] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:23] local.INFO: ID empty? NO  
[2026-08-02 18:49:23] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:23] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-02 18:49:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:23, 2026-08-02 18:49:23))  
[2026-08-02 18:49:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:24] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:24] local.INFO: Model: Journal  
[2026-08-02 18:49:24] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:49:24] local.INFO: ID present? YES  
[2026-08-02 18:49:24] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:24] local.INFO: ID empty? NO  
[2026-08-02 18:49:24] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:24] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:24, 2026-08-02 18:49:24))  
[2026-08-02 18:49:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:31] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:31] local.INFO: Model: Journal  
[2026-08-02 18:49:31] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:49:31] local.INFO: ID present? YES  
[2026-08-02 18:49:31] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:31] local.INFO: ID empty? NO  
[2026-08-02 18:49:31] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:31] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:31, 2026-08-02 18:49:31))  
[2026-08-02 18:49:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:37] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:37] local.INFO: Model: Journal  
[2026-08-02 18:49:37] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:49:37] local.INFO: ID present? YES  
[2026-08-02 18:49:37] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:37] local.INFO: ID empty? NO  
[2026-08-02 18:49:37] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:37] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:37, 2026-08-02 18:49:37))  
[2026-08-02 18:49:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:43] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:43] local.INFO: Model: Journal  
[2026-08-02 18:49:43] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:49:43] local.INFO: ID present? YES  
[2026-08-02 18:49:43] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:43] local.INFO: ID empty? NO  
[2026-08-02 18:49:43] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:43] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-02 18:49:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:49:43, 2026-08-02 18:49:43))  
[2026-08-02 18:49:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:44] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:44] local.INFO: Model: Journal  
[2026-08-02 18:49:44] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:49:44] local.INFO: ID present? YES  
[2026-08-02 18:49:44] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:44] local.INFO: ID empty? NO  
[2026-08-02 18:49:44] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:44] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:49:44, 2026-08-02 18:49:44))  
[2026-08-02 18:49:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:51] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:51] local.INFO: Model: Journal  
[2026-08-02 18:49:51] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:49:51] local.INFO: ID present? YES  
[2026-08-02 18:49:51] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:51] local.INFO: ID empty? NO  
[2026-08-02 18:49:51] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:51] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:49:51, 2026-08-02 18:49:51))  
[2026-08-02 18:49:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:49:57] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:49:57] local.INFO: Model: Journal  
[2026-08-02 18:49:57] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:49:57] local.INFO: ID present? YES  
[2026-08-02 18:49:57] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:57] local.INFO: ID empty? NO  
[2026-08-02 18:49:57] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:57] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:49:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:49:57, 2026-08-02 18:49:57))  
[2026-08-02 18:49:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:04] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:04] local.INFO: Model: Journal  
[2026-08-02 18:50:04] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:50:04] local.INFO: ID present? YES  
[2026-08-02 18:50:04] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:50:04] local.INFO: ID empty? NO  
[2026-08-02 18:50:04] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:50:04] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-02 18:50:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-02 18:50:04, 2026-08-02 18:50:04))  
[2026-08-02 18:50:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:05] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:05] local.INFO: Model: Journal  
[2026-08-02 18:50:05] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:50:05] local.INFO: ID present? YES  
[2026-08-02 18:50:05] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:05] local.INFO: ID empty? NO  
[2026-08-02 18:50:05] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:05] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:50:05, 2026-08-02 18:50:05))  
[2026-08-02 18:50:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:11] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:11] local.INFO: Model: Journal  
[2026-08-02 18:50:11] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:50:11] local.INFO: ID present? YES  
[2026-08-02 18:50:11] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:11] local.INFO: ID empty? NO  
[2026-08-02 18:50:11] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:11] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:50:11, 2026-08-02 18:50:11))  
[2026-08-02 18:50:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:18] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:18] local.INFO: Model: Journal  
[2026-08-02 18:50:18] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:50:18] local.INFO: ID present? YES  
[2026-08-02 18:50:18] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:18] local.INFO: ID empty? NO  
[2026-08-02 18:50:18] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:18] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:50:18, 2026-08-02 18:50:18))  
[2026-08-02 18:50:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:24] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:24] local.INFO: Model: Journal  
[2026-08-02 18:50:24] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-02 18:50:24] local.INFO: ID present? YES  
[2026-08-02 18:50:24] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:24] local.INFO: ID empty? NO  
[2026-08-02 18:50:24] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:24] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-02 18:50:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-02 18:50:24, 2026-08-02 18:50:24))  
[2026-08-02 18:50:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:25] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:25] local.INFO: Model: Journal  
[2026-08-02 18:50:25] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:50:25] local.INFO: ID present? YES  
[2026-08-02 18:50:25] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:25] local.INFO: ID empty? NO  
[2026-08-02 18:50:25] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:25] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:50:25, 2026-08-02 18:50:25))  
[2026-08-02 18:50:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:32] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:32] local.INFO: Model: Journal  
[2026-08-02 18:50:32] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:50:32] local.INFO: ID present? YES  
[2026-08-02 18:50:32] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:32] local.INFO: ID empty? NO  
[2026-08-02 18:50:32] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:32] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:50:32, 2026-08-02 18:50:32))  
[2026-08-02 18:50:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:38] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:38] local.INFO: Model: Journal  
[2026-08-02 18:50:38] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:50:38] local.INFO: ID present? YES  
[2026-08-02 18:50:38] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:38] local.INFO: ID empty? NO  
[2026-08-02 18:50:38] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:38] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:50:38, 2026-08-02 18:50:38))  
[2026-08-02 18:50:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:44] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:44] local.INFO: Model: Journal  
[2026-08-02 18:50:44] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:50:44] local.INFO: ID present? YES  
[2026-08-02 18:50:44] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:44] local.INFO: ID empty? NO  
[2026-08-02 18:50:44] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:44] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-02 18:50:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:50:44, 2026-08-02 18:50:44))  
[2026-08-02 18:50:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:46] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:46] local.INFO: Model: Journal  
[2026-08-02 18:50:46] local.INFO: Data received: {"id":"d292d025-a44d-459a-90dd-36719eb6d54d","type":"Credit","amount":"28200.00","rate":null,"lcy_amount":"28200.000000","narrative":"MPESA DEPOSIT 02-08-2026","uniqid":"c53b774b-fb3f-4d1a-a2fd-b327034f9860","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-02 18:47:09","updated_at":"2026-08-02 18:47:11"} 
[2026-08-02 18:50:46] local.INFO: ID present? YES  
[2026-08-02 18:50:46] local.INFO: ID value: d292d025-a44d-459a-90dd-36719eb6d54d  
[2026-08-02 18:50:46] local.INFO: ID empty? NO  
[2026-08-02 18:50:46] local.INFO: Attempting to find record with ID: d292d025-a44d-459a-90dd-36719eb6d54d  
[2026-08-02 18:50:46] local.INFO: Record not found, creating new with ID: d292d025-a44d-459a-90dd-36719eb6d54d  
[2026-08-02 18:50:46] local.INFO: Created record: {"id":"d292d025-a44d-459a-90dd-36719eb6d54d","type":"Credit","amount":"28200.00","rate":null,"lcy_amount":"28200.000000","narrative":"MPESA DEPOSIT 02-08-2026","uniqid":"c53b774b-fb3f-4d1a-a2fd-b327034f9860","date":"2026-08-02","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-02T15:50:46.000000Z","created_at":"2026-08-02T15:50:46.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2423789.0,"debit_total":"4621343.00","credit_total":7045132.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-08-01T15:52:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-02 18:50:47] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:47] local.INFO: Model: Journal  
[2026-08-02 18:50:47] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:50:47] local.INFO: ID present? YES  
[2026-08-02 18:50:47] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:50:47] local.INFO: ID empty? NO  
[2026-08-02 18:50:47] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:50:47] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:50:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:50:47, 2026-08-02 18:50:47))  
[2026-08-02 18:50:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:50:53] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:50:53] local.INFO: Model: Journal  
[2026-08-02 18:50:53] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:50:53] local.INFO: ID present? YES  
[2026-08-02 18:50:53] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:50:53] local.INFO: ID empty? NO  
[2026-08-02 18:50:53] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:50:53] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:50:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:50:53, 2026-08-02 18:50:53))  
[2026-08-02 18:50:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:51:00] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:51:00] local.INFO: Model: Journal  
[2026-08-02 18:51:00] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:51:00] local.INFO: ID present? YES  
[2026-08-02 18:51:00] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:51:00] local.INFO: ID empty? NO  
[2026-08-02 18:51:00] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:51:00] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:51:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:51:00, 2026-08-02 18:51:00))  
[2026-08-02 18:51:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:51:06] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:51:06] local.INFO: Model: Journal  
[2026-08-02 18:51:06] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-02 18:51:06] local.INFO: ID present? YES  
[2026-08-02 18:51:06] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:51:06] local.INFO: ID empty? NO  
[2026-08-02 18:51:06] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:51:06] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-02 18:51:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-02 18:51:06, 2026-08-02 18:51:06))  
[2026-08-02 18:51:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:51:07] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:51:07] local.INFO: Model: Journal  
[2026-08-02 18:51:07] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:51:07] local.INFO: ID present? YES  
[2026-08-02 18:51:07] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:07] local.INFO: ID empty? NO  
[2026-08-02 18:51:07] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:07] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:51:07, 2026-08-02 18:51:07))  
[2026-08-02 18:51:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:51:14] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:51:14] local.INFO: Model: Journal  
[2026-08-02 18:51:14] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:51:14] local.INFO: ID present? YES  
[2026-08-02 18:51:14] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:14] local.INFO: ID empty? NO  
[2026-08-02 18:51:14] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:14] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:51:14, 2026-08-02 18:51:14))  
[2026-08-02 18:51:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:51:20] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:51:20] local.INFO: Model: Journal  
[2026-08-02 18:51:20] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:51:20] local.INFO: ID present? YES  
[2026-08-02 18:51:20] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:20] local.INFO: ID empty? NO  
[2026-08-02 18:51:20] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:20] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:51:20, 2026-08-02 18:51:20))  
[2026-08-02 18:51:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-02 18:51:26] local.INFO: === SYNC DEBUG ===  
[2026-08-02 18:51:26] local.INFO: Model: Journal  
[2026-08-02 18:51:26] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-02 18:51:26] local.INFO: ID present? YES  
[2026-08-02 18:51:26] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:26] local.INFO: ID empty? NO  
[2026-08-02 18:51:26] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:26] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-02 18:51:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-02 18:51:26, 2026-08-02 18:51:26))  
[2026-08-02 18:51:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:06] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:06] local.INFO: Model: Customer  
[2026-08-03 10:14:06] local.INFO: Data received: {"id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","first_name":"HANNA","last_name":"GOBENA","sur_name":null,"phone":"621521251","calling_code":"+267","email":null,"residence":"undefined","id_type":"Passport","id_number":"EQ1560420","nationality":"Ethiopian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-03 10:13:46","updated_at":"2026-08-03 10:13:46"} 
[2026-08-03 10:14:06] local.INFO: ID present? YES  
[2026-08-03 10:14:06] local.INFO: ID value: 33b0c75c-51ca-4d00-aedb-f3322f21904d  
[2026-08-03 10:14:06] local.INFO: ID empty? NO  
[2026-08-03 10:14:06] local.INFO: Attempting to find record with ID: 33b0c75c-51ca-4d00-aedb-f3322f21904d  
[2026-08-03 10:14:06] local.INFO: Record not found, creating new with ID: 33b0c75c-51ca-4d00-aedb-f3322f21904d  
[2026-08-03 10:14:06] local.INFO: Created record: {"id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","first_name":"HANNA","last_name":"GOBENA","sur_name":null,"phone":"621521251","calling_code":"+267","email":null,"residence":"undefined","id_type":"Passport","id_number":"EQ1560420","nationality":"Ethiopian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-03T07:14:06.000000Z","created_at":"2026-08-03T07:14:06.000000Z"} 
[2026-08-03 10:14:07] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:07] local.INFO: Model: Transaction  
[2026-08-03 10:14:07] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:14:07] local.INFO: ID present? YES  
[2026-08-03 10:14:07] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:07] local.INFO: ID empty? NO  
[2026-08-03 10:14:07] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:07] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 10:14:07, 2026-08-03 10:14:07))  
[2026-08-03 10:14:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:14] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:14] local.INFO: Model: Transaction  
[2026-08-03 10:14:14] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:14:14] local.INFO: ID present? YES  
[2026-08-03 10:14:14] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:14] local.INFO: ID empty? NO  
[2026-08-03 10:14:14] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:14] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 10:14:14, 2026-08-03 10:14:14))  
[2026-08-03 10:14:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:20] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:20] local.INFO: Model: Transaction  
[2026-08-03 10:14:20] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:14:20] local.INFO: ID present? YES  
[2026-08-03 10:14:20] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:20] local.INFO: ID empty? NO  
[2026-08-03 10:14:20] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:20] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 10:14:20, 2026-08-03 10:14:20))  
[2026-08-03 10:14:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:26] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:26] local.INFO: Model: Transaction  
[2026-08-03 10:14:26] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:14:26] local.INFO: ID present? YES  
[2026-08-03 10:14:26] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:26] local.INFO: ID empty? NO  
[2026-08-03 10:14:26] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:26] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 10:14:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 10:14:26, 2026-08-03 10:14:26))  
[2026-08-03 10:14:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:27] local.INFO: Model: Transaction  
[2026-08-03 10:14:27] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:14:27] local.INFO: ID present? YES  
[2026-08-03 10:14:27] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:27] local.INFO: ID empty? NO  
[2026-08-03 10:14:27] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:27] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 10:14:27, 2026-08-03 10:14:27))  
[2026-08-03 10:14:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:33] local.INFO: Model: Transaction  
[2026-08-03 10:14:33] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:14:34] local.INFO: ID present? YES  
[2026-08-03 10:14:34] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:34] local.INFO: ID empty? NO  
[2026-08-03 10:14:34] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:34] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 10:14:34, 2026-08-03 10:14:34))  
[2026-08-03 10:14:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:40] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:40] local.INFO: Model: Transaction  
[2026-08-03 10:14:40] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:14:40] local.INFO: ID present? YES  
[2026-08-03 10:14:40] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:40] local.INFO: ID empty? NO  
[2026-08-03 10:14:40] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:40] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 10:14:40, 2026-08-03 10:14:40))  
[2026-08-03 10:14:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:46] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:46] local.INFO: Model: Transaction  
[2026-08-03 10:14:46] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:14:46] local.INFO: ID present? YES  
[2026-08-03 10:14:46] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:46] local.INFO: ID empty? NO  
[2026-08-03 10:14:46] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:46] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 10:14:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 10:14:46, 2026-08-03 10:14:46))  
[2026-08-03 10:14:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:47] local.INFO: Model: Transaction  
[2026-08-03 10:14:47] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:14:47] local.INFO: ID present? YES  
[2026-08-03 10:14:47] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:14:47] local.INFO: ID empty? NO  
[2026-08-03 10:14:47] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:14:47] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:14:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 10:14:47, 2026-08-03 10:14:47))  
[2026-08-03 10:14:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:14:54] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:14:54] local.INFO: Model: Transaction  
[2026-08-03 10:14:54] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:14:54] local.INFO: ID present? YES  
[2026-08-03 10:14:54] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:14:54] local.INFO: ID empty? NO  
[2026-08-03 10:14:54] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:14:54] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:14:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 10:14:54, 2026-08-03 10:14:54))  
[2026-08-03 10:14:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:00] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:00] local.INFO: Model: Transaction  
[2026-08-03 10:15:00] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:15:00] local.INFO: ID present? YES  
[2026-08-03 10:15:00] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:15:00] local.INFO: ID empty? NO  
[2026-08-03 10:15:00] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:15:00] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:15:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 10:15:00, 2026-08-03 10:15:00))  
[2026-08-03 10:15:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:06] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:06] local.INFO: Model: Transaction  
[2026-08-03 10:15:06] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:15:06] local.INFO: ID present? YES  
[2026-08-03 10:15:06] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:15:06] local.INFO: ID empty? NO  
[2026-08-03 10:15:06] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:15:06] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 10:15:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 10:15:06, 2026-08-03 10:15:06))  
[2026-08-03 10:15:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:07] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:07] local.INFO: Model: Transaction  
[2026-08-03 10:15:07] local.INFO: Data received: {"id":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","type":"Buying","amount":50,"rate":127.5,"negotiated_rate":"0","amount_paid":6375,"amount_received":50,"narrative":null,"transaction_number":"TR-3634-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 10:13:58","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"72feec21-9837-4cde-aa57-8a14df1b8ad3","cancellation_reason":null,"customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-03 10:13:56","updated_at":"2026-08-03 10:13:58"} 
[2026-08-03 10:15:07] local.INFO: ID present? YES  
[2026-08-03 10:15:07] local.INFO: ID value: 9b121355-6fba-452a-9263-862c012ecd9e  
[2026-08-03 10:15:07] local.INFO: ID empty? NO  
[2026-08-03 10:15:07] local.INFO: Attempting to find record with ID: 9b121355-6fba-452a-9263-862c012ecd9e  
[2026-08-03 10:15:07] local.INFO: Record not found, creating new with ID: 9b121355-6fba-452a-9263-862c012ecd9e  
[2026-08-03 10:15:07] local.INFO: Created record: {"id":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","type":"Buying","amount":50,"rate":127.5,"negotiated_rate":"0","amount_paid":6375,"amount_received":50,"narrative":null,"transaction_number":"TR-3634-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 10:13:58","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"72feec21-9837-4cde-aa57-8a14df1b8ad3","cancellation_reason":null,"customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-03T07:15:07.000000Z","created_at":"2026-08-03T07:15:07.000000Z"} 
[2026-08-03 10:15:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:09] local.INFO: Model: Journal  
[2026-08-03 10:15:09] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:15:09] local.INFO: ID present? YES  
[2026-08-03 10:15:09] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:09] local.INFO: ID empty? NO  
[2026-08-03 10:15:09] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:09] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:09, 2026-08-03 10:15:09))  
[2026-08-03 10:15:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:15] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:15] local.INFO: Model: Journal  
[2026-08-03 10:15:15] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:15:15] local.INFO: ID present? YES  
[2026-08-03 10:15:15] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:15] local.INFO: ID empty? NO  
[2026-08-03 10:15:15] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:15] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:15, 2026-08-03 10:15:15))  
[2026-08-03 10:15:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:21] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:21] local.INFO: Model: Journal  
[2026-08-03 10:15:21] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:15:21] local.INFO: ID present? YES  
[2026-08-03 10:15:21] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:21] local.INFO: ID empty? NO  
[2026-08-03 10:15:21] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:21] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:21, 2026-08-03 10:15:21))  
[2026-08-03 10:15:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:27] local.INFO: Model: Journal  
[2026-08-03 10:15:27] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:15:27] local.INFO: ID present? YES  
[2026-08-03 10:15:27] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:27] local.INFO: ID empty? NO  
[2026-08-03 10:15:27] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:27] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 10:15:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:27, 2026-08-03 10:15:27))  
[2026-08-03 10:15:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:29] local.INFO: Model: Journal  
[2026-08-03 10:15:29] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:15:29] local.INFO: ID present? YES  
[2026-08-03 10:15:29] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:29] local.INFO: ID empty? NO  
[2026-08-03 10:15:29] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:29] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:29, 2026-08-03 10:15:29))  
[2026-08-03 10:15:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:35] local.INFO: Model: Journal  
[2026-08-03 10:15:35] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:15:35] local.INFO: ID present? YES  
[2026-08-03 10:15:35] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:35] local.INFO: ID empty? NO  
[2026-08-03 10:15:35] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:35] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:35, 2026-08-03 10:15:35))  
[2026-08-03 10:15:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:41] local.INFO: Model: Journal  
[2026-08-03 10:15:41] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:15:41] local.INFO: ID present? YES  
[2026-08-03 10:15:41] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:41] local.INFO: ID empty? NO  
[2026-08-03 10:15:41] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:41] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:41, 2026-08-03 10:15:41))  
[2026-08-03 10:15:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:47] local.INFO: Model: Journal  
[2026-08-03 10:15:47] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:15:47] local.INFO: ID present? YES  
[2026-08-03 10:15:47] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:47] local.INFO: ID empty? NO  
[2026-08-03 10:15:47] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:47] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 10:15:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:47, 2026-08-03 10:15:47))  
[2026-08-03 10:15:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:49] local.INFO: Model: Journal  
[2026-08-03 10:15:49] local.INFO: Data received: {"id":"497770f7-6375-45d4-abc3-32d2d1591ed6","type":"Credit","amount":"6375.00","rate":"127.500000","lcy_amount":"6375.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9b121355-6fba-452a-9263-862c012ecd9e","customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 10:13:58","updated_at":"2026-08-03 10:13:58"} 
[2026-08-03 10:15:49] local.INFO: ID present? YES  
[2026-08-03 10:15:49] local.INFO: ID value: 497770f7-6375-45d4-abc3-32d2d1591ed6  
[2026-08-03 10:15:49] local.INFO: ID empty? NO  
[2026-08-03 10:15:49] local.INFO: Attempting to find record with ID: 497770f7-6375-45d4-abc3-32d2d1591ed6  
[2026-08-03 10:15:49] local.INFO: Record not found, creating new with ID: 497770f7-6375-45d4-abc3-32d2d1591ed6  
[2026-08-03 10:15:49] local.INFO: Created record: {"id":"497770f7-6375-45d4-abc3-32d2d1591ed6","type":"Credit","amount":"6375.00","rate":"127.500000","lcy_amount":"6375.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"9b121355-6fba-452a-9263-862c012ecd9e","customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T07:15:49.000000Z","created_at":"2026-08-03T07:15:49.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":40193.0,"debit_total":"22343744.10","credit_total":22303551.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T15:49:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 10:15:50] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:50] local.INFO: Model: Journal  
[2026-08-03 10:15:50] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:15:50] local.INFO: ID present? YES  
[2026-08-03 10:15:50] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:15:50] local.INFO: ID empty? NO  
[2026-08-03 10:15:50] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:15:50] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:15:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:50, 2026-08-03 10:15:50))  
[2026-08-03 10:15:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:15:56] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:15:56] local.INFO: Model: Journal  
[2026-08-03 10:15:56] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:15:56] local.INFO: ID present? YES  
[2026-08-03 10:15:56] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:15:56] local.INFO: ID empty? NO  
[2026-08-03 10:15:56] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:15:56] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:15:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:15:56, 2026-08-03 10:15:56))  
[2026-08-03 10:15:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:02] local.INFO: Model: Journal  
[2026-08-03 10:16:02] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:16:02] local.INFO: ID present? YES  
[2026-08-03 10:16:02] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:16:02] local.INFO: ID empty? NO  
[2026-08-03 10:16:02] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:16:02] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:16:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:16:02, 2026-08-03 10:16:02))  
[2026-08-03 10:16:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:09] local.INFO: Model: Journal  
[2026-08-03 10:16:09] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:16:09] local.INFO: ID present? YES  
[2026-08-03 10:16:09] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:16:09] local.INFO: ID empty? NO  
[2026-08-03 10:16:09] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:16:09] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 10:16:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:16:09, 2026-08-03 10:16:09))  
[2026-08-03 10:16:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:10] local.INFO: Model: Journal  
[2026-08-03 10:16:10] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:16:10] local.INFO: ID present? YES  
[2026-08-03 10:16:10] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:10] local.INFO: ID empty? NO  
[2026-08-03 10:16:10] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:10] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:16:10, 2026-08-03 10:16:10))  
[2026-08-03 10:16:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:16] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:16] local.INFO: Model: Journal  
[2026-08-03 10:16:16] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:16:16] local.INFO: ID present? YES  
[2026-08-03 10:16:16] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:16] local.INFO: ID empty? NO  
[2026-08-03 10:16:16] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:16] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:16:16, 2026-08-03 10:16:16))  
[2026-08-03 10:16:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:23] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:23] local.INFO: Model: Journal  
[2026-08-03 10:16:23] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:16:23] local.INFO: ID present? YES  
[2026-08-03 10:16:23] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:23] local.INFO: ID empty? NO  
[2026-08-03 10:16:23] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:23] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:16:23, 2026-08-03 10:16:23))  
[2026-08-03 10:16:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:29] local.INFO: Model: Journal  
[2026-08-03 10:16:29] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:16:29] local.INFO: ID present? YES  
[2026-08-03 10:16:29] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:29] local.INFO: ID empty? NO  
[2026-08-03 10:16:29] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:29] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 10:16:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:16:29, 2026-08-03 10:16:29))  
[2026-08-03 10:16:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:30] local.INFO: Model: Journal  
[2026-08-03 10:16:30] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:16:30] local.INFO: ID present? YES  
[2026-08-03 10:16:30] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:30] local.INFO: ID empty? NO  
[2026-08-03 10:16:30] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:30] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 10:16:30, 2026-08-03 10:16:30))  
[2026-08-03 10:16:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:36] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:36] local.INFO: Model: Journal  
[2026-08-03 10:16:36] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:16:36] local.INFO: ID present? YES  
[2026-08-03 10:16:36] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:36] local.INFO: ID empty? NO  
[2026-08-03 10:16:36] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:36] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 10:16:36, 2026-08-03 10:16:36))  
[2026-08-03 10:16:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:43] local.INFO: Model: Journal  
[2026-08-03 10:16:43] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:16:43] local.INFO: ID present? YES  
[2026-08-03 10:16:43] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:43] local.INFO: ID empty? NO  
[2026-08-03 10:16:43] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:43] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 10:16:43, 2026-08-03 10:16:43))  
[2026-08-03 10:16:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:49] local.INFO: Model: Journal  
[2026-08-03 10:16:49] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:16:49] local.INFO: ID present? YES  
[2026-08-03 10:16:49] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:49] local.INFO: ID empty? NO  
[2026-08-03 10:16:49] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:49] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 10:16:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 10:16:49, 2026-08-03 10:16:49))  
[2026-08-03 10:16:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:50] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:50] local.INFO: Model: Journal  
[2026-08-03 10:16:50] local.INFO: Data received: {"id":"9b290b4c-32da-465e-a2c5-0be21f909e7a","type":"Credit","amount":"75.00","rate":"127.500000","lcy_amount":"75.000000","narrative":"Gain on TR-3634-2026","uniqid":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9b121355-6fba-452a-9263-862c012ecd9e","customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 10:13:58","updated_at":"2026-08-03 10:13:58"} 
[2026-08-03 10:16:50] local.INFO: ID present? YES  
[2026-08-03 10:16:50] local.INFO: ID value: 9b290b4c-32da-465e-a2c5-0be21f909e7a  
[2026-08-03 10:16:50] local.INFO: ID empty? NO  
[2026-08-03 10:16:50] local.INFO: Attempting to find record with ID: 9b290b4c-32da-465e-a2c5-0be21f909e7a  
[2026-08-03 10:16:50] local.INFO: Record not found, creating new with ID: 9b290b4c-32da-465e-a2c5-0be21f909e7a  
[2026-08-03 10:16:50] local.INFO: Created record: {"id":"9b290b4c-32da-465e-a2c5-0be21f909e7a","type":"Credit","amount":"75.00","rate":"127.500000","lcy_amount":"75.000000","narrative":"Gain on TR-3634-2026","uniqid":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"9b121355-6fba-452a-9263-862c012ecd9e","customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T07:16:50.000000Z","created_at":"2026-08-03T07:16:50.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-133099.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":140411.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T13:43:59.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 10:16:51] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:51] local.INFO: Model: Journal  
[2026-08-03 10:16:51] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:16:51] local.INFO: ID present? YES  
[2026-08-03 10:16:51] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:16:51] local.INFO: ID empty? NO  
[2026-08-03 10:16:51] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:16:51] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:16:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 10:16:51, 2026-08-03 10:16:51))  
[2026-08-03 10:16:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:16:58] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:16:58] local.INFO: Model: Journal  
[2026-08-03 10:16:58] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:16:58] local.INFO: ID present? YES  
[2026-08-03 10:16:58] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:16:58] local.INFO: ID empty? NO  
[2026-08-03 10:16:58] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:16:58] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:16:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 10:16:58, 2026-08-03 10:16:58))  
[2026-08-03 10:16:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:04] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:04] local.INFO: Model: Journal  
[2026-08-03 10:17:04] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:17:04] local.INFO: ID present? YES  
[2026-08-03 10:17:04] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:17:04] local.INFO: ID empty? NO  
[2026-08-03 10:17:04] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:17:04] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:17:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 10:17:04, 2026-08-03 10:17:04))  
[2026-08-03 10:17:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:10] local.INFO: Model: Journal  
[2026-08-03 10:17:10] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 10:17:10] local.INFO: ID present? YES  
[2026-08-03 10:17:10] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:17:10] local.INFO: ID empty? NO  
[2026-08-03 10:17:10] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:17:10] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 10:17:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 10:17:10, 2026-08-03 10:17:10))  
[2026-08-03 10:17:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:12] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:12] local.INFO: Model: Journal  
[2026-08-03 10:17:12] local.INFO: Data received: {"id":"9ecdcb7d-5ec2-4b90-adea-d85cfa989672","type":"Debit","amount":"50.00","rate":"127.500000","lcy_amount":"6450.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9b121355-6fba-452a-9263-862c012ecd9e","customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 10:13:58","updated_at":"2026-08-03 10:13:58"} 
[2026-08-03 10:17:12] local.INFO: ID present? YES  
[2026-08-03 10:17:12] local.INFO: ID value: 9ecdcb7d-5ec2-4b90-adea-d85cfa989672  
[2026-08-03 10:17:12] local.INFO: ID empty? NO  
[2026-08-03 10:17:12] local.INFO: Attempting to find record with ID: 9ecdcb7d-5ec2-4b90-adea-d85cfa989672  
[2026-08-03 10:17:12] local.INFO: Record not found, creating new with ID: 9ecdcb7d-5ec2-4b90-adea-d85cfa989672  
[2026-08-03 10:17:12] local.INFO: Created record: {"id":"9ecdcb7d-5ec2-4b90-adea-d85cfa989672","type":"Debit","amount":"50.00","rate":"127.500000","lcy_amount":"6450.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"9b121355-6fba-452a-9263-862c012ecd9e","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"9b121355-6fba-452a-9263-862c012ecd9e","customer_id":"33b0c75c-51ca-4d00-aedb-f3322f21904d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T07:17:12.000000Z","created_at":"2026-08-03T07:17:12.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":50.0,"debit_total":81641.0,"credit_total":"81591.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T15:29:05.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 10:17:13] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:13] local.INFO: Model: Journal  
[2026-08-03 10:17:13] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:13] local.INFO: ID present? YES  
[2026-08-03 10:17:13] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:13] local.INFO: ID empty? NO  
[2026-08-03 10:17:13] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:13] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:13, 2026-08-03 10:17:13))  
[2026-08-03 10:17:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:19] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:19] local.INFO: Model: Journal  
[2026-08-03 10:17:19] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:19] local.INFO: ID present? YES  
[2026-08-03 10:17:19] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:19] local.INFO: ID empty? NO  
[2026-08-03 10:17:19] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:19] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:19, 2026-08-03 10:17:19))  
[2026-08-03 10:17:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:25] local.INFO: Model: Journal  
[2026-08-03 10:17:25] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:25] local.INFO: ID present? YES  
[2026-08-03 10:17:25] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:25] local.INFO: ID empty? NO  
[2026-08-03 10:17:25] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:25] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:25, 2026-08-03 10:17:25))  
[2026-08-03 10:17:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:32] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:32] local.INFO: Model: Journal  
[2026-08-03 10:17:32] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:32] local.INFO: ID present? YES  
[2026-08-03 10:17:32] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:32] local.INFO: ID empty? NO  
[2026-08-03 10:17:32] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:32] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 10:17:32] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:32, 2026-08-03 10:17:32))  
[2026-08-03 10:17:32] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:33] local.INFO: Model: Journal  
[2026-08-03 10:17:33] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:33] local.INFO: ID present? YES  
[2026-08-03 10:17:33] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:33] local.INFO: ID empty? NO  
[2026-08-03 10:17:33] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:33] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:33, 2026-08-03 10:17:33))  
[2026-08-03 10:17:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:39] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:39] local.INFO: Model: Journal  
[2026-08-03 10:17:39] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:39] local.INFO: ID present? YES  
[2026-08-03 10:17:39] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:39] local.INFO: ID empty? NO  
[2026-08-03 10:17:39] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:39] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:39, 2026-08-03 10:17:39))  
[2026-08-03 10:17:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:45] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:45] local.INFO: Model: Journal  
[2026-08-03 10:17:45] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:45] local.INFO: ID present? YES  
[2026-08-03 10:17:45] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:45] local.INFO: ID empty? NO  
[2026-08-03 10:17:45] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:45] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:45, 2026-08-03 10:17:45))  
[2026-08-03 10:17:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:52] local.INFO: Model: Journal  
[2026-08-03 10:17:52] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 10:17:52] local.INFO: ID present? YES  
[2026-08-03 10:17:52] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:52] local.INFO: ID empty? NO  
[2026-08-03 10:17:52] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:52] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 10:17:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 10:17:52, 2026-08-03 10:17:52))  
[2026-08-03 10:17:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:53] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:53] local.INFO: Model: Journal  
[2026-08-03 10:17:53] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:17:53] local.INFO: ID present? YES  
[2026-08-03 10:17:53] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:17:53] local.INFO: ID empty? NO  
[2026-08-03 10:17:53] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:17:53] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:17:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 10:17:53, 2026-08-03 10:17:53))  
[2026-08-03 10:17:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:17:59] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:17:59] local.INFO: Model: Journal  
[2026-08-03 10:17:59] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:17:59] local.INFO: ID present? YES  
[2026-08-03 10:17:59] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:17:59] local.INFO: ID empty? NO  
[2026-08-03 10:17:59] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:17:59] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:17:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 10:17:59, 2026-08-03 10:17:59))  
[2026-08-03 10:17:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:18:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:18:05] local.INFO: Model: Journal  
[2026-08-03 10:18:05] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:18:05] local.INFO: ID present? YES  
[2026-08-03 10:18:05] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:18:05] local.INFO: ID empty? NO  
[2026-08-03 10:18:05] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:18:05] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:18:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 10:18:05, 2026-08-03 10:18:05))  
[2026-08-03 10:18:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 10:18:12] local.INFO: === SYNC DEBUG ===  
[2026-08-03 10:18:12] local.INFO: Model: Journal  
[2026-08-03 10:18:12] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 10:18:12] local.INFO: ID present? YES  
[2026-08-03 10:18:12] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:18:12] local.INFO: ID empty? NO  
[2026-08-03 10:18:12] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:18:12] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 10:18:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 10:18:12, 2026-08-03 10:18:12))  
[2026-08-03 10:18:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:33:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:24] local.INFO: Model: Transaction  
[2026-08-03 11:33:24] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:33:24] local.INFO: ID present? YES  
[2026-08-03 11:33:24] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:24] local.INFO: ID empty? NO  
[2026-08-03 11:33:24] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:24] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 11:33:24, 2026-08-03 11:33:24))  
[2026-08-03 11:33:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:33:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:30] local.INFO: Model: Transaction  
[2026-08-03 11:33:30] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:33:30] local.INFO: ID present? YES  
[2026-08-03 11:33:30] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:30] local.INFO: ID empty? NO  
[2026-08-03 11:33:30] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:30] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 11:33:30, 2026-08-03 11:33:30))  
[2026-08-03 11:33:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:33:37] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:37] local.INFO: Model: Transaction  
[2026-08-03 11:33:37] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:33:37] local.INFO: ID present? YES  
[2026-08-03 11:33:37] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:37] local.INFO: ID empty? NO  
[2026-08-03 11:33:37] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:37] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 11:33:37, 2026-08-03 11:33:37))  
[2026-08-03 11:33:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:33:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:43] local.INFO: Model: Transaction  
[2026-08-03 11:33:43] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:33:43] local.INFO: ID present? YES  
[2026-08-03 11:33:43] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:43] local.INFO: ID empty? NO  
[2026-08-03 11:33:43] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:43] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 11:33:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 11:33:43, 2026-08-03 11:33:43))  
[2026-08-03 11:33:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:33:44] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:44] local.INFO: Model: Transaction  
[2026-08-03 11:33:44] local.INFO: Data received: {"id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","type":"Buying","amount":1350,"rate":128.5,"negotiated_rate":"0","amount_paid":173475,"amount_received":1350,"narrative":null,"transaction_number":"TR-3635-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 11:30:55","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"e4b40f0f-3566-4898-aad2-9db154b49344","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-03 11:30:52","updated_at":"2026-08-03 11:30:55"} 
[2026-08-03 11:33:44] local.INFO: ID present? YES  
[2026-08-03 11:33:44] local.INFO: ID value: 08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c  
[2026-08-03 11:33:44] local.INFO: ID empty? NO  
[2026-08-03 11:33:44] local.INFO: Attempting to find record with ID: 08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c  
[2026-08-03 11:33:44] local.INFO: Record not found, creating new with ID: 08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c  
[2026-08-03 11:33:44] local.INFO: Created record: {"id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","type":"Buying","amount":1350,"rate":128.5,"negotiated_rate":"0","amount_paid":173475,"amount_received":1350,"narrative":null,"transaction_number":"TR-3635-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 11:30:55","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"e4b40f0f-3566-4898-aad2-9db154b49344","cancellation_reason":null,"customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-03T08:33:44.000000Z","created_at":"2026-08-03T08:33:44.000000Z"} 
[2026-08-03 11:33:45] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:45] local.INFO: Model: Transaction  
[2026-08-03 11:33:45] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:33:45] local.INFO: ID present? YES  
[2026-08-03 11:33:45] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:45] local.INFO: ID empty? NO  
[2026-08-03 11:33:45] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:45] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 11:33:45, 2026-08-03 11:33:45))  
[2026-08-03 11:33:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:33:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:52] local.INFO: Model: Transaction  
[2026-08-03 11:33:52] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:33:52] local.INFO: ID present? YES  
[2026-08-03 11:33:52] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:52] local.INFO: ID empty? NO  
[2026-08-03 11:33:52] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:52] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 11:33:52, 2026-08-03 11:33:52))  
[2026-08-03 11:33:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:33:58] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:33:58] local.INFO: Model: Transaction  
[2026-08-03 11:33:58] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:33:58] local.INFO: ID present? YES  
[2026-08-03 11:33:58] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:58] local.INFO: ID empty? NO  
[2026-08-03 11:33:58] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:58] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:33:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 11:33:58, 2026-08-03 11:33:58))  
[2026-08-03 11:33:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:04] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:04] local.INFO: Model: Transaction  
[2026-08-03 11:34:04] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:34:04] local.INFO: ID present? YES  
[2026-08-03 11:34:04] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:34:04] local.INFO: ID empty? NO  
[2026-08-03 11:34:04] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:34:04] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 11:34:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 11:34:04, 2026-08-03 11:34:04))  
[2026-08-03 11:34:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:05] local.INFO: Model: Transaction  
[2026-08-03 11:34:05] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:34:05] local.INFO: ID present? YES  
[2026-08-03 11:34:05] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:05] local.INFO: ID empty? NO  
[2026-08-03 11:34:05] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:05] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 11:34:05, 2026-08-03 11:34:05))  
[2026-08-03 11:34:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:12] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:12] local.INFO: Model: Transaction  
[2026-08-03 11:34:12] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:34:12] local.INFO: ID present? YES  
[2026-08-03 11:34:12] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:12] local.INFO: ID empty? NO  
[2026-08-03 11:34:12] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:12] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 11:34:12, 2026-08-03 11:34:12))  
[2026-08-03 11:34:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:18] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:18] local.INFO: Model: Transaction  
[2026-08-03 11:34:18] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:34:18] local.INFO: ID present? YES  
[2026-08-03 11:34:18] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:18] local.INFO: ID empty? NO  
[2026-08-03 11:34:18] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:18] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 11:34:18, 2026-08-03 11:34:18))  
[2026-08-03 11:34:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:24] local.INFO: Model: Transaction  
[2026-08-03 11:34:24] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:34:24] local.INFO: ID present? YES  
[2026-08-03 11:34:24] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:24] local.INFO: ID empty? NO  
[2026-08-03 11:34:24] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:24] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 11:34:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 11:34:24, 2026-08-03 11:34:24))  
[2026-08-03 11:34:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:25] local.INFO: Model: Journal  
[2026-08-03 11:34:25] local.INFO: Data received: {"id":"0869751b-471c-4b7f-9a1b-b17fdfdd5520","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"afaa9100-ac70-4bf0-be00-21580201e829","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 11:30:20","updated_at":"2026-08-03 11:30:28"} 
[2026-08-03 11:34:25] local.INFO: ID present? YES  
[2026-08-03 11:34:25] local.INFO: ID value: 0869751b-471c-4b7f-9a1b-b17fdfdd5520  
[2026-08-03 11:34:25] local.INFO: ID empty? NO  
[2026-08-03 11:34:25] local.INFO: Attempting to find record with ID: 0869751b-471c-4b7f-9a1b-b17fdfdd5520  
[2026-08-03 11:34:25] local.INFO: Record not found, creating new with ID: 0869751b-471c-4b7f-9a1b-b17fdfdd5520  
[2026-08-03 11:34:26] local.INFO: Created record: {"id":"0869751b-471c-4b7f-9a1b-b17fdfdd5520","type":"Credit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"afaa9100-ac70-4bf0-be00-21580201e829","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T08:34:25.000000Z","created_at":"2026-08-03T08:34:25.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":40133.0,"debit_total":"22343744.10","credit_total":22303611.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T07:15:49.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 11:34:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:27] local.INFO: Model: Journal  
[2026-08-03 11:34:27] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:34:27] local.INFO: ID present? YES  
[2026-08-03 11:34:27] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:27] local.INFO: ID empty? NO  
[2026-08-03 11:34:27] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:27] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:34:27, 2026-08-03 11:34:27))  
[2026-08-03 11:34:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:33] local.INFO: Model: Journal  
[2026-08-03 11:34:33] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:34:33] local.INFO: ID present? YES  
[2026-08-03 11:34:33] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:33] local.INFO: ID empty? NO  
[2026-08-03 11:34:33] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:33] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:34:33, 2026-08-03 11:34:33))  
[2026-08-03 11:34:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:39] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:39] local.INFO: Model: Journal  
[2026-08-03 11:34:39] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:34:39] local.INFO: ID present? YES  
[2026-08-03 11:34:39] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:39] local.INFO: ID empty? NO  
[2026-08-03 11:34:39] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:39] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:34:39, 2026-08-03 11:34:39))  
[2026-08-03 11:34:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:45] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:45] local.INFO: Model: Journal  
[2026-08-03 11:34:45] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:34:45] local.INFO: ID present? YES  
[2026-08-03 11:34:45] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:45] local.INFO: ID empty? NO  
[2026-08-03 11:34:45] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:45] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 11:34:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:34:45, 2026-08-03 11:34:45))  
[2026-08-03 11:34:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:47] local.INFO: Model: Journal  
[2026-08-03 11:34:47] local.INFO: Data received: {"id":"23bdda9b-4b2c-4b63-969e-7b0a720db912","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"afaa9100-ac70-4bf0-be00-21580201e829","date":"2026-08-03","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 11:30:20","updated_at":"2026-08-03 11:30:28"} 
[2026-08-03 11:34:47] local.INFO: ID present? YES  
[2026-08-03 11:34:47] local.INFO: ID value: 23bdda9b-4b2c-4b63-969e-7b0a720db912  
[2026-08-03 11:34:47] local.INFO: ID empty? NO  
[2026-08-03 11:34:47] local.INFO: Attempting to find record with ID: 23bdda9b-4b2c-4b63-969e-7b0a720db912  
[2026-08-03 11:34:47] local.INFO: Record not found, creating new with ID: 23bdda9b-4b2c-4b63-969e-7b0a720db912  
[2026-08-03 11:34:47] local.INFO: Created record: {"id":"23bdda9b-4b2c-4b63-969e-7b0a720db912","type":"Debit","amount":"60.00","rate":null,"lcy_amount":"60.000000","narrative":"PURCHASE OF MILK","uniqid":"afaa9100-ac70-4bf0-be00-21580201e829","date":"2026-08-03","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T08:34:47.000000Z","created_at":"2026-08-03T08:34:47.000000Z","account":{"id":"5b2031b2-fd4c-4111-8136-a1231b60f0ab","name":"Meals and Entertainment[Diani branch]","type":"Expense","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-50-KES-000012","is_fx_account":null,"balance":5710.0,"debit_total":5710.0,"credit_total":"0.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"2dddf48d-e4b7-400f-86d1-5e5ddb0132e5","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T10:01:39.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 11:34:48] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:48] local.INFO: Model: Journal  
[2026-08-03 11:34:48] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:34:48] local.INFO: ID present? YES  
[2026-08-03 11:34:48] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:34:48] local.INFO: ID empty? NO  
[2026-08-03 11:34:48] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:34:48] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:34:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:34:48, 2026-08-03 11:34:48))  
[2026-08-03 11:34:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:34:54] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:34:54] local.INFO: Model: Journal  
[2026-08-03 11:34:54] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:34:54] local.INFO: ID present? YES  
[2026-08-03 11:34:54] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:34:54] local.INFO: ID empty? NO  
[2026-08-03 11:34:54] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:34:54] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:34:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:34:54, 2026-08-03 11:34:54))  
[2026-08-03 11:34:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:01] local.INFO: Model: Journal  
[2026-08-03 11:35:01] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:35:01] local.INFO: ID present? YES  
[2026-08-03 11:35:01] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:35:01] local.INFO: ID empty? NO  
[2026-08-03 11:35:01] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:35:01] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:35:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:01, 2026-08-03 11:35:01))  
[2026-08-03 11:35:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:07] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:07] local.INFO: Model: Journal  
[2026-08-03 11:35:07] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:35:07] local.INFO: ID present? YES  
[2026-08-03 11:35:07] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:35:07] local.INFO: ID empty? NO  
[2026-08-03 11:35:07] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:35:07] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 11:35:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:07, 2026-08-03 11:35:07))  
[2026-08-03 11:35:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:09] local.INFO: Model: Journal  
[2026-08-03 11:35:09] local.INFO: Data received: {"id":"42cb42aa-25b5-470b-b8fe-36439b67f876","type":"Credit","amount":"173475.00","rate":"128.500000","lcy_amount":"173475.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 11:30:54","updated_at":"2026-08-03 11:30:54"} 
[2026-08-03 11:35:09] local.INFO: ID present? YES  
[2026-08-03 11:35:09] local.INFO: ID value: 42cb42aa-25b5-470b-b8fe-36439b67f876  
[2026-08-03 11:35:09] local.INFO: ID empty? NO  
[2026-08-03 11:35:09] local.INFO: Attempting to find record with ID: 42cb42aa-25b5-470b-b8fe-36439b67f876  
[2026-08-03 11:35:09] local.INFO: Record not found, creating new with ID: 42cb42aa-25b5-470b-b8fe-36439b67f876  
[2026-08-03 11:35:09] local.INFO: Created record: {"id":"42cb42aa-25b5-470b-b8fe-36439b67f876","type":"Credit","amount":"173475.00","rate":"128.500000","lcy_amount":"173475.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T08:35:09.000000Z","created_at":"2026-08-03T08:35:09.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-133342.0,"debit_total":"22343744.10","credit_total":22477086.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T08:34:26.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 11:35:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:10] local.INFO: Model: Journal  
[2026-08-03 11:35:10] local.INFO: Data received: {"id":"48f45aaa-1c41-42f3-a324-ce81a4c72c71","type":"Credit","amount":"675.00","rate":"128.500000","lcy_amount":"675.000000","narrative":"Gain on TR-3635-2026","uniqid":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 11:30:54","updated_at":"2026-08-03 11:30:54"} 
[2026-08-03 11:35:10] local.INFO: ID present? YES  
[2026-08-03 11:35:10] local.INFO: ID value: 48f45aaa-1c41-42f3-a324-ce81a4c72c71  
[2026-08-03 11:35:10] local.INFO: ID empty? NO  
[2026-08-03 11:35:10] local.INFO: Attempting to find record with ID: 48f45aaa-1c41-42f3-a324-ce81a4c72c71  
[2026-08-03 11:35:10] local.INFO: Record not found, creating new with ID: 48f45aaa-1c41-42f3-a324-ce81a4c72c71  
[2026-08-03 11:35:10] local.INFO: Created record: {"id":"48f45aaa-1c41-42f3-a324-ce81a4c72c71","type":"Credit","amount":"675.00","rate":"128.500000","lcy_amount":"675.000000","narrative":"Gain on TR-3635-2026","uniqid":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T08:35:10.000000Z","created_at":"2026-08-03T08:35:10.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-133774.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":141086.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T07:16:50.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 11:35:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:11] local.INFO: Model: Journal  
[2026-08-03 11:35:11] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:35:11] local.INFO: ID present? YES  
[2026-08-03 11:35:11] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:11] local.INFO: ID empty? NO  
[2026-08-03 11:35:11] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:11] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:11, 2026-08-03 11:35:11))  
[2026-08-03 11:35:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:17] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:17] local.INFO: Model: Journal  
[2026-08-03 11:35:17] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:35:17] local.INFO: ID present? YES  
[2026-08-03 11:35:17] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:17] local.INFO: ID empty? NO  
[2026-08-03 11:35:17] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:17] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:17, 2026-08-03 11:35:17))  
[2026-08-03 11:35:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:24] local.INFO: Model: Journal  
[2026-08-03 11:35:24] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:35:24] local.INFO: ID present? YES  
[2026-08-03 11:35:24] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:24] local.INFO: ID empty? NO  
[2026-08-03 11:35:24] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:24] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:24, 2026-08-03 11:35:24))  
[2026-08-03 11:35:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:30] local.INFO: Model: Journal  
[2026-08-03 11:35:30] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:35:30] local.INFO: ID present? YES  
[2026-08-03 11:35:30] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:30] local.INFO: ID empty? NO  
[2026-08-03 11:35:30] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:30] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 11:35:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:30, 2026-08-03 11:35:30))  
[2026-08-03 11:35:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:31] local.INFO: Model: Journal  
[2026-08-03 11:35:31] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:35:31] local.INFO: ID present? YES  
[2026-08-03 11:35:31] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:31] local.INFO: ID empty? NO  
[2026-08-03 11:35:31] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:31] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:31, 2026-08-03 11:35:31))  
[2026-08-03 11:35:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:38] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:38] local.INFO: Model: Journal  
[2026-08-03 11:35:38] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:35:38] local.INFO: ID present? YES  
[2026-08-03 11:35:38] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:38] local.INFO: ID empty? NO  
[2026-08-03 11:35:38] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:38] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:38, 2026-08-03 11:35:38))  
[2026-08-03 11:35:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:44] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:44] local.INFO: Model: Journal  
[2026-08-03 11:35:44] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:35:44] local.INFO: ID present? YES  
[2026-08-03 11:35:44] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:44] local.INFO: ID empty? NO  
[2026-08-03 11:35:44] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:44] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:44, 2026-08-03 11:35:44))  
[2026-08-03 11:35:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:50] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:50] local.INFO: Model: Journal  
[2026-08-03 11:35:50] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:35:50] local.INFO: ID present? YES  
[2026-08-03 11:35:50] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:50] local.INFO: ID empty? NO  
[2026-08-03 11:35:50] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:50] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 11:35:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:35:50, 2026-08-03 11:35:50))  
[2026-08-03 11:35:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:51] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:51] local.INFO: Model: Journal  
[2026-08-03 11:35:51] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:35:51] local.INFO: ID present? YES  
[2026-08-03 11:35:51] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:35:51] local.INFO: ID empty? NO  
[2026-08-03 11:35:51] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:35:51] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:35:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 11:35:51, 2026-08-03 11:35:51))  
[2026-08-03 11:35:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:35:58] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:35:58] local.INFO: Model: Journal  
[2026-08-03 11:35:58] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:35:58] local.INFO: ID present? YES  
[2026-08-03 11:35:58] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:35:58] local.INFO: ID empty? NO  
[2026-08-03 11:35:58] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:35:58] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:35:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 11:35:58, 2026-08-03 11:35:58))  
[2026-08-03 11:35:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:04] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:04] local.INFO: Model: Journal  
[2026-08-03 11:36:04] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:04] local.INFO: ID present? YES  
[2026-08-03 11:36:04] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:36:04] local.INFO: ID empty? NO  
[2026-08-03 11:36:04] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:36:04] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:36:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 11:36:04, 2026-08-03 11:36:04))  
[2026-08-03 11:36:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:10] local.INFO: Model: Journal  
[2026-08-03 11:36:10] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:10] local.INFO: ID present? YES  
[2026-08-03 11:36:10] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:36:10] local.INFO: ID empty? NO  
[2026-08-03 11:36:10] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:36:10] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 11:36:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 11:36:10, 2026-08-03 11:36:10))  
[2026-08-03 11:36:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:11] local.INFO: Model: Journal  
[2026-08-03 11:36:11] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:36:11] local.INFO: ID present? YES  
[2026-08-03 11:36:11] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:11] local.INFO: ID empty? NO  
[2026-08-03 11:36:11] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:11] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 11:36:11, 2026-08-03 11:36:11))  
[2026-08-03 11:36:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:17] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:17] local.INFO: Model: Journal  
[2026-08-03 11:36:17] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:36:17] local.INFO: ID present? YES  
[2026-08-03 11:36:17] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:17] local.INFO: ID empty? NO  
[2026-08-03 11:36:17] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:18] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 11:36:18, 2026-08-03 11:36:18))  
[2026-08-03 11:36:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:24] local.INFO: Model: Journal  
[2026-08-03 11:36:24] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:36:24] local.INFO: ID present? YES  
[2026-08-03 11:36:24] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:24] local.INFO: ID empty? NO  
[2026-08-03 11:36:24] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:24] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 11:36:24, 2026-08-03 11:36:24))  
[2026-08-03 11:36:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:30] local.INFO: Model: Journal  
[2026-08-03 11:36:30] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 11:36:30] local.INFO: ID present? YES  
[2026-08-03 11:36:30] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:30] local.INFO: ID empty? NO  
[2026-08-03 11:36:30] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:30] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 11:36:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 11:36:30, 2026-08-03 11:36:30))  
[2026-08-03 11:36:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:31] local.INFO: Model: Journal  
[2026-08-03 11:36:31] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:31] local.INFO: ID present? YES  
[2026-08-03 11:36:31] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:31] local.INFO: ID empty? NO  
[2026-08-03 11:36:31] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:31] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:36:31, 2026-08-03 11:36:31))  
[2026-08-03 11:36:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:37] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:37] local.INFO: Model: Journal  
[2026-08-03 11:36:37] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:37] local.INFO: ID present? YES  
[2026-08-03 11:36:37] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:37] local.INFO: ID empty? NO  
[2026-08-03 11:36:37] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:37] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:36:37, 2026-08-03 11:36:37))  
[2026-08-03 11:36:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:44] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:44] local.INFO: Model: Journal  
[2026-08-03 11:36:44] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:44] local.INFO: ID present? YES  
[2026-08-03 11:36:44] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:44] local.INFO: ID empty? NO  
[2026-08-03 11:36:44] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:44] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:36:44, 2026-08-03 11:36:44))  
[2026-08-03 11:36:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:50] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:50] local.INFO: Model: Journal  
[2026-08-03 11:36:50] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:50] local.INFO: ID present? YES  
[2026-08-03 11:36:50] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:50] local.INFO: ID empty? NO  
[2026-08-03 11:36:50] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:50] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 11:36:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:36:50, 2026-08-03 11:36:50))  
[2026-08-03 11:36:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:51] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:51] local.INFO: Model: Journal  
[2026-08-03 11:36:51] local.INFO: Data received: {"id":"dcc393c4-e302-4e82-8dbd-39c9c88dafea","type":"Debit","amount":"1350.00","rate":"128.500000","lcy_amount":"174150.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 11:30:54","updated_at":"2026-08-03 11:30:54"} 
[2026-08-03 11:36:51] local.INFO: ID present? YES  
[2026-08-03 11:36:51] local.INFO: ID value: dcc393c4-e302-4e82-8dbd-39c9c88dafea  
[2026-08-03 11:36:51] local.INFO: ID empty? NO  
[2026-08-03 11:36:51] local.INFO: Attempting to find record with ID: dcc393c4-e302-4e82-8dbd-39c9c88dafea  
[2026-08-03 11:36:51] local.INFO: Record not found, creating new with ID: dcc393c4-e302-4e82-8dbd-39c9c88dafea  
[2026-08-03 11:36:51] local.INFO: Created record: {"id":"dcc393c4-e302-4e82-8dbd-39c9c88dafea","type":"Debit","amount":"1350.00","rate":"128.500000","lcy_amount":"174150.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"08d56d1c-bc4a-4ae0-bd9b-a621c0f88b7c","customer_id":"a484688d-c086-4d84-8cb0-1917197edb4e","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T08:36:51.000000Z","created_at":"2026-08-03T08:36:51.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1400.0,"debit_total":82991.0,"credit_total":"81591.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T07:17:12.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 11:36:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:52] local.INFO: Model: Journal  
[2026-08-03 11:36:52] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:52] local.INFO: ID present? YES  
[2026-08-03 11:36:52] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:36:52] local.INFO: ID empty? NO  
[2026-08-03 11:36:52] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:36:52] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:36:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:36:52, 2026-08-03 11:36:52))  
[2026-08-03 11:36:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:36:59] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:36:59] local.INFO: Model: Journal  
[2026-08-03 11:36:59] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:36:59] local.INFO: ID present? YES  
[2026-08-03 11:36:59] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:36:59] local.INFO: ID empty? NO  
[2026-08-03 11:36:59] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:36:59] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:36:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:36:59, 2026-08-03 11:36:59))  
[2026-08-03 11:36:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:37:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:37:05] local.INFO: Model: Journal  
[2026-08-03 11:37:05] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:37:05] local.INFO: ID present? YES  
[2026-08-03 11:37:05] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:37:05] local.INFO: ID empty? NO  
[2026-08-03 11:37:05] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:37:05] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:37:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:37:05, 2026-08-03 11:37:05))  
[2026-08-03 11:37:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:37:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:37:11] local.INFO: Model: Journal  
[2026-08-03 11:37:11] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 11:37:11] local.INFO: ID present? YES  
[2026-08-03 11:37:11] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:37:11] local.INFO: ID empty? NO  
[2026-08-03 11:37:11] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:37:11] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 11:37:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 11:37:11, 2026-08-03 11:37:11))  
[2026-08-03 11:37:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:37:12] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:37:12] local.INFO: Model: Journal  
[2026-08-03 11:37:12] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:37:12] local.INFO: ID present? YES  
[2026-08-03 11:37:12] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:12] local.INFO: ID empty? NO  
[2026-08-03 11:37:12] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:12] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 11:37:12, 2026-08-03 11:37:12))  
[2026-08-03 11:37:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:37:18] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:37:18] local.INFO: Model: Journal  
[2026-08-03 11:37:18] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:37:18] local.INFO: ID present? YES  
[2026-08-03 11:37:18] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:18] local.INFO: ID empty? NO  
[2026-08-03 11:37:18] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:18] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 11:37:18, 2026-08-03 11:37:18))  
[2026-08-03 11:37:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:37:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:37:25] local.INFO: Model: Journal  
[2026-08-03 11:37:25] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:37:25] local.INFO: ID present? YES  
[2026-08-03 11:37:25] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:25] local.INFO: ID empty? NO  
[2026-08-03 11:37:25] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:25] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 11:37:25, 2026-08-03 11:37:25))  
[2026-08-03 11:37:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 11:37:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 11:37:31] local.INFO: Model: Journal  
[2026-08-03 11:37:31] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 11:37:31] local.INFO: ID present? YES  
[2026-08-03 11:37:31] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:31] local.INFO: ID empty? NO  
[2026-08-03 11:37:31] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:31] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 11:37:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 11:37:31, 2026-08-03 11:37:31))  
[2026-08-03 11:37:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:08:39] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:08:39] local.INFO: Model: Transaction  
[2026-08-03 12:08:39] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:08:39] local.INFO: ID present? YES  
[2026-08-03 12:08:39] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:39] local.INFO: ID empty? NO  
[2026-08-03 12:08:39] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:39] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 12:08:39, 2026-08-03 12:08:39))  
[2026-08-03 12:08:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:08:45] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:08:45] local.INFO: Model: Transaction  
[2026-08-03 12:08:45] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:08:45] local.INFO: ID present? YES  
[2026-08-03 12:08:45] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:45] local.INFO: ID empty? NO  
[2026-08-03 12:08:45] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:45] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 12:08:45, 2026-08-03 12:08:45))  
[2026-08-03 12:08:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:08:51] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:08:51] local.INFO: Model: Transaction  
[2026-08-03 12:08:51] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:08:51] local.INFO: ID present? YES  
[2026-08-03 12:08:51] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:51] local.INFO: ID empty? NO  
[2026-08-03 12:08:51] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:51] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 12:08:51, 2026-08-03 12:08:51))  
[2026-08-03 12:08:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:08:58] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:08:58] local.INFO: Model: Transaction  
[2026-08-03 12:08:58] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:08:58] local.INFO: ID present? YES  
[2026-08-03 12:08:58] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:58] local.INFO: ID empty? NO  
[2026-08-03 12:08:58] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:58] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 12:08:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 12:08:58, 2026-08-03 12:08:58))  
[2026-08-03 12:08:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:08:59] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:08:59] local.INFO: Model: Transaction  
[2026-08-03 12:08:59] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:08:59] local.INFO: ID present? YES  
[2026-08-03 12:08:59] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:08:59] local.INFO: ID empty? NO  
[2026-08-03 12:08:59] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:08:59] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:08:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 12:08:59, 2026-08-03 12:08:59))  
[2026-08-03 12:08:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:05] local.INFO: Model: Transaction  
[2026-08-03 12:09:05] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:09:05] local.INFO: ID present? YES  
[2026-08-03 12:09:05] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:05] local.INFO: ID empty? NO  
[2026-08-03 12:09:05] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:05] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 12:09:05, 2026-08-03 12:09:05))  
[2026-08-03 12:09:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:11] local.INFO: Model: Transaction  
[2026-08-03 12:09:11] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:09:11] local.INFO: ID present? YES  
[2026-08-03 12:09:11] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:11] local.INFO: ID empty? NO  
[2026-08-03 12:09:11] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:11] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 12:09:11, 2026-08-03 12:09:11))  
[2026-08-03 12:09:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:18] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:18] local.INFO: Model: Transaction  
[2026-08-03 12:09:18] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:09:18] local.INFO: ID present? YES  
[2026-08-03 12:09:18] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:18] local.INFO: ID empty? NO  
[2026-08-03 12:09:18] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:18] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 12:09:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 12:09:18, 2026-08-03 12:09:18))  
[2026-08-03 12:09:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:19] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:19] local.INFO: Model: Transaction  
[2026-08-03 12:09:19] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:09:19] local.INFO: ID present? YES  
[2026-08-03 12:09:19] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:19] local.INFO: ID empty? NO  
[2026-08-03 12:09:19] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:19] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 12:09:19, 2026-08-03 12:09:19))  
[2026-08-03 12:09:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:25] local.INFO: Model: Transaction  
[2026-08-03 12:09:25] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:09:25] local.INFO: ID present? YES  
[2026-08-03 12:09:25] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:25] local.INFO: ID empty? NO  
[2026-08-03 12:09:25] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:25] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 12:09:25, 2026-08-03 12:09:25))  
[2026-08-03 12:09:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:31] local.INFO: Model: Transaction  
[2026-08-03 12:09:31] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:09:31] local.INFO: ID present? YES  
[2026-08-03 12:09:31] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:31] local.INFO: ID empty? NO  
[2026-08-03 12:09:31] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:31] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 12:09:31, 2026-08-03 12:09:31))  
[2026-08-03 12:09:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:38] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:38] local.INFO: Model: Transaction  
[2026-08-03 12:09:38] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:09:38] local.INFO: ID present? YES  
[2026-08-03 12:09:38] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:38] local.INFO: ID empty? NO  
[2026-08-03 12:09:38] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:38] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 12:09:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 12:09:38, 2026-08-03 12:09:38))  
[2026-08-03 12:09:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:39] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:39] local.INFO: Model: Transaction  
[2026-08-03 12:09:39] local.INFO: Data received: {"id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3636-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 12:08:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d0bc0597-9ec4-4293-82c3-f99fe47e14f1","cancellation_reason":null,"customer_id":"15257062-2b21-4280-bead-3b3c0880da54","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-03 12:07:21","updated_at":"2026-08-03 12:08:34"} 
[2026-08-03 12:09:39] local.INFO: ID present? YES  
[2026-08-03 12:09:39] local.INFO: ID value: bc393e45-16a7-4239-8ab1-21e69a56f6da  
[2026-08-03 12:09:39] local.INFO: ID empty? NO  
[2026-08-03 12:09:39] local.INFO: Attempting to find record with ID: bc393e45-16a7-4239-8ab1-21e69a56f6da  
[2026-08-03 12:09:39] local.INFO: Record not found, creating new with ID: bc393e45-16a7-4239-8ab1-21e69a56f6da  
[2026-08-03 12:09:39] local.INFO: Created record: {"id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3636-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 12:08:34","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"d0bc0597-9ec4-4293-82c3-f99fe47e14f1","cancellation_reason":null,"customer_id":"15257062-2b21-4280-bead-3b3c0880da54","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-03T09:09:39.000000Z","created_at":"2026-08-03T09:09:39.000000Z"} 
[2026-08-03 12:09:40] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:40] local.INFO: Model: Journal  
[2026-08-03 12:09:40] local.INFO: Data received: {"id":"13e6e82b-ae7a-4553-8d3b-988d7a6d1c09","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 12:08:34","updated_at":"2026-08-03 12:08:34"} 
[2026-08-03 12:09:40] local.INFO: ID present? YES  
[2026-08-03 12:09:40] local.INFO: ID value: 13e6e82b-ae7a-4553-8d3b-988d7a6d1c09  
[2026-08-03 12:09:40] local.INFO: ID empty? NO  
[2026-08-03 12:09:40] local.INFO: Attempting to find record with ID: 13e6e82b-ae7a-4553-8d3b-988d7a6d1c09  
[2026-08-03 12:09:40] local.INFO: Record not found, creating new with ID: 13e6e82b-ae7a-4553-8d3b-988d7a6d1c09  
[2026-08-03 12:09:40] local.INFO: Created record: {"id":"13e6e82b-ae7a-4553-8d3b-988d7a6d1c09","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T09:09:40.000000Z","created_at":"2026-08-03T09:09:40.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-147842.0,"debit_total":"22343744.10","credit_total":22491586.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T08:35:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 12:09:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:41] local.INFO: Model: Journal  
[2026-08-03 12:09:41] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:09:41] local.INFO: ID present? YES  
[2026-08-03 12:09:41] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:41] local.INFO: ID empty? NO  
[2026-08-03 12:09:41] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:41] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:09:41, 2026-08-03 12:09:41))  
[2026-08-03 12:09:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:48] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:48] local.INFO: Model: Journal  
[2026-08-03 12:09:48] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:09:48] local.INFO: ID present? YES  
[2026-08-03 12:09:48] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:48] local.INFO: ID empty? NO  
[2026-08-03 12:09:48] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:48] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:09:48, 2026-08-03 12:09:48))  
[2026-08-03 12:09:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:09:54] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:09:54] local.INFO: Model: Journal  
[2026-08-03 12:09:54] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:09:54] local.INFO: ID present? YES  
[2026-08-03 12:09:54] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:54] local.INFO: ID empty? NO  
[2026-08-03 12:09:54] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:54] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:09:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:09:54, 2026-08-03 12:09:54))  
[2026-08-03 12:09:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:00] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:00] local.INFO: Model: Journal  
[2026-08-03 12:10:00] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:10:00] local.INFO: ID present? YES  
[2026-08-03 12:10:00] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:10:00] local.INFO: ID empty? NO  
[2026-08-03 12:10:00] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:10:00] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 12:10:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:00, 2026-08-03 12:10:00))  
[2026-08-03 12:10:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:02] local.INFO: Model: Journal  
[2026-08-03 12:10:02] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:10:02] local.INFO: ID present? YES  
[2026-08-03 12:10:02] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:02] local.INFO: ID empty? NO  
[2026-08-03 12:10:02] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:02] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:02, 2026-08-03 12:10:02))  
[2026-08-03 12:10:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:08] local.INFO: Model: Journal  
[2026-08-03 12:10:08] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:10:08] local.INFO: ID present? YES  
[2026-08-03 12:10:08] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:08] local.INFO: ID empty? NO  
[2026-08-03 12:10:08] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:08] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:08, 2026-08-03 12:10:08))  
[2026-08-03 12:10:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:14] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:14] local.INFO: Model: Journal  
[2026-08-03 12:10:14] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:10:14] local.INFO: ID present? YES  
[2026-08-03 12:10:14] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:14] local.INFO: ID empty? NO  
[2026-08-03 12:10:14] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:14] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:14, 2026-08-03 12:10:14))  
[2026-08-03 12:10:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:20] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:20] local.INFO: Model: Journal  
[2026-08-03 12:10:20] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:10:20] local.INFO: ID present? YES  
[2026-08-03 12:10:20] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:20] local.INFO: ID empty? NO  
[2026-08-03 12:10:20] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:20] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 12:10:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:20, 2026-08-03 12:10:20))  
[2026-08-03 12:10:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:21] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:21] local.INFO: Model: Journal  
[2026-08-03 12:10:21] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:10:21] local.INFO: ID present? YES  
[2026-08-03 12:10:21] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:21] local.INFO: ID empty? NO  
[2026-08-03 12:10:21] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:21] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:21, 2026-08-03 12:10:21))  
[2026-08-03 12:10:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:29] local.INFO: Model: Journal  
[2026-08-03 12:10:29] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:10:29] local.INFO: ID present? YES  
[2026-08-03 12:10:29] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:29] local.INFO: ID empty? NO  
[2026-08-03 12:10:29] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:29] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:29, 2026-08-03 12:10:29))  
[2026-08-03 12:10:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:35] local.INFO: Model: Journal  
[2026-08-03 12:10:35] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:10:35] local.INFO: ID present? YES  
[2026-08-03 12:10:35] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:35] local.INFO: ID empty? NO  
[2026-08-03 12:10:35] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:35] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:35, 2026-08-03 12:10:35))  
[2026-08-03 12:10:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:41] local.INFO: Model: Journal  
[2026-08-03 12:10:41] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:10:41] local.INFO: ID present? YES  
[2026-08-03 12:10:41] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:41] local.INFO: ID empty? NO  
[2026-08-03 12:10:41] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:41] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 12:10:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:41, 2026-08-03 12:10:41))  
[2026-08-03 12:10:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:43] local.INFO: Model: Journal  
[2026-08-03 12:10:43] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:10:43] local.INFO: ID present? YES  
[2026-08-03 12:10:43] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:43] local.INFO: ID empty? NO  
[2026-08-03 12:10:43] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:43] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:43, 2026-08-03 12:10:43))  
[2026-08-03 12:10:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:49] local.INFO: Model: Journal  
[2026-08-03 12:10:49] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:10:49] local.INFO: ID present? YES  
[2026-08-03 12:10:49] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:49] local.INFO: ID empty? NO  
[2026-08-03 12:10:49] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:49] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:49, 2026-08-03 12:10:49))  
[2026-08-03 12:10:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:10:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:10:55] local.INFO: Model: Journal  
[2026-08-03 12:10:55] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:10:55] local.INFO: ID present? YES  
[2026-08-03 12:10:55] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:55] local.INFO: ID empty? NO  
[2026-08-03 12:10:55] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:55] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:10:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:10:55, 2026-08-03 12:10:55))  
[2026-08-03 12:10:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:01] local.INFO: Model: Journal  
[2026-08-03 12:11:01] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:11:01] local.INFO: ID present? YES  
[2026-08-03 12:11:01] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:11:01] local.INFO: ID empty? NO  
[2026-08-03 12:11:01] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:11:01] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 12:11:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:11:01, 2026-08-03 12:11:01))  
[2026-08-03 12:11:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:02] local.INFO: Model: Journal  
[2026-08-03 12:11:02] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:11:02] local.INFO: ID present? YES  
[2026-08-03 12:11:02] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:02] local.INFO: ID empty? NO  
[2026-08-03 12:11:02] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:02] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 12:11:02, 2026-08-03 12:11:02))  
[2026-08-03 12:11:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:09] local.INFO: Model: Journal  
[2026-08-03 12:11:09] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:11:09] local.INFO: ID present? YES  
[2026-08-03 12:11:09] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:09] local.INFO: ID empty? NO  
[2026-08-03 12:11:09] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:09] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 12:11:09, 2026-08-03 12:11:09))  
[2026-08-03 12:11:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:15] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:15] local.INFO: Model: Journal  
[2026-08-03 12:11:15] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:11:15] local.INFO: ID present? YES  
[2026-08-03 12:11:15] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:15] local.INFO: ID empty? NO  
[2026-08-03 12:11:15] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:15] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 12:11:15, 2026-08-03 12:11:15))  
[2026-08-03 12:11:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:21] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:21] local.INFO: Model: Journal  
[2026-08-03 12:11:21] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:11:21] local.INFO: ID present? YES  
[2026-08-03 12:11:21] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:21] local.INFO: ID empty? NO  
[2026-08-03 12:11:21] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:21] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 12:11:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 12:11:21, 2026-08-03 12:11:21))  
[2026-08-03 12:11:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:22] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:22] local.INFO: Model: Journal  
[2026-08-03 12:11:22] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:11:22] local.INFO: ID present? YES  
[2026-08-03 12:11:22] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:22] local.INFO: ID empty? NO  
[2026-08-03 12:11:22] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:22] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 12:11:22, 2026-08-03 12:11:22))  
[2026-08-03 12:11:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:29] local.INFO: Model: Journal  
[2026-08-03 12:11:29] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:11:29] local.INFO: ID present? YES  
[2026-08-03 12:11:29] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:29] local.INFO: ID empty? NO  
[2026-08-03 12:11:29] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:29] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 12:11:29, 2026-08-03 12:11:29))  
[2026-08-03 12:11:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:35] local.INFO: Model: Journal  
[2026-08-03 12:11:35] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:11:35] local.INFO: ID present? YES  
[2026-08-03 12:11:35] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:35] local.INFO: ID empty? NO  
[2026-08-03 12:11:35] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:35] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 12:11:35, 2026-08-03 12:11:35))  
[2026-08-03 12:11:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:41] local.INFO: Model: Journal  
[2026-08-03 12:11:41] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 12:11:41] local.INFO: ID present? YES  
[2026-08-03 12:11:41] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:41] local.INFO: ID empty? NO  
[2026-08-03 12:11:41] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:41] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 12:11:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 12:11:41, 2026-08-03 12:11:41))  
[2026-08-03 12:11:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:42] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:42] local.INFO: Model: Journal  
[2026-08-03 12:11:42] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:11:42] local.INFO: ID present? YES  
[2026-08-03 12:11:42] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:42] local.INFO: ID empty? NO  
[2026-08-03 12:11:42] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:42] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:11:42, 2026-08-03 12:11:42))  
[2026-08-03 12:11:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:48] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:48] local.INFO: Model: Journal  
[2026-08-03 12:11:48] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:11:48] local.INFO: ID present? YES  
[2026-08-03 12:11:48] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:48] local.INFO: ID empty? NO  
[2026-08-03 12:11:48] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:48] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:11:48, 2026-08-03 12:11:48))  
[2026-08-03 12:11:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:11:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:11:55] local.INFO: Model: Journal  
[2026-08-03 12:11:55] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:11:55] local.INFO: ID present? YES  
[2026-08-03 12:11:55] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:55] local.INFO: ID empty? NO  
[2026-08-03 12:11:55] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:55] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:11:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:11:55, 2026-08-03 12:11:55))  
[2026-08-03 12:11:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:01] local.INFO: Model: Journal  
[2026-08-03 12:12:01] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:12:01] local.INFO: ID present? YES  
[2026-08-03 12:12:01] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:12:01] local.INFO: ID empty? NO  
[2026-08-03 12:12:01] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:12:01] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 12:12:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:12:01, 2026-08-03 12:12:01))  
[2026-08-03 12:12:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:02] local.INFO: Model: Journal  
[2026-08-03 12:12:02] local.INFO: Data received: {"id":"b51c9171-1192-454c-8be0-3f8f0a1509b3","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-03 12:08:34","updated_at":"2026-08-03 12:08:34"} 
[2026-08-03 12:12:02] local.INFO: ID present? YES  
[2026-08-03 12:12:02] local.INFO: ID value: b51c9171-1192-454c-8be0-3f8f0a1509b3  
[2026-08-03 12:12:02] local.INFO: ID empty? NO  
[2026-08-03 12:12:02] local.INFO: Attempting to find record with ID: b51c9171-1192-454c-8be0-3f8f0a1509b3  
[2026-08-03 12:12:02] local.INFO: Record not found, creating new with ID: b51c9171-1192-454c-8be0-3f8f0a1509b3  
[2026-08-03 12:12:02] local.INFO: Created record: {"id":"b51c9171-1192-454c-8be0-3f8f0a1509b3","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-03T09:12:02.000000Z","created_at":"2026-08-03T09:12:02.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":100.0,"debit_total":24640.0,"credit_total":"24540.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-02T15:29:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 12:12:03] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:03] local.INFO: Model: Journal  
[2026-08-03 12:12:03] local.INFO: Data received: {"id":"e350eda9-cc68-48c5-bb8d-3841002a3e57","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3636-2026","uniqid":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 12:08:34","updated_at":"2026-08-03 12:08:34"} 
[2026-08-03 12:12:03] local.INFO: ID present? YES  
[2026-08-03 12:12:03] local.INFO: ID value: e350eda9-cc68-48c5-bb8d-3841002a3e57  
[2026-08-03 12:12:03] local.INFO: ID empty? NO  
[2026-08-03 12:12:03] local.INFO: Attempting to find record with ID: e350eda9-cc68-48c5-bb8d-3841002a3e57  
[2026-08-03 12:12:03] local.INFO: Record not found, creating new with ID: e350eda9-cc68-48c5-bb8d-3841002a3e57  
[2026-08-03 12:12:03] local.INFO: Created record: {"id":"e350eda9-cc68-48c5-bb8d-3841002a3e57","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3636-2026","uniqid":"bc393e45-16a7-4239-8ab1-21e69a56f6da","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"bc393e45-16a7-4239-8ab1-21e69a56f6da","customer_id":"15257062-2b21-4280-bead-3b3c0880da54","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T09:12:03.000000Z","created_at":"2026-08-03T09:12:03.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-134394.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":141706.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T08:35:10.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 12:12:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:05] local.INFO: Model: Journal  
[2026-08-03 12:12:05] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:12:05] local.INFO: ID present? YES  
[2026-08-03 12:12:05] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:05] local.INFO: ID empty? NO  
[2026-08-03 12:12:05] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:05] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:12:05, 2026-08-03 12:12:05))  
[2026-08-03 12:12:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:11] local.INFO: Model: Journal  
[2026-08-03 12:12:11] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:12:11] local.INFO: ID present? YES  
[2026-08-03 12:12:11] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:11] local.INFO: ID empty? NO  
[2026-08-03 12:12:11] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:11] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:12:11, 2026-08-03 12:12:11))  
[2026-08-03 12:12:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:17] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:17] local.INFO: Model: Journal  
[2026-08-03 12:12:17] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:12:17] local.INFO: ID present? YES  
[2026-08-03 12:12:17] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:17] local.INFO: ID empty? NO  
[2026-08-03 12:12:17] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:17] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:12:17, 2026-08-03 12:12:17))  
[2026-08-03 12:12:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:23] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:23] local.INFO: Model: Journal  
[2026-08-03 12:12:23] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 12:12:23] local.INFO: ID present? YES  
[2026-08-03 12:12:23] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:23] local.INFO: ID empty? NO  
[2026-08-03 12:12:23] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:23] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 12:12:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 12:12:23, 2026-08-03 12:12:23))  
[2026-08-03 12:12:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:25] local.INFO: Model: Journal  
[2026-08-03 12:12:25] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:12:25] local.INFO: ID present? YES  
[2026-08-03 12:12:25] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:25] local.INFO: ID empty? NO  
[2026-08-03 12:12:25] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:25] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 12:12:25, 2026-08-03 12:12:25))  
[2026-08-03 12:12:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:31] local.INFO: Model: Journal  
[2026-08-03 12:12:31] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:12:31] local.INFO: ID present? YES  
[2026-08-03 12:12:31] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:31] local.INFO: ID empty? NO  
[2026-08-03 12:12:31] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:31] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 12:12:31, 2026-08-03 12:12:31))  
[2026-08-03 12:12:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:37] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:37] local.INFO: Model: Journal  
[2026-08-03 12:12:37] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:12:37] local.INFO: ID present? YES  
[2026-08-03 12:12:37] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:37] local.INFO: ID empty? NO  
[2026-08-03 12:12:37] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:37] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 12:12:37, 2026-08-03 12:12:37))  
[2026-08-03 12:12:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 12:12:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 12:12:43] local.INFO: Model: Journal  
[2026-08-03 12:12:43] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 12:12:43] local.INFO: ID present? YES  
[2026-08-03 12:12:43] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:43] local.INFO: ID empty? NO  
[2026-08-03 12:12:43] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:43] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 12:12:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 12:12:43, 2026-08-03 12:12:43))  
[2026-08-03 12:12:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:29:56] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:29:56] local.INFO: Model: Customer  
[2026-08-03 16:29:56] local.INFO: Data received: {"id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","first_name":"NIKOLA","last_name":"KARIC","sur_name":null,"phone":"700118815","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"013141433","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"created_at":"2026-08-03 16:29:23","updated_at":"2026-08-03 16:29:23"} 
[2026-08-03 16:29:56] local.INFO: ID present? YES  
[2026-08-03 16:29:56] local.INFO: ID value: 5da5f2f9-7f99-4ad3-ab11-db7eb9495250  
[2026-08-03 16:29:56] local.INFO: ID empty? NO  
[2026-08-03 16:29:56] local.INFO: Attempting to find record with ID: 5da5f2f9-7f99-4ad3-ab11-db7eb9495250  
[2026-08-03 16:29:56] local.INFO: Record not found, creating new with ID: 5da5f2f9-7f99-4ad3-ab11-db7eb9495250  
[2026-08-03 16:29:56] local.INFO: Created record: {"id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","first_name":"NIKOLA","last_name":"KARIC","sur_name":null,"phone":"700118815","calling_code":"+254","email":null,"residence":"undefined","id_type":"Passport","id_number":"013141433","nationality":"Serbian","permanent_address":"undefined","principle_activity":"undefined","is_pep":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","country_id":null,"updated_at":"2026-08-03T13:29:56.000000Z","created_at":"2026-08-03T13:29:56.000000Z"} 
[2026-08-03 16:29:57] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:29:57] local.INFO: Model: Transaction  
[2026-08-03 16:29:57] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:29:57] local.INFO: ID present? YES  
[2026-08-03 16:29:57] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:29:57] local.INFO: ID empty? NO  
[2026-08-03 16:29:57] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:29:57] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:29:57] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 16:29:57, 2026-08-03 16:29:57))  
[2026-08-03 16:29:57] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:04] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:04] local.INFO: Model: Transaction  
[2026-08-03 16:30:04] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:30:04] local.INFO: ID present? YES  
[2026-08-03 16:30:04] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:04] local.INFO: ID empty? NO  
[2026-08-03 16:30:04] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:04] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 16:30:04, 2026-08-03 16:30:04))  
[2026-08-03 16:30:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:10] local.INFO: Model: Transaction  
[2026-08-03 16:30:10] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:30:10] local.INFO: ID present? YES  
[2026-08-03 16:30:10] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:10] local.INFO: ID empty? NO  
[2026-08-03 16:30:10] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:10] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 16:30:10, 2026-08-03 16:30:10))  
[2026-08-03 16:30:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:16] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:16] local.INFO: Model: Transaction  
[2026-08-03 16:30:16] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:30:16] local.INFO: ID present? YES  
[2026-08-03 16:30:16] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:16] local.INFO: ID empty? NO  
[2026-08-03 16:30:16] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:16] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 16:30:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 16:30:16, 2026-08-03 16:30:16))  
[2026-08-03 16:30:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:18] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:18] local.INFO: Model: Transaction  
[2026-08-03 16:30:18] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:30:18] local.INFO: ID present? YES  
[2026-08-03 16:30:18] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:18] local.INFO: ID empty? NO  
[2026-08-03 16:30:18] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:18] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 16:30:18, 2026-08-03 16:30:18))  
[2026-08-03 16:30:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:24] local.INFO: Model: Transaction  
[2026-08-03 16:30:24] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:30:24] local.INFO: ID present? YES  
[2026-08-03 16:30:24] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:24] local.INFO: ID empty? NO  
[2026-08-03 16:30:24] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:24] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 16:30:24, 2026-08-03 16:30:24))  
[2026-08-03 16:30:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:30] local.INFO: Model: Transaction  
[2026-08-03 16:30:30] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:30:30] local.INFO: ID present? YES  
[2026-08-03 16:30:30] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:30] local.INFO: ID empty? NO  
[2026-08-03 16:30:30] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:30] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 16:30:30, 2026-08-03 16:30:30))  
[2026-08-03 16:30:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:37] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:37] local.INFO: Model: Transaction  
[2026-08-03 16:30:37] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:30:37] local.INFO: ID present? YES  
[2026-08-03 16:30:37] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:37] local.INFO: ID empty? NO  
[2026-08-03 16:30:37] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:37] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 16:30:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 16:30:37, 2026-08-03 16:30:37))  
[2026-08-03 16:30:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:38] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:38] local.INFO: Model: Transaction  
[2026-08-03 16:30:38] local.INFO: Data received: {"id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","type":"Buying","amount":10,"rate":125,"negotiated_rate":"0","amount_paid":1250,"amount_received":10,"narrative":null,"transaction_number":"TR-3638-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:27:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"232aa5d1-95e9-485b-bebf-4577af4ebff0","cancellation_reason":null,"customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-03 16:27:45","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:30:38] local.INFO: ID present? YES  
[2026-08-03 16:30:38] local.INFO: ID value: 70d499f2-99ce-4c43-a057-6ce0450bbe24  
[2026-08-03 16:30:38] local.INFO: ID empty? NO  
[2026-08-03 16:30:38] local.INFO: Attempting to find record with ID: 70d499f2-99ce-4c43-a057-6ce0450bbe24  
[2026-08-03 16:30:38] local.INFO: Record not found, creating new with ID: 70d499f2-99ce-4c43-a057-6ce0450bbe24  
[2026-08-03 16:30:38] local.INFO: Created record: {"id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","type":"Buying","amount":10,"rate":125,"negotiated_rate":"0","amount_paid":1250,"amount_received":10,"narrative":null,"transaction_number":"TR-3638-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:27:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"232aa5d1-95e9-485b-bebf-4577af4ebff0","cancellation_reason":null,"customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-03T13:30:38.000000Z","created_at":"2026-08-03T13:30:38.000000Z"} 
[2026-08-03 16:30:40] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:40] local.INFO: Model: Transaction  
[2026-08-03 16:30:40] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:30:40] local.INFO: ID present? YES  
[2026-08-03 16:30:40] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:40] local.INFO: ID empty? NO  
[2026-08-03 16:30:40] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:40] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 16:30:40, 2026-08-03 16:30:40))  
[2026-08-03 16:30:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:46] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:46] local.INFO: Model: Transaction  
[2026-08-03 16:30:46] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:30:46] local.INFO: ID present? YES  
[2026-08-03 16:30:46] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:46] local.INFO: ID empty? NO  
[2026-08-03 16:30:46] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:46] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 16:30:46, 2026-08-03 16:30:46))  
[2026-08-03 16:30:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:52] local.INFO: Model: Transaction  
[2026-08-03 16:30:52] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:30:52] local.INFO: ID present? YES  
[2026-08-03 16:30:52] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:52] local.INFO: ID empty? NO  
[2026-08-03 16:30:52] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:52] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 16:30:52, 2026-08-03 16:30:52))  
[2026-08-03 16:30:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:30:59] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:30:59] local.INFO: Model: Transaction  
[2026-08-03 16:30:59] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:30:59] local.INFO: ID present? YES  
[2026-08-03 16:30:59] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:59] local.INFO: ID empty? NO  
[2026-08-03 16:30:59] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:59] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 16:30:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 16:30:59, 2026-08-03 16:30:59))  
[2026-08-03 16:30:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:00] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:00] local.INFO: Model: Transaction  
[2026-08-03 16:31:00] local.INFO: Data received: {"id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3637-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:27:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"232aa5d1-95e9-485b-bebf-4577af4ebff0","cancellation_reason":null,"customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-03 16:27:45","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:31:00] local.INFO: ID present? YES  
[2026-08-03 16:31:00] local.INFO: ID value: 8af29be2-b8b3-40d1-aae8-e9e50e71b60f  
[2026-08-03 16:31:00] local.INFO: ID empty? NO  
[2026-08-03 16:31:00] local.INFO: Attempting to find record with ID: 8af29be2-b8b3-40d1-aae8-e9e50e71b60f  
[2026-08-03 16:31:00] local.INFO: Record not found, creating new with ID: 8af29be2-b8b3-40d1-aae8-e9e50e71b60f  
[2026-08-03 16:31:00] local.INFO: Created record: {"id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","type":"Buying","amount":100,"rate":127.5,"negotiated_rate":"0","amount_paid":12750,"amount_received":100,"narrative":null,"transaction_number":"TR-3637-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:27:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"232aa5d1-95e9-485b-bebf-4577af4ebff0","cancellation_reason":null,"customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-03T13:31:00.000000Z","created_at":"2026-08-03T13:31:00.000000Z"} 
[2026-08-03 16:31:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:01] local.INFO: Model: Transaction  
[2026-08-03 16:31:01] local.INFO: Data received: {"id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","type":"Buying","amount":1,"rate":100,"negotiated_rate":"0","amount_paid":100,"amount_received":1,"narrative":null,"transaction_number":"TR-3639-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:27:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"232aa5d1-95e9-485b-bebf-4577af4ebff0","cancellation_reason":null,"customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-03 16:27:45","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:31:01] local.INFO: ID present? YES  
[2026-08-03 16:31:01] local.INFO: ID value: b25b957d-6f0e-402f-a2a3-daaf2782db74  
[2026-08-03 16:31:01] local.INFO: ID empty? NO  
[2026-08-03 16:31:01] local.INFO: Attempting to find record with ID: b25b957d-6f0e-402f-a2a3-daaf2782db74  
[2026-08-03 16:31:01] local.INFO: Record not found, creating new with ID: b25b957d-6f0e-402f-a2a3-daaf2782db74  
[2026-08-03 16:31:01] local.INFO: Created record: {"id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","type":"Buying","amount":1,"rate":100,"negotiated_rate":"0","amount_paid":100,"amount_received":1,"narrative":null,"transaction_number":"TR-3639-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:27:47","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"232aa5d1-95e9-485b-bebf-4577af4ebff0","cancellation_reason":null,"customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-03T13:31:01.000000Z","created_at":"2026-08-03T13:31:01.000000Z"} 
[2026-08-03 16:31:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:02] local.INFO: Model: Transaction  
[2026-08-03 16:31:02] local.INFO: Data received: {"id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3639-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:29:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6d405d13-fd2f-481b-9cb1-4dfb3134a4e2","cancellation_reason":null,"customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-08-03 16:29:43","updated_at":"2026-08-03 16:29:45"} 
[2026-08-03 16:31:02] local.INFO: ID present? YES  
[2026-08-03 16:31:02] local.INFO: ID value: fce36cdb-4e99-4c60-862c-bd067eb1f732  
[2026-08-03 16:31:02] local.INFO: ID empty? NO  
[2026-08-03 16:31:02] local.INFO: Attempting to find record with ID: fce36cdb-4e99-4c60-862c-bd067eb1f732  
[2026-08-03 16:31:02] local.INFO: Record not found, creating new with ID: fce36cdb-4e99-4c60-862c-bd067eb1f732  
[2026-08-03 16:31:02] local.INFO: Created record: {"id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","type":"Buying","amount":100,"rate":145,"negotiated_rate":"0","amount_paid":14500,"amount_received":100,"narrative":null,"transaction_number":"TR-3639-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:29:45","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"6d405d13-fd2f-481b-9cb1-4dfb3134a4e2","cancellation_reason":null,"customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","updated_at":"2026-08-03T13:31:02.000000Z","created_at":"2026-08-03T13:31:02.000000Z"} 
[2026-08-03 16:31:04] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:04] local.INFO: Model: Journal  
[2026-08-03 16:31:04] local.INFO: Data received: {"id":"08acbe73-0a1b-4e22-8393-bffeaf48f4bc","type":"Credit","amount":"1250.00","rate":"125.000000","lcy_amount":"1250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:31:04] local.INFO: ID present? YES  
[2026-08-03 16:31:04] local.INFO: ID value: 08acbe73-0a1b-4e22-8393-bffeaf48f4bc  
[2026-08-03 16:31:04] local.INFO: ID empty? NO  
[2026-08-03 16:31:04] local.INFO: Attempting to find record with ID: 08acbe73-0a1b-4e22-8393-bffeaf48f4bc  
[2026-08-03 16:31:04] local.INFO: Record not found, creating new with ID: 08acbe73-0a1b-4e22-8393-bffeaf48f4bc  
[2026-08-03 16:31:04] local.INFO: Created record: {"id":"08acbe73-0a1b-4e22-8393-bffeaf48f4bc","type":"Credit","amount":"1250.00","rate":"125.000000","lcy_amount":"1250.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:31:04.000000Z","created_at":"2026-08-03T13:31:04.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-149092.0,"debit_total":"22343744.10","credit_total":22492836.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T09:09:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 16:31:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:05] local.INFO: Model: Journal  
[2026-08-03 16:31:05] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:31:05] local.INFO: ID present? YES  
[2026-08-03 16:31:05] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:05] local.INFO: ID empty? NO  
[2026-08-03 16:31:05] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:05] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:05, 2026-08-03 16:31:05))  
[2026-08-03 16:31:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:11] local.INFO: Model: Journal  
[2026-08-03 16:31:11] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:31:11] local.INFO: ID present? YES  
[2026-08-03 16:31:11] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:11] local.INFO: ID empty? NO  
[2026-08-03 16:31:11] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:11] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:11, 2026-08-03 16:31:11))  
[2026-08-03 16:31:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:18] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:18] local.INFO: Model: Journal  
[2026-08-03 16:31:18] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:31:18] local.INFO: ID present? YES  
[2026-08-03 16:31:18] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:18] local.INFO: ID empty? NO  
[2026-08-03 16:31:18] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:18] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:18, 2026-08-03 16:31:18))  
[2026-08-03 16:31:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:24] local.INFO: Model: Journal  
[2026-08-03 16:31:24] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:31:24] local.INFO: ID present? YES  
[2026-08-03 16:31:24] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:24] local.INFO: ID empty? NO  
[2026-08-03 16:31:24] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:24] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 16:31:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:24, 2026-08-03 16:31:24))  
[2026-08-03 16:31:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:25] local.INFO: Model: Journal  
[2026-08-03 16:31:25] local.INFO: Data received: {"id":"26358ac3-e5ea-42b4-9974-d68728b1111e","type":"Credit","amount":"100.00","rate":"100.000000","lcy_amount":"100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:31:25] local.INFO: ID present? YES  
[2026-08-03 16:31:25] local.INFO: ID value: 26358ac3-e5ea-42b4-9974-d68728b1111e  
[2026-08-03 16:31:25] local.INFO: ID empty? NO  
[2026-08-03 16:31:25] local.INFO: Attempting to find record with ID: 26358ac3-e5ea-42b4-9974-d68728b1111e  
[2026-08-03 16:31:25] local.INFO: Record not found, creating new with ID: 26358ac3-e5ea-42b4-9974-d68728b1111e  
[2026-08-03 16:31:25] local.INFO: Created record: {"id":"26358ac3-e5ea-42b4-9974-d68728b1111e","type":"Credit","amount":"100.00","rate":"100.000000","lcy_amount":"100.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:31:25.000000Z","created_at":"2026-08-03T13:31:25.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-149192.0,"debit_total":"22343744.10","credit_total":22492936.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:31:04.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 16:31:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:27] local.INFO: Model: Journal  
[2026-08-03 16:31:27] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:31:27] local.INFO: ID present? YES  
[2026-08-03 16:31:27] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:27] local.INFO: ID empty? NO  
[2026-08-03 16:31:27] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:27] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:27, 2026-08-03 16:31:27))  
[2026-08-03 16:31:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:33] local.INFO: Model: Journal  
[2026-08-03 16:31:33] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:31:33] local.INFO: ID present? YES  
[2026-08-03 16:31:33] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:33] local.INFO: ID empty? NO  
[2026-08-03 16:31:33] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:33] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:33, 2026-08-03 16:31:33))  
[2026-08-03 16:31:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:39] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:39] local.INFO: Model: Journal  
[2026-08-03 16:31:39] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:31:39] local.INFO: ID present? YES  
[2026-08-03 16:31:39] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:39] local.INFO: ID empty? NO  
[2026-08-03 16:31:39] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:39] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:39, 2026-08-03 16:31:39))  
[2026-08-03 16:31:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:46] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:46] local.INFO: Model: Journal  
[2026-08-03 16:31:46] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:31:46] local.INFO: ID present? YES  
[2026-08-03 16:31:46] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:46] local.INFO: ID empty? NO  
[2026-08-03 16:31:46] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:46] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 16:31:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:46, 2026-08-03 16:31:46))  
[2026-08-03 16:31:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:47] local.INFO: Model: Journal  
[2026-08-03 16:31:47] local.INFO: Data received: {"id":"4faba6de-acba-4267-ba2c-27a06033bc05","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:31:47] local.INFO: ID present? YES  
[2026-08-03 16:31:47] local.INFO: ID value: 4faba6de-acba-4267-ba2c-27a06033bc05  
[2026-08-03 16:31:47] local.INFO: ID empty? NO  
[2026-08-03 16:31:47] local.INFO: Attempting to find record with ID: 4faba6de-acba-4267-ba2c-27a06033bc05  
[2026-08-03 16:31:47] local.INFO: Record not found, creating new with ID: 4faba6de-acba-4267-ba2c-27a06033bc05  
[2026-08-03 16:31:47] local.INFO: Created record: {"id":"4faba6de-acba-4267-ba2c-27a06033bc05","type":"Debit","amount":"100.00","rate":"127.500000","lcy_amount":"12900.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T13:31:47.000000Z","created_at":"2026-08-03T13:31:47.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1500.0,"debit_total":83091.0,"credit_total":"81591.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T08:36:51.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 16:31:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:49] local.INFO: Model: Journal  
[2026-08-03 16:31:49] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:31:49] local.INFO: ID present? YES  
[2026-08-03 16:31:49] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:31:49] local.INFO: ID empty? NO  
[2026-08-03 16:31:49] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:31:49] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:31:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:49, 2026-08-03 16:31:49))  
[2026-08-03 16:31:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:31:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:31:55] local.INFO: Model: Journal  
[2026-08-03 16:31:55] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:31:55] local.INFO: ID present? YES  
[2026-08-03 16:31:55] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:31:55] local.INFO: ID empty? NO  
[2026-08-03 16:31:55] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:31:55] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:31:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:31:55, 2026-08-03 16:31:55))  
[2026-08-03 16:31:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:01] local.INFO: Model: Journal  
[2026-08-03 16:32:01] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:32:01] local.INFO: ID present? YES  
[2026-08-03 16:32:01] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:32:01] local.INFO: ID empty? NO  
[2026-08-03 16:32:01] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:32:01] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:32:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:32:01, 2026-08-03 16:32:01))  
[2026-08-03 16:32:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:08] local.INFO: Model: Journal  
[2026-08-03 16:32:08] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:32:08] local.INFO: ID present? YES  
[2026-08-03 16:32:08] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:32:08] local.INFO: ID empty? NO  
[2026-08-03 16:32:08] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:32:08] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 16:32:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:32:08, 2026-08-03 16:32:08))  
[2026-08-03 16:32:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:09] local.INFO: Model: Journal  
[2026-08-03 16:32:09] local.INFO: Data received: {"id":"718c5744-d991-4636-bb85-cc0645cdd3c2","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3637-2026","uniqid":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:32:09] local.INFO: ID present? YES  
[2026-08-03 16:32:09] local.INFO: ID value: 718c5744-d991-4636-bb85-cc0645cdd3c2  
[2026-08-03 16:32:09] local.INFO: ID empty? NO  
[2026-08-03 16:32:09] local.INFO: Attempting to find record with ID: 718c5744-d991-4636-bb85-cc0645cdd3c2  
[2026-08-03 16:32:09] local.INFO: Record not found, creating new with ID: 718c5744-d991-4636-bb85-cc0645cdd3c2  
[2026-08-03 16:32:09] local.INFO: Created record: {"id":"718c5744-d991-4636-bb85-cc0645cdd3c2","type":"Credit","amount":"150.00","rate":"127.500000","lcy_amount":"150.000000","narrative":"Gain on TR-3637-2026","uniqid":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:32:09.000000Z","created_at":"2026-08-03T13:32:09.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-134544.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":141856.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T09:12:03.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 16:32:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:10] local.INFO: Model: Journal  
[2026-08-03 16:32:10] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:32:10] local.INFO: ID present? YES  
[2026-08-03 16:32:10] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:10] local.INFO: ID empty? NO  
[2026-08-03 16:32:10] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:10] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:32:10, 2026-08-03 16:32:10))  
[2026-08-03 16:32:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:17] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:17] local.INFO: Model: Journal  
[2026-08-03 16:32:17] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:32:17] local.INFO: ID present? YES  
[2026-08-03 16:32:17] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:17] local.INFO: ID empty? NO  
[2026-08-03 16:32:17] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:17] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:32:17, 2026-08-03 16:32:17))  
[2026-08-03 16:32:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:23] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:23] local.INFO: Model: Journal  
[2026-08-03 16:32:23] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:32:23] local.INFO: ID present? YES  
[2026-08-03 16:32:23] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:23] local.INFO: ID empty? NO  
[2026-08-03 16:32:23] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:23] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:32:23, 2026-08-03 16:32:23))  
[2026-08-03 16:32:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:29] local.INFO: Model: Journal  
[2026-08-03 16:32:29] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:32:29] local.INFO: ID present? YES  
[2026-08-03 16:32:29] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:29] local.INFO: ID empty? NO  
[2026-08-03 16:32:29] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:29] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 16:32:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:32:29, 2026-08-03 16:32:29))  
[2026-08-03 16:32:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:31] local.INFO: Model: Journal  
[2026-08-03 16:32:31] local.INFO: Data received: {"id":"7e10755e-8c51-412a-a3e8-62709e7c75cc","type":"Debit","amount":"10.00","rate":"125.000000","lcy_amount":"1290.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:32:31] local.INFO: ID present? YES  
[2026-08-03 16:32:31] local.INFO: ID value: 7e10755e-8c51-412a-a3e8-62709e7c75cc  
[2026-08-03 16:32:31] local.INFO: ID empty? NO  
[2026-08-03 16:32:31] local.INFO: Attempting to find record with ID: 7e10755e-8c51-412a-a3e8-62709e7c75cc  
[2026-08-03 16:32:31] local.INFO: Record not found, creating new with ID: 7e10755e-8c51-412a-a3e8-62709e7c75cc  
[2026-08-03 16:32:31] local.INFO: Created record: {"id":"7e10755e-8c51-412a-a3e8-62709e7c75cc","type":"Debit","amount":"10.00","rate":"125.000000","lcy_amount":"1290.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T13:32:31.000000Z","created_at":"2026-08-03T13:32:31.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1510.0,"debit_total":83101.0,"credit_total":"81591.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:31:47.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 16:32:32] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:32] local.INFO: Model: Journal  
[2026-08-03 16:32:32] local.INFO: Data received: {"id":"83d7c472-db8f-40e0-9fe1-2fd302303590","type":"Credit","amount":"40.00","rate":"125.000000","lcy_amount":"40.000000","narrative":"Gain on TR-3638-2026","uniqid":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:32:32] local.INFO: ID present? YES  
[2026-08-03 16:32:32] local.INFO: ID value: 83d7c472-db8f-40e0-9fe1-2fd302303590  
[2026-08-03 16:32:32] local.INFO: ID empty? NO  
[2026-08-03 16:32:32] local.INFO: Attempting to find record with ID: 83d7c472-db8f-40e0-9fe1-2fd302303590  
[2026-08-03 16:32:32] local.INFO: Record not found, creating new with ID: 83d7c472-db8f-40e0-9fe1-2fd302303590  
[2026-08-03 16:32:32] local.INFO: Created record: {"id":"83d7c472-db8f-40e0-9fe1-2fd302303590","type":"Credit","amount":"40.00","rate":"125.000000","lcy_amount":"40.000000","narrative":"Gain on TR-3638-2026","uniqid":"70d499f2-99ce-4c43-a057-6ce0450bbe24","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"70d499f2-99ce-4c43-a057-6ce0450bbe24","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:32:32.000000Z","created_at":"2026-08-03T13:32:32.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-134584.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":141896.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T13:32:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 16:32:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:33] local.INFO: Model: Journal  
[2026-08-03 16:32:33] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:32:33] local.INFO: ID present? YES  
[2026-08-03 16:32:33] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:33] local.INFO: ID empty? NO  
[2026-08-03 16:32:33] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:33] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 16:32:33, 2026-08-03 16:32:33))  
[2026-08-03 16:32:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:40] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:40] local.INFO: Model: Journal  
[2026-08-03 16:32:40] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:32:40] local.INFO: ID present? YES  
[2026-08-03 16:32:40] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:40] local.INFO: ID empty? NO  
[2026-08-03 16:32:40] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:40] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 16:32:40, 2026-08-03 16:32:40))  
[2026-08-03 16:32:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:46] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:46] local.INFO: Model: Journal  
[2026-08-03 16:32:46] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:32:46] local.INFO: ID present? YES  
[2026-08-03 16:32:46] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:46] local.INFO: ID empty? NO  
[2026-08-03 16:32:46] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:46] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 16:32:46, 2026-08-03 16:32:46))  
[2026-08-03 16:32:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:52] local.INFO: Model: Journal  
[2026-08-03 16:32:52] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:32:52] local.INFO: ID present? YES  
[2026-08-03 16:32:52] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:52] local.INFO: ID empty? NO  
[2026-08-03 16:32:52] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:52] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 16:32:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 16:32:52, 2026-08-03 16:32:52))  
[2026-08-03 16:32:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:32:53] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:32:53] local.INFO: Model: Journal  
[2026-08-03 16:32:53] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:32:53] local.INFO: ID present? YES  
[2026-08-03 16:32:53] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:32:53] local.INFO: ID empty? NO  
[2026-08-03 16:32:53] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:32:53] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:32:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 16:32:53, 2026-08-03 16:32:53))  
[2026-08-03 16:32:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:00] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:00] local.INFO: Model: Journal  
[2026-08-03 16:33:00] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:33:00] local.INFO: ID present? YES  
[2026-08-03 16:33:00] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:00] local.INFO: ID empty? NO  
[2026-08-03 16:33:00] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:00] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 16:33:00, 2026-08-03 16:33:00))  
[2026-08-03 16:33:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:06] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:06] local.INFO: Model: Journal  
[2026-08-03 16:33:06] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:33:06] local.INFO: ID present? YES  
[2026-08-03 16:33:06] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:06] local.INFO: ID empty? NO  
[2026-08-03 16:33:06] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:06] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 16:33:06, 2026-08-03 16:33:06))  
[2026-08-03 16:33:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:13] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:13] local.INFO: Model: Journal  
[2026-08-03 16:33:13] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 16:33:13] local.INFO: ID present? YES  
[2026-08-03 16:33:13] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:13] local.INFO: ID empty? NO  
[2026-08-03 16:33:13] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:13] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 16:33:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 16:33:13, 2026-08-03 16:33:13))  
[2026-08-03 16:33:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:14] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:14] local.INFO: Model: Journal  
[2026-08-03 16:33:14] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:33:14] local.INFO: ID present? YES  
[2026-08-03 16:33:14] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:14] local.INFO: ID empty? NO  
[2026-08-03 16:33:14] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:14] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:33:14, 2026-08-03 16:33:14))  
[2026-08-03 16:33:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:21] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:21] local.INFO: Model: Journal  
[2026-08-03 16:33:21] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:33:21] local.INFO: ID present? YES  
[2026-08-03 16:33:21] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:21] local.INFO: ID empty? NO  
[2026-08-03 16:33:21] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:21] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:33:21, 2026-08-03 16:33:21))  
[2026-08-03 16:33:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:27] local.INFO: Model: Journal  
[2026-08-03 16:33:27] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:33:27] local.INFO: ID present? YES  
[2026-08-03 16:33:27] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:27] local.INFO: ID empty? NO  
[2026-08-03 16:33:27] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:27] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:33:27, 2026-08-03 16:33:27))  
[2026-08-03 16:33:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:33] local.INFO: Model: Journal  
[2026-08-03 16:33:33] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:33:33] local.INFO: ID present? YES  
[2026-08-03 16:33:33] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:33] local.INFO: ID empty? NO  
[2026-08-03 16:33:33] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:33] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 16:33:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:33:33, 2026-08-03 16:33:33))  
[2026-08-03 16:33:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:35] local.INFO: Model: Journal  
[2026-08-03 16:33:35] local.INFO: Data received: {"id":"b53d799b-408c-45db-bf05-ed73cf3a1b96","type":"Credit","amount":"29.00","rate":"100.000000","lcy_amount":"29.000000","narrative":"Gain on TR-3639-2026","uniqid":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:33:35] local.INFO: ID present? YES  
[2026-08-03 16:33:35] local.INFO: ID value: b53d799b-408c-45db-bf05-ed73cf3a1b96  
[2026-08-03 16:33:35] local.INFO: ID empty? NO  
[2026-08-03 16:33:35] local.INFO: Attempting to find record with ID: b53d799b-408c-45db-bf05-ed73cf3a1b96  
[2026-08-03 16:33:35] local.INFO: Record not found, creating new with ID: b53d799b-408c-45db-bf05-ed73cf3a1b96  
[2026-08-03 16:33:35] local.INFO: Created record: {"id":"b53d799b-408c-45db-bf05-ed73cf3a1b96","type":"Credit","amount":"29.00","rate":"100.000000","lcy_amount":"29.000000","narrative":"Gain on TR-3639-2026","uniqid":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:33:35.000000Z","created_at":"2026-08-03T13:33:35.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-134613.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":141925.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T13:32:32.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 16:33:36] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:36] local.INFO: Model: Journal  
[2026-08-03 16:33:36] local.INFO: Data received: {"id":"cc506717-57e5-4b4b-a8f1-1dac3a72f0fa","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:29:45","updated_at":"2026-08-03 16:29:45"} 
[2026-08-03 16:33:36] local.INFO: ID present? YES  
[2026-08-03 16:33:36] local.INFO: ID value: cc506717-57e5-4b4b-a8f1-1dac3a72f0fa  
[2026-08-03 16:33:36] local.INFO: ID empty? NO  
[2026-08-03 16:33:36] local.INFO: Attempting to find record with ID: cc506717-57e5-4b4b-a8f1-1dac3a72f0fa  
[2026-08-03 16:33:36] local.INFO: Record not found, creating new with ID: cc506717-57e5-4b4b-a8f1-1dac3a72f0fa  
[2026-08-03 16:33:36] local.INFO: Created record: {"id":"cc506717-57e5-4b4b-a8f1-1dac3a72f0fa","type":"Credit","amount":"14500.00","rate":"145.000000","lcy_amount":"14500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:33:36.000000Z","created_at":"2026-08-03T13:33:36.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-163692.0,"debit_total":"22343744.10","credit_total":22507436.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:31:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 16:33:38] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:38] local.INFO: Model: Journal  
[2026-08-03 16:33:38] local.INFO: Data received: {"id":"d632a121-2b17-4579-b0d6-74d70d55deca","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3639-2026","uniqid":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:29:45","updated_at":"2026-08-03 16:29:45"} 
[2026-08-03 16:33:38] local.INFO: ID present? YES  
[2026-08-03 16:33:38] local.INFO: ID value: d632a121-2b17-4579-b0d6-74d70d55deca  
[2026-08-03 16:33:38] local.INFO: ID empty? NO  
[2026-08-03 16:33:38] local.INFO: Attempting to find record with ID: d632a121-2b17-4579-b0d6-74d70d55deca  
[2026-08-03 16:33:38] local.INFO: Record not found, creating new with ID: d632a121-2b17-4579-b0d6-74d70d55deca  
[2026-08-03 16:33:38] local.INFO: Created record: {"id":"d632a121-2b17-4579-b0d6-74d70d55deca","type":"Credit","amount":"620.00","rate":"145.000000","lcy_amount":"620.000000","narrative":"Gain on TR-3639-2026","uniqid":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:33:38.000000Z","created_at":"2026-08-03T13:33:38.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-135233.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":142545.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T13:33:35.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 16:33:39] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:39] local.INFO: Model: Journal  
[2026-08-03 16:33:39] local.INFO: Data received: {"id":"de7311ab-e4a6-49d5-a1dd-eb1bc3b46df9","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:33:39] local.INFO: ID present? YES  
[2026-08-03 16:33:39] local.INFO: ID value: de7311ab-e4a6-49d5-a1dd-eb1bc3b46df9  
[2026-08-03 16:33:39] local.INFO: ID empty? NO  
[2026-08-03 16:33:39] local.INFO: Attempting to find record with ID: de7311ab-e4a6-49d5-a1dd-eb1bc3b46df9  
[2026-08-03 16:33:39] local.INFO: Record not found, creating new with ID: de7311ab-e4a6-49d5-a1dd-eb1bc3b46df9  
[2026-08-03 16:33:39] local.INFO: Created record: {"id":"de7311ab-e4a6-49d5-a1dd-eb1bc3b46df9","type":"Credit","amount":"12750.00","rate":"127.500000","lcy_amount":"12750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"8af29be2-b8b3-40d1-aae8-e9e50e71b60f","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T13:33:39.000000Z","created_at":"2026-08-03T13:33:39.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-176442.0,"debit_total":"22343744.10","credit_total":22520186.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:33:36.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 16:33:40] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:40] local.INFO: Model: Journal  
[2026-08-03 16:33:40] local.INFO: Data received: {"id":"df9a2de4-99d4-4f3f-a6ee-17f22c5ef1f0","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-03 16:29:45","updated_at":"2026-08-03 16:29:45"} 
[2026-08-03 16:33:40] local.INFO: ID present? YES  
[2026-08-03 16:33:40] local.INFO: ID value: df9a2de4-99d4-4f3f-a6ee-17f22c5ef1f0  
[2026-08-03 16:33:40] local.INFO: ID empty? NO  
[2026-08-03 16:33:40] local.INFO: Attempting to find record with ID: df9a2de4-99d4-4f3f-a6ee-17f22c5ef1f0  
[2026-08-03 16:33:40] local.INFO: Record not found, creating new with ID: df9a2de4-99d4-4f3f-a6ee-17f22c5ef1f0  
[2026-08-03 16:33:40] local.INFO: Created record: {"id":"df9a2de4-99d4-4f3f-a6ee-17f22c5ef1f0","type":"Debit","amount":"100.00","rate":"145.000000","lcy_amount":"15120.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"fce36cdb-4e99-4c60-862c-bd067eb1f732","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"fce36cdb-4e99-4c60-862c-bd067eb1f732","customer_id":"5da5f2f9-7f99-4ad3-ab11-db7eb9495250","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-03T13:33:40.000000Z","created_at":"2026-08-03T13:33:40.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":200.0,"debit_total":24740.0,"credit_total":"24540.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T09:12:02.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 16:33:42] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:42] local.INFO: Model: Journal  
[2026-08-03 16:33:42] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:33:42] local.INFO: ID present? YES  
[2026-08-03 16:33:42] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:42] local.INFO: ID empty? NO  
[2026-08-03 16:33:42] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:42] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:33:42, 2026-08-03 16:33:42))  
[2026-08-03 16:33:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:48] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:48] local.INFO: Model: Journal  
[2026-08-03 16:33:48] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:33:48] local.INFO: ID present? YES  
[2026-08-03 16:33:48] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:48] local.INFO: ID empty? NO  
[2026-08-03 16:33:48] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:48] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:33:48, 2026-08-03 16:33:48))  
[2026-08-03 16:33:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:33:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:33:55] local.INFO: Model: Journal  
[2026-08-03 16:33:55] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:33:55] local.INFO: ID present? YES  
[2026-08-03 16:33:55] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:55] local.INFO: ID empty? NO  
[2026-08-03 16:33:55] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:55] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:33:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:33:55, 2026-08-03 16:33:55))  
[2026-08-03 16:33:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:34:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:34:01] local.INFO: Model: Journal  
[2026-08-03 16:34:01] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 16:34:01] local.INFO: ID present? YES  
[2026-08-03 16:34:01] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:34:01] local.INFO: ID empty? NO  
[2026-08-03 16:34:01] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:34:01] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 16:34:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 16:34:01, 2026-08-03 16:34:01))  
[2026-08-03 16:34:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:34:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:34:02] local.INFO: Model: Journal  
[2026-08-03 16:34:02] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:34:02] local.INFO: ID present? YES  
[2026-08-03 16:34:02] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:02] local.INFO: ID empty? NO  
[2026-08-03 16:34:02] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:02] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 16:34:02, 2026-08-03 16:34:02))  
[2026-08-03 16:34:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:34:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:34:08] local.INFO: Model: Journal  
[2026-08-03 16:34:08] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:34:08] local.INFO: ID present? YES  
[2026-08-03 16:34:08] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:08] local.INFO: ID empty? NO  
[2026-08-03 16:34:08] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:08] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 16:34:08, 2026-08-03 16:34:08))  
[2026-08-03 16:34:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:34:15] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:34:15] local.INFO: Model: Journal  
[2026-08-03 16:34:15] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:34:15] local.INFO: ID present? YES  
[2026-08-03 16:34:15] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:15] local.INFO: ID empty? NO  
[2026-08-03 16:34:15] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:15] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 16:34:15, 2026-08-03 16:34:15))  
[2026-08-03 16:34:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:34:21] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:34:21] local.INFO: Model: Journal  
[2026-08-03 16:34:21] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 16:34:21] local.INFO: ID present? YES  
[2026-08-03 16:34:21] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:21] local.INFO: ID empty? NO  
[2026-08-03 16:34:21] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:21] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 16:34:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 16:34:21, 2026-08-03 16:34:21))  
[2026-08-03 16:34:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 16:34:22] local.INFO: === SYNC DEBUG ===  
[2026-08-03 16:34:22] local.INFO: Model: Journal  
[2026-08-03 16:34:22] local.INFO: Data received: {"id":"ff80d194-2ff1-4371-bf23-aea3ba13669d","type":"Debit","amount":"1.00","rate":"100.000000","lcy_amount":"129.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 16:27:47","updated_at":"2026-08-03 16:27:47"} 
[2026-08-03 16:34:22] local.INFO: ID present? YES  
[2026-08-03 16:34:22] local.INFO: ID value: ff80d194-2ff1-4371-bf23-aea3ba13669d  
[2026-08-03 16:34:22] local.INFO: ID empty? NO  
[2026-08-03 16:34:22] local.INFO: Attempting to find record with ID: ff80d194-2ff1-4371-bf23-aea3ba13669d  
[2026-08-03 16:34:22] local.INFO: Record not found, creating new with ID: ff80d194-2ff1-4371-bf23-aea3ba13669d  
[2026-08-03 16:34:22] local.INFO: Created record: {"id":"ff80d194-2ff1-4371-bf23-aea3ba13669d","type":"Debit","amount":"1.00","rate":"100.000000","lcy_amount":"129.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"b25b957d-6f0e-402f-a2a3-daaf2782db74","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"b25b957d-6f0e-402f-a2a3-daaf2782db74","customer_id":"5ff92617-c54e-4911-a78c-798d6c1d9bf4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T13:34:22.000000Z","created_at":"2026-08-03T13:34:22.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1511.0,"debit_total":83102.0,"credit_total":"81591.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:32:31.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 17:06:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:06:41] local.INFO: Model: Transaction  
[2026-08-03 17:06:41] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:06:41] local.INFO: ID present? YES  
[2026-08-03 17:06:41] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:41] local.INFO: ID empty? NO  
[2026-08-03 17:06:41] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:41] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:06:41, 2026-08-03 17:06:41))  
[2026-08-03 17:06:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:06:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:06:47] local.INFO: Model: Transaction  
[2026-08-03 17:06:47] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:06:47] local.INFO: ID present? YES  
[2026-08-03 17:06:47] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:47] local.INFO: ID empty? NO  
[2026-08-03 17:06:47] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:47] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:06:47, 2026-08-03 17:06:47))  
[2026-08-03 17:06:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:06:53] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:06:53] local.INFO: Model: Transaction  
[2026-08-03 17:06:53] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:06:53] local.INFO: ID present? YES  
[2026-08-03 17:06:53] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:53] local.INFO: ID empty? NO  
[2026-08-03 17:06:53] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:53] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:06:53, 2026-08-03 17:06:53))  
[2026-08-03 17:06:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:06:59] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:06:59] local.INFO: Model: Transaction  
[2026-08-03 17:06:59] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:06:59] local.INFO: ID present? YES  
[2026-08-03 17:06:59] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:59] local.INFO: ID empty? NO  
[2026-08-03 17:06:59] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:59] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:06:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:06:59, 2026-08-03 17:06:59))  
[2026-08-03 17:06:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:01] local.INFO: Model: Transaction  
[2026-08-03 17:07:01] local.INFO: Data received: {"id":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3640-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:38:55","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"90072d83-a3db-409e-b96e-af8d4a72ac72","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-03 16:38:53","updated_at":"2026-08-03 16:38:55"} 
[2026-08-03 17:07:01] local.INFO: ID present? YES  
[2026-08-03 17:07:01] local.INFO: ID value: 0f190e35-3251-4f0c-9ca5-677286f36d30  
[2026-08-03 17:07:01] local.INFO: ID empty? NO  
[2026-08-03 17:07:01] local.INFO: Attempting to find record with ID: 0f190e35-3251-4f0c-9ca5-677286f36d30  
[2026-08-03 17:07:01] local.INFO: Record not found, creating new with ID: 0f190e35-3251-4f0c-9ca5-677286f36d30  
[2026-08-03 17:07:01] local.INFO: Created record: {"id":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","type":"Buying","amount":300,"rate":128,"negotiated_rate":"0","amount_paid":38400,"amount_received":300,"narrative":null,"transaction_number":"TR-3640-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 16:38:55","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"90072d83-a3db-409e-b96e-af8d4a72ac72","cancellation_reason":null,"customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-03T14:07:01.000000Z","created_at":"2026-08-03T14:07:01.000000Z"} 
[2026-08-03 17:07:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:02] local.INFO: Model: Transaction  
[2026-08-03 17:07:02] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:07:02] local.INFO: ID present? YES  
[2026-08-03 17:07:02] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:02] local.INFO: ID empty? NO  
[2026-08-03 17:07:02] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:02] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:07:02, 2026-08-03 17:07:02))  
[2026-08-03 17:07:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:08] local.INFO: Model: Transaction  
[2026-08-03 17:07:08] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:07:08] local.INFO: ID present? YES  
[2026-08-03 17:07:08] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:08] local.INFO: ID empty? NO  
[2026-08-03 17:07:08] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:08] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:07:08, 2026-08-03 17:07:08))  
[2026-08-03 17:07:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:15] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:15] local.INFO: Model: Transaction  
[2026-08-03 17:07:15] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:07:15] local.INFO: ID present? YES  
[2026-08-03 17:07:15] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:15] local.INFO: ID empty? NO  
[2026-08-03 17:07:15] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:15] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:07:15, 2026-08-03 17:07:15))  
[2026-08-03 17:07:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:21] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:21] local.INFO: Model: Transaction  
[2026-08-03 17:07:21] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:07:21] local.INFO: ID present? YES  
[2026-08-03 17:07:21] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:21] local.INFO: ID empty? NO  
[2026-08-03 17:07:21] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:21] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:07:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:07:21, 2026-08-03 17:07:21))  
[2026-08-03 17:07:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:22] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:22] local.INFO: Model: Transaction  
[2026-08-03 17:07:22] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:07:22] local.INFO: ID present? YES  
[2026-08-03 17:07:22] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:22] local.INFO: ID empty? NO  
[2026-08-03 17:07:22] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:22] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:07:22, 2026-08-03 17:07:22))  
[2026-08-03 17:07:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:29] local.INFO: Model: Transaction  
[2026-08-03 17:07:29] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:07:29] local.INFO: ID present? YES  
[2026-08-03 17:07:29] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:29] local.INFO: ID empty? NO  
[2026-08-03 17:07:29] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:29] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:07:29, 2026-08-03 17:07:29))  
[2026-08-03 17:07:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:35] local.INFO: Model: Transaction  
[2026-08-03 17:07:35] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:07:35] local.INFO: ID present? YES  
[2026-08-03 17:07:35] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:35] local.INFO: ID empty? NO  
[2026-08-03 17:07:35] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:35] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:07:35, 2026-08-03 17:07:35))  
[2026-08-03 17:07:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:41] local.INFO: Model: Transaction  
[2026-08-03 17:07:41] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:07:41] local.INFO: ID present? YES  
[2026-08-03 17:07:41] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:41] local.INFO: ID empty? NO  
[2026-08-03 17:07:41] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:41] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:07:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:07:41, 2026-08-03 17:07:41))  
[2026-08-03 17:07:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:43] local.INFO: Model: Journal  
[2026-08-03 17:07:43] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:07:43] local.INFO: ID present? YES  
[2026-08-03 17:07:43] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:43] local.INFO: ID empty? NO  
[2026-08-03 17:07:43] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:43] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:07:43, 2026-08-03 17:07:43))  
[2026-08-03 17:07:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:49] local.INFO: Model: Journal  
[2026-08-03 17:07:49] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:07:49] local.INFO: ID present? YES  
[2026-08-03 17:07:49] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:49] local.INFO: ID empty? NO  
[2026-08-03 17:07:49] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:49] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:07:49, 2026-08-03 17:07:49))  
[2026-08-03 17:07:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:07:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:07:55] local.INFO: Model: Journal  
[2026-08-03 17:07:55] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:07:55] local.INFO: ID present? YES  
[2026-08-03 17:07:55] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:55] local.INFO: ID empty? NO  
[2026-08-03 17:07:55] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:55] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:07:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:07:55, 2026-08-03 17:07:55))  
[2026-08-03 17:07:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:02] local.INFO: Model: Journal  
[2026-08-03 17:08:02] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:08:02] local.INFO: ID present? YES  
[2026-08-03 17:08:02] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:08:02] local.INFO: ID empty? NO  
[2026-08-03 17:08:02] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:08:02] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:08:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:02, 2026-08-03 17:08:02))  
[2026-08-03 17:08:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:03] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:03] local.INFO: Model: Journal  
[2026-08-03 17:08:03] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:08:03] local.INFO: ID present? YES  
[2026-08-03 17:08:03] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:03] local.INFO: ID empty? NO  
[2026-08-03 17:08:03] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:03] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:03, 2026-08-03 17:08:03))  
[2026-08-03 17:08:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:09] local.INFO: Model: Journal  
[2026-08-03 17:08:09] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:08:09] local.INFO: ID present? YES  
[2026-08-03 17:08:09] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:09] local.INFO: ID empty? NO  
[2026-08-03 17:08:09] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:09] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:09, 2026-08-03 17:08:09))  
[2026-08-03 17:08:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:16] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:16] local.INFO: Model: Journal  
[2026-08-03 17:08:16] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:08:16] local.INFO: ID present? YES  
[2026-08-03 17:08:16] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:16] local.INFO: ID empty? NO  
[2026-08-03 17:08:16] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:16] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:16, 2026-08-03 17:08:16))  
[2026-08-03 17:08:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:22] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:22] local.INFO: Model: Journal  
[2026-08-03 17:08:22] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:08:22] local.INFO: ID present? YES  
[2026-08-03 17:08:22] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:22] local.INFO: ID empty? NO  
[2026-08-03 17:08:22] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:22] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:08:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:22, 2026-08-03 17:08:22))  
[2026-08-03 17:08:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:24] local.INFO: Model: Journal  
[2026-08-03 17:08:24] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:08:24] local.INFO: ID present? YES  
[2026-08-03 17:08:24] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:24] local.INFO: ID empty? NO  
[2026-08-03 17:08:24] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:24] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:24, 2026-08-03 17:08:24))  
[2026-08-03 17:08:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:30] local.INFO: Model: Journal  
[2026-08-03 17:08:30] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:08:30] local.INFO: ID present? YES  
[2026-08-03 17:08:30] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:30] local.INFO: ID empty? NO  
[2026-08-03 17:08:30] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:30] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:30, 2026-08-03 17:08:30))  
[2026-08-03 17:08:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:36] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:36] local.INFO: Model: Journal  
[2026-08-03 17:08:36] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:08:36] local.INFO: ID present? YES  
[2026-08-03 17:08:36] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:36] local.INFO: ID empty? NO  
[2026-08-03 17:08:36] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:36] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:36, 2026-08-03 17:08:36))  
[2026-08-03 17:08:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:42] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:42] local.INFO: Model: Journal  
[2026-08-03 17:08:42] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:08:42] local.INFO: ID present? YES  
[2026-08-03 17:08:42] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:42] local.INFO: ID empty? NO  
[2026-08-03 17:08:42] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:42] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:08:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:42, 2026-08-03 17:08:42))  
[2026-08-03 17:08:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:44] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:44] local.INFO: Model: Journal  
[2026-08-03 17:08:44] local.INFO: Data received: {"id":"57ef2f7c-df34-416d-bbd8-a6df3d4469f0","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3640-2026","uniqid":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0f190e35-3251-4f0c-9ca5-677286f36d30","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:38:55","updated_at":"2026-08-03 16:38:55"} 
[2026-08-03 17:08:44] local.INFO: ID present? YES  
[2026-08-03 17:08:44] local.INFO: ID value: 57ef2f7c-df34-416d-bbd8-a6df3d4469f0  
[2026-08-03 17:08:44] local.INFO: ID empty? NO  
[2026-08-03 17:08:44] local.INFO: Attempting to find record with ID: 57ef2f7c-df34-416d-bbd8-a6df3d4469f0  
[2026-08-03 17:08:44] local.INFO: Record not found, creating new with ID: 57ef2f7c-df34-416d-bbd8-a6df3d4469f0  
[2026-08-03 17:08:44] local.INFO: Created record: {"id":"57ef2f7c-df34-416d-bbd8-a6df3d4469f0","type":"Credit","amount":"300.00","rate":"128.000000","lcy_amount":"300.000000","narrative":"Gain on TR-3640-2026","uniqid":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0f190e35-3251-4f0c-9ca5-677286f36d30","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T14:08:44.000000Z","created_at":"2026-08-03T14:08:44.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-135533.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":142845.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T13:33:38.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 17:08:45] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:45] local.INFO: Model: Journal  
[2026-08-03 17:08:45] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:08:45] local.INFO: ID present? YES  
[2026-08-03 17:08:45] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:45] local.INFO: ID empty? NO  
[2026-08-03 17:08:45] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:45] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:45] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:45, 2026-08-03 17:08:45))  
[2026-08-03 17:08:45] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:51] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:51] local.INFO: Model: Journal  
[2026-08-03 17:08:51] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:08:51] local.INFO: ID present? YES  
[2026-08-03 17:08:51] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:51] local.INFO: ID empty? NO  
[2026-08-03 17:08:51] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:51] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:51] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:51, 2026-08-03 17:08:51))  
[2026-08-03 17:08:51] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:08:58] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:08:58] local.INFO: Model: Journal  
[2026-08-03 17:08:58] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:08:58] local.INFO: ID present? YES  
[2026-08-03 17:08:58] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:58] local.INFO: ID empty? NO  
[2026-08-03 17:08:58] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:58] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:08:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:08:58, 2026-08-03 17:08:58))  
[2026-08-03 17:08:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:04] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:04] local.INFO: Model: Journal  
[2026-08-03 17:09:04] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:09:04] local.INFO: ID present? YES  
[2026-08-03 17:09:04] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:09:04] local.INFO: ID empty? NO  
[2026-08-03 17:09:04] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:09:04] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:09:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:09:04, 2026-08-03 17:09:04))  
[2026-08-03 17:09:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:05] local.INFO: Model: Journal  
[2026-08-03 17:09:05] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:09:05] local.INFO: ID present? YES  
[2026-08-03 17:09:05] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:05] local.INFO: ID empty? NO  
[2026-08-03 17:09:05] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:05] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:09:05, 2026-08-03 17:09:05))  
[2026-08-03 17:09:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:12] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:12] local.INFO: Model: Journal  
[2026-08-03 17:09:12] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:09:12] local.INFO: ID present? YES  
[2026-08-03 17:09:12] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:12] local.INFO: ID empty? NO  
[2026-08-03 17:09:12] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:12] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:12] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:09:12, 2026-08-03 17:09:12))  
[2026-08-03 17:09:12] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:18] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:18] local.INFO: Model: Journal  
[2026-08-03 17:09:18] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:09:18] local.INFO: ID present? YES  
[2026-08-03 17:09:18] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:18] local.INFO: ID empty? NO  
[2026-08-03 17:09:18] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:18] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:18] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:09:18, 2026-08-03 17:09:18))  
[2026-08-03 17:09:18] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:24] local.INFO: Model: Journal  
[2026-08-03 17:09:24] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:09:24] local.INFO: ID present? YES  
[2026-08-03 17:09:24] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:24] local.INFO: ID empty? NO  
[2026-08-03 17:09:24] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:24] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:09:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:09:24, 2026-08-03 17:09:24))  
[2026-08-03 17:09:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:25] local.INFO: Model: Journal  
[2026-08-03 17:09:25] local.INFO: Data received: {"id":"96b7c21a-f574-4660-9c48-25a20025d58e","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0f190e35-3251-4f0c-9ca5-677286f36d30","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 16:38:55","updated_at":"2026-08-03 16:38:55"} 
[2026-08-03 17:09:25] local.INFO: ID present? YES  
[2026-08-03 17:09:25] local.INFO: ID value: 96b7c21a-f574-4660-9c48-25a20025d58e  
[2026-08-03 17:09:25] local.INFO: ID empty? NO  
[2026-08-03 17:09:25] local.INFO: Attempting to find record with ID: 96b7c21a-f574-4660-9c48-25a20025d58e  
[2026-08-03 17:09:25] local.INFO: Record not found, creating new with ID: 96b7c21a-f574-4660-9c48-25a20025d58e  
[2026-08-03 17:09:25] local.INFO: Created record: {"id":"96b7c21a-f574-4660-9c48-25a20025d58e","type":"Debit","amount":"300.00","rate":"128.000000","lcy_amount":"38700.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0f190e35-3251-4f0c-9ca5-677286f36d30","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T14:09:25.000000Z","created_at":"2026-08-03T14:09:25.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1811.0,"debit_total":83402.0,"credit_total":"81591.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:34:22.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 17:09:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:27] local.INFO: Model: Journal  
[2026-08-03 17:09:27] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:09:27] local.INFO: ID present? YES  
[2026-08-03 17:09:27] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:27] local.INFO: ID empty? NO  
[2026-08-03 17:09:27] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:27] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:27] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:09:27, 2026-08-03 17:09:27))  
[2026-08-03 17:09:27] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:33] local.INFO: Model: Journal  
[2026-08-03 17:09:33] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:09:33] local.INFO: ID present? YES  
[2026-08-03 17:09:33] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:33] local.INFO: ID empty? NO  
[2026-08-03 17:09:33] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:33] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:33] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:09:33, 2026-08-03 17:09:33))  
[2026-08-03 17:09:33] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:39] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:39] local.INFO: Model: Journal  
[2026-08-03 17:09:39] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:09:39] local.INFO: ID present? YES  
[2026-08-03 17:09:39] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:39] local.INFO: ID empty? NO  
[2026-08-03 17:09:39] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:39] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:39] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:09:39, 2026-08-03 17:09:39))  
[2026-08-03 17:09:39] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:46] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:46] local.INFO: Model: Journal  
[2026-08-03 17:09:46] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:09:46] local.INFO: ID present? YES  
[2026-08-03 17:09:46] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:46] local.INFO: ID empty? NO  
[2026-08-03 17:09:46] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:46] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:09:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:09:46, 2026-08-03 17:09:46))  
[2026-08-03 17:09:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:47] local.INFO: Model: Journal  
[2026-08-03 17:09:47] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:09:47] local.INFO: ID present? YES  
[2026-08-03 17:09:47] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:09:47] local.INFO: ID empty? NO  
[2026-08-03 17:09:47] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:09:47] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:09:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:09:47, 2026-08-03 17:09:47))  
[2026-08-03 17:09:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:09:53] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:09:53] local.INFO: Model: Journal  
[2026-08-03 17:09:53] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:09:53] local.INFO: ID present? YES  
[2026-08-03 17:09:53] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:09:53] local.INFO: ID empty? NO  
[2026-08-03 17:09:53] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:09:53] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:09:53] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:09:53, 2026-08-03 17:09:53))  
[2026-08-03 17:09:53] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:00] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:00] local.INFO: Model: Journal  
[2026-08-03 17:10:00] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:10:00] local.INFO: ID present? YES  
[2026-08-03 17:10:00] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:10:00] local.INFO: ID empty? NO  
[2026-08-03 17:10:00] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:10:00] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:10:00] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:10:00, 2026-08-03 17:10:00))  
[2026-08-03 17:10:00] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:06] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:06] local.INFO: Model: Journal  
[2026-08-03 17:10:06] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:10:06] local.INFO: ID present? YES  
[2026-08-03 17:10:06] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:10:06] local.INFO: ID empty? NO  
[2026-08-03 17:10:06] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:10:06] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:10:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:10:06, 2026-08-03 17:10:06))  
[2026-08-03 17:10:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:08] local.INFO: Model: Journal  
[2026-08-03 17:10:08] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:10:08] local.INFO: ID present? YES  
[2026-08-03 17:10:08] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:08] local.INFO: ID empty? NO  
[2026-08-03 17:10:08] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:08] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:10:08, 2026-08-03 17:10:08))  
[2026-08-03 17:10:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:14] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:14] local.INFO: Model: Journal  
[2026-08-03 17:10:14] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:10:14] local.INFO: ID present? YES  
[2026-08-03 17:10:14] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:14] local.INFO: ID empty? NO  
[2026-08-03 17:10:14] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:14] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:10:14, 2026-08-03 17:10:14))  
[2026-08-03 17:10:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:20] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:20] local.INFO: Model: Journal  
[2026-08-03 17:10:20] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:10:20] local.INFO: ID present? YES  
[2026-08-03 17:10:20] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:20] local.INFO: ID empty? NO  
[2026-08-03 17:10:20] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:20] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:20] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:10:20, 2026-08-03 17:10:20))  
[2026-08-03 17:10:20] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:26] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:26] local.INFO: Model: Journal  
[2026-08-03 17:10:26] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:10:26] local.INFO: ID present? YES  
[2026-08-03 17:10:26] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:26] local.INFO: ID empty? NO  
[2026-08-03 17:10:26] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:26] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:10:26] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:10:26, 2026-08-03 17:10:26))  
[2026-08-03 17:10:26] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:28] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:28] local.INFO: Model: Journal  
[2026-08-03 17:10:28] local.INFO: Data received: {"id":"ed155267-d493-4150-a08e-0c8c5d7053a4","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0f190e35-3251-4f0c-9ca5-677286f36d30","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 16:38:55","updated_at":"2026-08-03 16:38:55"} 
[2026-08-03 17:10:28] local.INFO: ID present? YES  
[2026-08-03 17:10:28] local.INFO: ID value: ed155267-d493-4150-a08e-0c8c5d7053a4  
[2026-08-03 17:10:28] local.INFO: ID empty? NO  
[2026-08-03 17:10:28] local.INFO: Attempting to find record with ID: ed155267-d493-4150-a08e-0c8c5d7053a4  
[2026-08-03 17:10:28] local.INFO: Record not found, creating new with ID: ed155267-d493-4150-a08e-0c8c5d7053a4  
[2026-08-03 17:10:28] local.INFO: Created record: {"id":"ed155267-d493-4150-a08e-0c8c5d7053a4","type":"Credit","amount":"38400.00","rate":"128.000000","lcy_amount":"38400.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0f190e35-3251-4f0c-9ca5-677286f36d30","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0f190e35-3251-4f0c-9ca5-677286f36d30","customer_id":"79725497-6565-43d9-98ba-48d26c2d6d5f","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T14:10:28.000000Z","created_at":"2026-08-03T14:10:28.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-214842.0,"debit_total":"22343744.10","credit_total":22558586.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:33:39.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 17:10:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:29] local.INFO: Model: Journal  
[2026-08-03 17:10:29] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:10:29] local.INFO: ID present? YES  
[2026-08-03 17:10:29] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:29] local.INFO: ID empty? NO  
[2026-08-03 17:10:29] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:29] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:10:29, 2026-08-03 17:10:29))  
[2026-08-03 17:10:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:35] local.INFO: Model: Journal  
[2026-08-03 17:10:35] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:10:35] local.INFO: ID present? YES  
[2026-08-03 17:10:35] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:35] local.INFO: ID empty? NO  
[2026-08-03 17:10:35] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:35] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:10:35, 2026-08-03 17:10:35))  
[2026-08-03 17:10:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:42] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:42] local.INFO: Model: Journal  
[2026-08-03 17:10:42] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:10:42] local.INFO: ID present? YES  
[2026-08-03 17:10:42] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:42] local.INFO: ID empty? NO  
[2026-08-03 17:10:42] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:42] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:42] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:10:42, 2026-08-03 17:10:42))  
[2026-08-03 17:10:42] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:10:48] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:10:48] local.INFO: Model: Journal  
[2026-08-03 17:10:48] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:10:48] local.INFO: ID present? YES  
[2026-08-03 17:10:48] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:48] local.INFO: ID empty? NO  
[2026-08-03 17:10:48] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:48] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:10:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:10:48, 2026-08-03 17:10:48))  
[2026-08-03 17:10:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:04] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:04] local.INFO: Model: Transaction  
[2026-08-03 17:35:04] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:35:04] local.INFO: ID present? YES  
[2026-08-03 17:35:04] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:04] local.INFO: ID empty? NO  
[2026-08-03 17:35:04] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:04] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:04] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:35:04, 2026-08-03 17:35:04))  
[2026-08-03 17:35:04] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:11] local.INFO: Model: Transaction  
[2026-08-03 17:35:11] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:35:11] local.INFO: ID present? YES  
[2026-08-03 17:35:11] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:11] local.INFO: ID empty? NO  
[2026-08-03 17:35:11] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:11] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:35:11, 2026-08-03 17:35:11))  
[2026-08-03 17:35:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:17] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:17] local.INFO: Model: Transaction  
[2026-08-03 17:35:17] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:35:17] local.INFO: ID present? YES  
[2026-08-03 17:35:17] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:17] local.INFO: ID empty? NO  
[2026-08-03 17:35:17] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:17] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:35:17, 2026-08-03 17:35:17))  
[2026-08-03 17:35:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:24] local.INFO: Model: Transaction  
[2026-08-03 17:35:24] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:35:24] local.INFO: ID present? YES  
[2026-08-03 17:35:24] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:24] local.INFO: ID empty? NO  
[2026-08-03 17:35:24] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:24] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 17:35:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 17:35:24, 2026-08-03 17:35:24))  
[2026-08-03 17:35:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:25] local.INFO: Model: Transaction  
[2026-08-03 17:35:25] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:35:25] local.INFO: ID present? YES  
[2026-08-03 17:35:25] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:25] local.INFO: ID empty? NO  
[2026-08-03 17:35:25] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:25] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:35:25, 2026-08-03 17:35:25))  
[2026-08-03 17:35:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:31] local.INFO: Model: Transaction  
[2026-08-03 17:35:31] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:35:31] local.INFO: ID present? YES  
[2026-08-03 17:35:31] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:31] local.INFO: ID empty? NO  
[2026-08-03 17:35:31] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:31] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:35:31, 2026-08-03 17:35:31))  
[2026-08-03 17:35:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:37] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:37] local.INFO: Model: Transaction  
[2026-08-03 17:35:37] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:35:37] local.INFO: ID present? YES  
[2026-08-03 17:35:37] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:37] local.INFO: ID empty? NO  
[2026-08-03 17:35:37] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:37] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:35:37, 2026-08-03 17:35:37))  
[2026-08-03 17:35:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:43] local.INFO: Model: Transaction  
[2026-08-03 17:35:43] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:35:43] local.INFO: ID present? YES  
[2026-08-03 17:35:43] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:43] local.INFO: ID empty? NO  
[2026-08-03 17:35:43] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:43] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 17:35:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 17:35:43, 2026-08-03 17:35:43))  
[2026-08-03 17:35:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:45] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:45] local.INFO: Model: Transaction  
[2026-08-03 17:35:45] local.INFO: Data received: {"id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","type":"Buying","amount":90,"rate":128,"negotiated_rate":"0","amount_paid":11520,"amount_received":90,"narrative":null,"transaction_number":"TR-3641-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 17:34:32","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c848ad78-18dc-41eb-a2c2-66312b7ad63d","cancellation_reason":null,"customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-03 17:34:30","updated_at":"2026-08-03 17:34:32"} 
[2026-08-03 17:35:45] local.INFO: ID present? YES  
[2026-08-03 17:35:45] local.INFO: ID value: 6992baf0-17f3-4e30-a390-f7d75fa725c0  
[2026-08-03 17:35:45] local.INFO: ID empty? NO  
[2026-08-03 17:35:45] local.INFO: Attempting to find record with ID: 6992baf0-17f3-4e30-a390-f7d75fa725c0  
[2026-08-03 17:35:45] local.INFO: Record not found, creating new with ID: 6992baf0-17f3-4e30-a390-f7d75fa725c0  
[2026-08-03 17:35:45] local.INFO: Created record: {"id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","type":"Buying","amount":90,"rate":128,"negotiated_rate":"0","amount_paid":11520,"amount_received":90,"narrative":null,"transaction_number":"TR-3641-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-03 17:34:32","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"c848ad78-18dc-41eb-a2c2-66312b7ad63d","cancellation_reason":null,"customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","updated_at":"2026-08-03T14:35:45.000000Z","created_at":"2026-08-03T14:35:45.000000Z"} 
[2026-08-03 17:35:46] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:46] local.INFO: Model: Transaction  
[2026-08-03 17:35:46] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:35:46] local.INFO: ID present? YES  
[2026-08-03 17:35:46] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:46] local.INFO: ID empty? NO  
[2026-08-03 17:35:46] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:46] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:35:46, 2026-08-03 17:35:46))  
[2026-08-03 17:35:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:52] local.INFO: Model: Transaction  
[2026-08-03 17:35:52] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:35:52] local.INFO: ID present? YES  
[2026-08-03 17:35:52] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:52] local.INFO: ID empty? NO  
[2026-08-03 17:35:52] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:52] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:35:52, 2026-08-03 17:35:52))  
[2026-08-03 17:35:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:35:59] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:35:59] local.INFO: Model: Transaction  
[2026-08-03 17:35:59] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:35:59] local.INFO: ID present? YES  
[2026-08-03 17:35:59] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:59] local.INFO: ID empty? NO  
[2026-08-03 17:35:59] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:59] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:35:59] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:35:59, 2026-08-03 17:35:59))  
[2026-08-03 17:35:59] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:05] local.INFO: Model: Transaction  
[2026-08-03 17:36:05] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:36:05] local.INFO: ID present? YES  
[2026-08-03 17:36:05] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:36:05] local.INFO: ID empty? NO  
[2026-08-03 17:36:05] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:36:05] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 17:36:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 17:36:05, 2026-08-03 17:36:05))  
[2026-08-03 17:36:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:06] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:06] local.INFO: Model: Journal  
[2026-08-03 17:36:06] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:36:06] local.INFO: ID present? YES  
[2026-08-03 17:36:06] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:06] local.INFO: ID empty? NO  
[2026-08-03 17:36:06] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:06] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:06, 2026-08-03 17:36:06))  
[2026-08-03 17:36:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:13] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:13] local.INFO: Model: Journal  
[2026-08-03 17:36:13] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:36:13] local.INFO: ID present? YES  
[2026-08-03 17:36:13] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:13] local.INFO: ID empty? NO  
[2026-08-03 17:36:13] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:13] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:13, 2026-08-03 17:36:13))  
[2026-08-03 17:36:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:19] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:19] local.INFO: Model: Journal  
[2026-08-03 17:36:19] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:36:19] local.INFO: ID present? YES  
[2026-08-03 17:36:19] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:19] local.INFO: ID empty? NO  
[2026-08-03 17:36:19] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:19] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:19, 2026-08-03 17:36:19))  
[2026-08-03 17:36:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:25] local.INFO: Model: Journal  
[2026-08-03 17:36:25] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:36:25] local.INFO: ID present? YES  
[2026-08-03 17:36:25] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:25] local.INFO: ID empty? NO  
[2026-08-03 17:36:25] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:25] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 17:36:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:25, 2026-08-03 17:36:25))  
[2026-08-03 17:36:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:27] local.INFO: Model: Journal  
[2026-08-03 17:36:27] local.INFO: Data received: {"id":"23b03899-eef7-4ef2-9863-234698688064","type":"Credit","amount":"11520.00","rate":"128.000000","lcy_amount":"11520.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 17:34:32","updated_at":"2026-08-03 17:34:32"} 
[2026-08-03 17:36:27] local.INFO: ID present? YES  
[2026-08-03 17:36:27] local.INFO: ID value: 23b03899-eef7-4ef2-9863-234698688064  
[2026-08-03 17:36:27] local.INFO: ID empty? NO  
[2026-08-03 17:36:27] local.INFO: Attempting to find record with ID: 23b03899-eef7-4ef2-9863-234698688064  
[2026-08-03 17:36:27] local.INFO: Record not found, creating new with ID: 23b03899-eef7-4ef2-9863-234698688064  
[2026-08-03 17:36:27] local.INFO: Created record: {"id":"23b03899-eef7-4ef2-9863-234698688064","type":"Credit","amount":"11520.00","rate":"128.000000","lcy_amount":"11520.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T14:36:27.000000Z","created_at":"2026-08-03T14:36:27.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-226362.0,"debit_total":"22343744.10","credit_total":22570106.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T14:10:28.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 17:36:28] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:28] local.INFO: Model: Journal  
[2026-08-03 17:36:28] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:36:28] local.INFO: ID present? YES  
[2026-08-03 17:36:28] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:28] local.INFO: ID empty? NO  
[2026-08-03 17:36:28] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:28] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:28, 2026-08-03 17:36:28))  
[2026-08-03 17:36:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:34] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:34] local.INFO: Model: Journal  
[2026-08-03 17:36:34] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:36:34] local.INFO: ID present? YES  
[2026-08-03 17:36:34] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:34] local.INFO: ID empty? NO  
[2026-08-03 17:36:34] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:34] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:34, 2026-08-03 17:36:34))  
[2026-08-03 17:36:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:40] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:40] local.INFO: Model: Journal  
[2026-08-03 17:36:40] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:36:40] local.INFO: ID present? YES  
[2026-08-03 17:36:40] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:40] local.INFO: ID empty? NO  
[2026-08-03 17:36:40] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:40] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:40] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:40, 2026-08-03 17:36:40))  
[2026-08-03 17:36:40] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:47] local.INFO: Model: Journal  
[2026-08-03 17:36:47] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:36:47] local.INFO: ID present? YES  
[2026-08-03 17:36:47] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:47] local.INFO: ID empty? NO  
[2026-08-03 17:36:47] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:47] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 17:36:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:47, 2026-08-03 17:36:47))  
[2026-08-03 17:36:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:48] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:48] local.INFO: Model: Journal  
[2026-08-03 17:36:48] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:36:48] local.INFO: ID present? YES  
[2026-08-03 17:36:48] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:36:48] local.INFO: ID empty? NO  
[2026-08-03 17:36:48] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:36:48] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:36:48] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:48, 2026-08-03 17:36:48))  
[2026-08-03 17:36:48] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:36:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:36:55] local.INFO: Model: Journal  
[2026-08-03 17:36:55] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:36:55] local.INFO: ID present? YES  
[2026-08-03 17:36:55] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:36:55] local.INFO: ID empty? NO  
[2026-08-03 17:36:55] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:36:55] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:36:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:36:55, 2026-08-03 17:36:55))  
[2026-08-03 17:36:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:01] local.INFO: Model: Journal  
[2026-08-03 17:37:01] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:37:01] local.INFO: ID present? YES  
[2026-08-03 17:37:01] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:37:01] local.INFO: ID empty? NO  
[2026-08-03 17:37:01] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:37:01] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:37:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:37:01, 2026-08-03 17:37:01))  
[2026-08-03 17:37:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:07] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:07] local.INFO: Model: Journal  
[2026-08-03 17:37:07] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:37:07] local.INFO: ID present? YES  
[2026-08-03 17:37:07] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:37:07] local.INFO: ID empty? NO  
[2026-08-03 17:37:07] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:37:07] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 17:37:07] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:37:07, 2026-08-03 17:37:07))  
[2026-08-03 17:37:07] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:08] local.INFO: Model: Journal  
[2026-08-03 17:37:08] local.INFO: Data received: {"id":"6e5d9193-26a8-45f0-856a-c6f04b91522e","type":"Debit","amount":"90.00","rate":"128.000000","lcy_amount":"11610.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 17:34:32","updated_at":"2026-08-03 17:34:32"} 
[2026-08-03 17:37:08] local.INFO: ID present? YES  
[2026-08-03 17:37:08] local.INFO: ID value: 6e5d9193-26a8-45f0-856a-c6f04b91522e  
[2026-08-03 17:37:08] local.INFO: ID empty? NO  
[2026-08-03 17:37:08] local.INFO: Attempting to find record with ID: 6e5d9193-26a8-45f0-856a-c6f04b91522e  
[2026-08-03 17:37:08] local.INFO: Record not found, creating new with ID: 6e5d9193-26a8-45f0-856a-c6f04b91522e  
[2026-08-03 17:37:09] local.INFO: Created record: {"id":"6e5d9193-26a8-45f0-856a-c6f04b91522e","type":"Debit","amount":"90.00","rate":"128.000000","lcy_amount":"11610.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T14:37:08.000000Z","created_at":"2026-08-03T14:37:08.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":1901.0,"debit_total":83492.0,"credit_total":"81591.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T14:09:25.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 17:37:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:10] local.INFO: Model: Journal  
[2026-08-03 17:37:10] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:37:10] local.INFO: ID present? YES  
[2026-08-03 17:37:10] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:10] local.INFO: ID empty? NO  
[2026-08-03 17:37:10] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:10] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:37:10, 2026-08-03 17:37:10))  
[2026-08-03 17:37:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:16] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:16] local.INFO: Model: Journal  
[2026-08-03 17:37:16] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:37:16] local.INFO: ID present? YES  
[2026-08-03 17:37:16] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:16] local.INFO: ID empty? NO  
[2026-08-03 17:37:16] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:16] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:37:16, 2026-08-03 17:37:16))  
[2026-08-03 17:37:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:23] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:23] local.INFO: Model: Journal  
[2026-08-03 17:37:23] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:37:23] local.INFO: ID present? YES  
[2026-08-03 17:37:23] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:23] local.INFO: ID empty? NO  
[2026-08-03 17:37:23] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:23] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:37:23, 2026-08-03 17:37:23))  
[2026-08-03 17:37:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:29] local.INFO: Model: Journal  
[2026-08-03 17:37:29] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:37:29] local.INFO: ID present? YES  
[2026-08-03 17:37:29] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:29] local.INFO: ID empty? NO  
[2026-08-03 17:37:29] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:29] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 17:37:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:37:29, 2026-08-03 17:37:29))  
[2026-08-03 17:37:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:30] local.INFO: Model: Journal  
[2026-08-03 17:37:30] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:37:30] local.INFO: ID present? YES  
[2026-08-03 17:37:30] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:30] local.INFO: ID empty? NO  
[2026-08-03 17:37:30] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:30] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:37:30, 2026-08-03 17:37:30))  
[2026-08-03 17:37:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:36] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:36] local.INFO: Model: Journal  
[2026-08-03 17:37:36] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:37:36] local.INFO: ID present? YES  
[2026-08-03 17:37:36] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:36] local.INFO: ID empty? NO  
[2026-08-03 17:37:36] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:36] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:37:36, 2026-08-03 17:37:36))  
[2026-08-03 17:37:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:43] local.INFO: Model: Journal  
[2026-08-03 17:37:43] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:37:43] local.INFO: ID present? YES  
[2026-08-03 17:37:43] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:43] local.INFO: ID empty? NO  
[2026-08-03 17:37:43] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:43] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:37:43, 2026-08-03 17:37:43))  
[2026-08-03 17:37:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:49] local.INFO: Model: Journal  
[2026-08-03 17:37:49] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:37:49] local.INFO: ID present? YES  
[2026-08-03 17:37:49] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:49] local.INFO: ID empty? NO  
[2026-08-03 17:37:49] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:49] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 17:37:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 17:37:49, 2026-08-03 17:37:49))  
[2026-08-03 17:37:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:50] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:50] local.INFO: Model: Journal  
[2026-08-03 17:37:50] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:37:50] local.INFO: ID present? YES  
[2026-08-03 17:37:50] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:37:50] local.INFO: ID empty? NO  
[2026-08-03 17:37:50] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:37:50] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:37:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:37:50, 2026-08-03 17:37:50))  
[2026-08-03 17:37:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:37:56] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:37:56] local.INFO: Model: Journal  
[2026-08-03 17:37:56] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:37:56] local.INFO: ID present? YES  
[2026-08-03 17:37:56] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:37:56] local.INFO: ID empty? NO  
[2026-08-03 17:37:56] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:37:56] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:37:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:37:56, 2026-08-03 17:37:56))  
[2026-08-03 17:37:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:03] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:03] local.INFO: Model: Journal  
[2026-08-03 17:38:03] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:38:03] local.INFO: ID present? YES  
[2026-08-03 17:38:03] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:38:03] local.INFO: ID empty? NO  
[2026-08-03 17:38:03] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:38:03] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:38:03] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:38:03, 2026-08-03 17:38:03))  
[2026-08-03 17:38:03] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:09] local.INFO: Model: Journal  
[2026-08-03 17:38:09] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 17:38:09] local.INFO: ID present? YES  
[2026-08-03 17:38:09] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:38:09] local.INFO: ID empty? NO  
[2026-08-03 17:38:09] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:38:09] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 17:38:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 17:38:09, 2026-08-03 17:38:09))  
[2026-08-03 17:38:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:10] local.INFO: Model: Journal  
[2026-08-03 17:38:10] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:10] local.INFO: ID present? YES  
[2026-08-03 17:38:10] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:10] local.INFO: ID empty? NO  
[2026-08-03 17:38:10] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:10] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:10, 2026-08-03 17:38:10))  
[2026-08-03 17:38:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:16] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:16] local.INFO: Model: Journal  
[2026-08-03 17:38:16] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:16] local.INFO: ID present? YES  
[2026-08-03 17:38:16] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:16] local.INFO: ID empty? NO  
[2026-08-03 17:38:16] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:16] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:16] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:16, 2026-08-03 17:38:16))  
[2026-08-03 17:38:16] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:23] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:23] local.INFO: Model: Journal  
[2026-08-03 17:38:23] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:23] local.INFO: ID present? YES  
[2026-08-03 17:38:23] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:23] local.INFO: ID empty? NO  
[2026-08-03 17:38:23] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:23] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:23, 2026-08-03 17:38:23))  
[2026-08-03 17:38:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:29] local.INFO: Model: Journal  
[2026-08-03 17:38:29] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:29] local.INFO: ID present? YES  
[2026-08-03 17:38:29] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:29] local.INFO: ID empty? NO  
[2026-08-03 17:38:29] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:29] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 17:38:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:29, 2026-08-03 17:38:29))  
[2026-08-03 17:38:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:30] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:30] local.INFO: Model: Journal  
[2026-08-03 17:38:30] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:30] local.INFO: ID present? YES  
[2026-08-03 17:38:30] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:30] local.INFO: ID empty? NO  
[2026-08-03 17:38:30] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:30] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:30] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:30, 2026-08-03 17:38:30))  
[2026-08-03 17:38:30] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:37] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:37] local.INFO: Model: Journal  
[2026-08-03 17:38:37] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:37] local.INFO: ID present? YES  
[2026-08-03 17:38:37] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:37] local.INFO: ID empty? NO  
[2026-08-03 17:38:37] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:37] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:37, 2026-08-03 17:38:37))  
[2026-08-03 17:38:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:43] local.INFO: Model: Journal  
[2026-08-03 17:38:43] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:43] local.INFO: ID present? YES  
[2026-08-03 17:38:43] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:43] local.INFO: ID empty? NO  
[2026-08-03 17:38:43] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:43] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:43, 2026-08-03 17:38:43))  
[2026-08-03 17:38:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:49] local.INFO: Model: Journal  
[2026-08-03 17:38:49] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 17:38:49] local.INFO: ID present? YES  
[2026-08-03 17:38:49] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:49] local.INFO: ID empty? NO  
[2026-08-03 17:38:49] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:49] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 17:38:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 17:38:49, 2026-08-03 17:38:49))  
[2026-08-03 17:38:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:51] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:51] local.INFO: Model: Journal  
[2026-08-03 17:38:51] local.INFO: Data received: {"id":"eea4b86e-8173-49fa-a415-7387c3762adb","type":"Credit","amount":"90.00","rate":"128.000000","lcy_amount":"90.000000","narrative":"Gain on TR-3641-2026","uniqid":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 17:34:32","updated_at":"2026-08-03 17:34:32"} 
[2026-08-03 17:38:51] local.INFO: ID present? YES  
[2026-08-03 17:38:51] local.INFO: ID value: eea4b86e-8173-49fa-a415-7387c3762adb  
[2026-08-03 17:38:51] local.INFO: ID empty? NO  
[2026-08-03 17:38:51] local.INFO: Attempting to find record with ID: eea4b86e-8173-49fa-a415-7387c3762adb  
[2026-08-03 17:38:51] local.INFO: Record not found, creating new with ID: eea4b86e-8173-49fa-a415-7387c3762adb  
[2026-08-03 17:38:51] local.INFO: Created record: {"id":"eea4b86e-8173-49fa-a415-7387c3762adb","type":"Credit","amount":"90.00","rate":"128.000000","lcy_amount":"90.000000","narrative":"Gain on TR-3641-2026","uniqid":"6992baf0-17f3-4e30-a390-f7d75fa725c0","date":"2026-08-03","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"6992baf0-17f3-4e30-a390-f7d75fa725c0","customer_id":"525fe9ea-bd13-47a7-b0b6-cc0a9a7307bc","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T14:38:51.000000Z","created_at":"2026-08-03T14:38:51.000000Z","account":{"id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","name":"Exchange gain or loss[Diani branch]","type":"Income","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-40-KES-000002","is_fx_account":null,"balance":-135623.1900000000023283064365386962890625,"debit_total":"7312.50","credit_total":142935.6900000000023283064365386962890625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-03T14:08:44.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 17:38:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:52] local.INFO: Model: Journal  
[2026-08-03 17:38:52] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:38:52] local.INFO: ID present? YES  
[2026-08-03 17:38:52] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:38:52] local.INFO: ID empty? NO  
[2026-08-03 17:38:52] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:38:52] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:38:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:38:52, 2026-08-03 17:38:52))  
[2026-08-03 17:38:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:38:58] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:38:58] local.INFO: Model: Journal  
[2026-08-03 17:38:58] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:38:58] local.INFO: ID present? YES  
[2026-08-03 17:38:58] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:38:58] local.INFO: ID empty? NO  
[2026-08-03 17:38:58] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:38:58] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:38:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:38:58, 2026-08-03 17:38:58))  
[2026-08-03 17:38:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:39:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:39:05] local.INFO: Model: Journal  
[2026-08-03 17:39:05] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:39:05] local.INFO: ID present? YES  
[2026-08-03 17:39:05] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:39:05] local.INFO: ID empty? NO  
[2026-08-03 17:39:05] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:39:05] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:39:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:39:05, 2026-08-03 17:39:05))  
[2026-08-03 17:39:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 17:39:11] local.INFO: === SYNC DEBUG ===  
[2026-08-03 17:39:11] local.INFO: Model: Journal  
[2026-08-03 17:39:11] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 17:39:11] local.INFO: ID present? YES  
[2026-08-03 17:39:11] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:39:11] local.INFO: ID empty? NO  
[2026-08-03 17:39:11] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:39:11] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 17:39:11] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 17:39:11, 2026-08-03 17:39:11))  
[2026-08-03 17:39:11] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:38:24] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:38:24] local.INFO: Model: Transaction  
[2026-08-03 18:38:24] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:38:24] local.INFO: ID present? YES  
[2026-08-03 18:38:24] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:24] local.INFO: ID empty? NO  
[2026-08-03 18:38:24] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:24] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 18:38:24, 2026-08-03 18:38:24))  
[2026-08-03 18:38:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:38:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:38:31] local.INFO: Model: Transaction  
[2026-08-03 18:38:31] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:38:31] local.INFO: ID present? YES  
[2026-08-03 18:38:31] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:31] local.INFO: ID empty? NO  
[2026-08-03 18:38:31] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:31] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:31] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 18:38:31, 2026-08-03 18:38:31))  
[2026-08-03 18:38:31] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:38:38] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:38:38] local.INFO: Model: Transaction  
[2026-08-03 18:38:38] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:38:38] local.INFO: ID present? YES  
[2026-08-03 18:38:38] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:38] local.INFO: ID empty? NO  
[2026-08-03 18:38:38] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:38] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:38] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 18:38:38, 2026-08-03 18:38:38))  
[2026-08-03 18:38:38] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:38:44] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:38:44] local.INFO: Model: Transaction  
[2026-08-03 18:38:44] local.INFO: Data received: {"id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","type":"Buying","amount":200,"rate":127.5,"negotiated_rate":"0","amount_paid":25500,"amount_received":200,"narrative":null,"transaction_number":"TR-3624-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-08-01 17:39:12","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"0a70eba1-4f69-4f89-9211-88cfdc4d77f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-08-01 17:39:10","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:38:44] local.INFO: ID present? YES  
[2026-08-03 18:38:44] local.INFO: ID value: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:44] local.INFO: ID empty? NO  
[2026-08-03 18:38:44] local.INFO: Attempting to find record with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:44] local.INFO: Record not found, creating new with ID: 0187cabf-a27f-4d7f-a8b2-51239580e94b  
[2026-08-03 18:38:44] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 200, 127.5, 0, 25500, 200, ?, TR-3624-2026, ?, ?, Completed, ?, ?, 2026-08-01 17:39:12, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 0a70eba1-4f69-4f89-9211-88cfdc4d77f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, a3990fd4-353e-43d1-91cb-ad20881dc23f, 2026-08-03 18:38:44, 2026-08-03 18:38:44))  
[2026-08-03 18:38:44] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:38:46] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:38:46] local.INFO: Model: Transaction  
[2026-08-03 18:38:46] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:38:46] local.INFO: ID present? YES  
[2026-08-03 18:38:46] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:46] local.INFO: ID empty? NO  
[2026-08-03 18:38:46] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:46] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:46] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 18:38:46, 2026-08-03 18:38:46))  
[2026-08-03 18:38:46] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:38:52] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:38:52] local.INFO: Model: Transaction  
[2026-08-03 18:38:52] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:38:52] local.INFO: ID present? YES  
[2026-08-03 18:38:52] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:52] local.INFO: ID empty? NO  
[2026-08-03 18:38:52] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:52] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:52] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 18:38:52, 2026-08-03 18:38:52))  
[2026-08-03 18:38:52] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:38:58] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:38:58] local.INFO: Model: Transaction  
[2026-08-03 18:38:58] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:38:58] local.INFO: ID present? YES  
[2026-08-03 18:38:58] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:58] local.INFO: ID empty? NO  
[2026-08-03 18:38:58] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:58] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:38:58] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 18:38:58, 2026-08-03 18:38:58))  
[2026-08-03 18:38:58] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:05] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:05] local.INFO: Model: Transaction  
[2026-08-03 18:39:05] local.INFO: Data received: {"id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","type":"Buying","amount":150,"rate":145,"negotiated_rate":"0","amount_paid":21750,"amount_received":150,"narrative":null,"transaction_number":"TR-3607-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-31 14:33:35","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Personal Savings","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"27dbcfb6-aca3-41af-9685-fe83bbbb7ece","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-07-31 14:33:33","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:39:05] local.INFO: ID present? YES  
[2026-08-03 18:39:05] local.INFO: ID value: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:39:05] local.INFO: ID empty? NO  
[2026-08-03 18:39:05] local.INFO: Attempting to find record with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:39:05] local.INFO: Record not found, creating new with ID: 67e0a406-8c3f-4594-ae92-8b9c9062eacd  
[2026-08-03 18:39:05] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 150, 145, 0, 21750, 150, ?, TR-3607-2026, ?, ?, Completed, ?, ?, 2026-07-31 14:33:35, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Personal Savings, Family Support / Remittance, ?, 27dbcfb6-aca3-41af-9685-fe83bbbb7ece, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 059c4799-e3cc-4177-98f6-327e7a36fab7, 2026-08-03 18:39:05, 2026-08-03 18:39:05))  
[2026-08-03 18:39:05] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:06] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:06] local.INFO: Model: Transaction  
[2026-08-03 18:39:06] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:39:06] local.INFO: ID present? YES  
[2026-08-03 18:39:06] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:06] local.INFO: ID empty? NO  
[2026-08-03 18:39:06] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:06] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:06] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 18:39:06, 2026-08-03 18:39:06))  
[2026-08-03 18:39:06] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:13] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:13] local.INFO: Model: Transaction  
[2026-08-03 18:39:13] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:39:13] local.INFO: ID present? YES  
[2026-08-03 18:39:13] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:13] local.INFO: ID empty? NO  
[2026-08-03 18:39:13] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:13] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:13] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 18:39:13, 2026-08-03 18:39:13))  
[2026-08-03 18:39:13] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:19] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:19] local.INFO: Model: Transaction  
[2026-08-03 18:39:19] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:39:19] local.INFO: ID present? YES  
[2026-08-03 18:39:19] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:19] local.INFO: ID empty? NO  
[2026-08-03 18:39:19] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:19] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:19] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 18:39:19, 2026-08-03 18:39:19))  
[2026-08-03 18:39:19] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:25] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:25] local.INFO: Model: Transaction  
[2026-08-03 18:39:25] local.INFO: Data received: {"id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","type":"Buying","amount":90,"rate":30,"negotiated_rate":"0","amount_paid":2700,"amount_received":90,"narrative":null,"transaction_number":"TR-3599-2026","commission_amount":null,"flagged_at":null,"status":"Completed","resolved_at":null,"resolved_by":null,"completed_at":"2026-07-28 17:26:31","completed_by":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","source":"Gift / Donation","purpose":"Family Support / Remittance","uniqid":null,"batch_id":"fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8","cancellation_reason":null,"customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"initial_currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","created_at":"2026-07-28 17:26:29","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:39:25] local.INFO: ID present? YES  
[2026-08-03 18:39:25] local.INFO: ID value: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:25] local.INFO: ID empty? NO  
[2026-08-03 18:39:25] local.INFO: Attempting to find record with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:25] local.INFO: Record not found, creating new with ID: 78492ef0-26ef-40e8-adf1-4622cd13d2e5  
[2026-08-03 18:39:25] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`transactions`, CONSTRAINT `transactions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `transactions` (`id`, `date`, `type`, `amount`, `rate`, `negotiated_rate`, `amount_paid`, `amount_received`, `narrative`, `transaction_number`, `commission_amount`, `flagged_at`, `status`, `resolved_at`, `resolved_by`, `completed_at`, `completed_by`, `source`, `purpose`, `uniqid`, `batch_id`, `cancellation_reason`, `customer_id`, `teller_id`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `initial_currency_id`, `currency_id`, `updated_at`, `created_at`) values (78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 90, 30, 0, 2700, 90, ?, TR-3599-2026, ?, ?, Completed, ?, ?, 2026-07-28 17:26:31, ae0a6d32-49a3-4a64-8d1d-414020bbf225, Gift / Donation, Family Support / Remittance, ?, fd8a7879-dcf3-416a-a7f5-ebf3eadb33f8, ?, 8749c5d2-ff68-45df-995d-999edcf3476d, c5c77b6f-1cf8-4a39-b843-514767a0472e, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, 19bf0423-7c99-431d-b712-002599c6e7b4, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, 2026-08-03 18:39:25, 2026-08-03 18:39:25))  
[2026-08-03 18:39:25] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `tr...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `tr...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `tr...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Transaction))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Transaction), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:27] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:27] local.INFO: Model: Journal  
[2026-08-03 18:39:27] local.INFO: Data received: {"id":"15441f8b-af0f-427b-913e-6731d677d256","type":"Debit","amount":"1750.00","rate":null,"lcy_amount":"1750.000000","narrative":"MPESA WITHDRAWAL 03-08-2026","uniqid":"bdbd72c0-ecb1-4e9e-be8f-bfd534d68b3a","date":"2026-08-03","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 18:37:10","updated_at":"2026-08-03 18:37:11"} 
[2026-08-03 18:39:27] local.INFO: ID present? YES  
[2026-08-03 18:39:27] local.INFO: ID value: 15441f8b-af0f-427b-913e-6731d677d256  
[2026-08-03 18:39:27] local.INFO: ID empty? NO  
[2026-08-03 18:39:27] local.INFO: Attempting to find record with ID: 15441f8b-af0f-427b-913e-6731d677d256  
[2026-08-03 18:39:27] local.INFO: Record not found, creating new with ID: 15441f8b-af0f-427b-913e-6731d677d256  
[2026-08-03 18:39:27] local.INFO: Created record: {"id":"15441f8b-af0f-427b-913e-6731d677d256","type":"Debit","amount":"1750.00","rate":null,"lcy_amount":"1750.000000","narrative":"MPESA WITHDRAWAL 03-08-2026","uniqid":"bdbd72c0-ecb1-4e9e-be8f-bfd534d68b3a","date":"2026-08-03","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T15:39:27.000000Z","created_at":"2026-08-03T15:39:27.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2422039.0,"debit_total":4623093.0,"credit_total":"7045132.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-08-02T15:50:46.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 18:39:28] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:28] local.INFO: Model: Journal  
[2026-08-03 18:39:28] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:39:28] local.INFO: ID present? YES  
[2026-08-03 18:39:28] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:28] local.INFO: ID empty? NO  
[2026-08-03 18:39:28] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:28] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:28] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:39:28, 2026-08-03 18:39:28))  
[2026-08-03 18:39:28] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:34] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:34] local.INFO: Model: Journal  
[2026-08-03 18:39:34] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:39:34] local.INFO: ID present? YES  
[2026-08-03 18:39:34] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:34] local.INFO: ID empty? NO  
[2026-08-03 18:39:34] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:34] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:34] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:39:34, 2026-08-03 18:39:34))  
[2026-08-03 18:39:34] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:41] local.INFO: Model: Journal  
[2026-08-03 18:39:41] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:39:41] local.INFO: ID present? YES  
[2026-08-03 18:39:41] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:41] local.INFO: ID empty? NO  
[2026-08-03 18:39:41] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:41] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:39:41, 2026-08-03 18:39:41))  
[2026-08-03 18:39:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:47] local.INFO: Model: Journal  
[2026-08-03 18:39:47] local.INFO: Data received: {"id":"1c678a40-d594-4808-afad-3c40ccae953b","type":"Credit","amount":"21750.00","rate":"145.000000","lcy_amount":"21750.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:39:47] local.INFO: ID present? YES  
[2026-08-03 18:39:47] local.INFO: ID value: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:47] local.INFO: ID empty? NO  
[2026-08-03 18:39:47] local.INFO: Attempting to find record with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:47] local.INFO: Record not found, creating new with ID: 1c678a40-d594-4808-afad-3c40ccae953b  
[2026-08-03 18:39:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (1c678a40-d594-4808-afad-3c40ccae953b, Credit, 21750.00, 145.000000, 21750.000000, Buying TX: Funds out of cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:39:47, 2026-08-03 18:39:47))  
[2026-08-03 18:39:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:49] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:49] local.INFO: Model: Journal  
[2026-08-03 18:39:49] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:39:49] local.INFO: ID present? YES  
[2026-08-03 18:39:49] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:39:49] local.INFO: ID empty? NO  
[2026-08-03 18:39:49] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:39:49] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:39:49] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:39:49, 2026-08-03 18:39:49))  
[2026-08-03 18:39:49] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:39:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:39:55] local.INFO: Model: Journal  
[2026-08-03 18:39:55] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:39:55] local.INFO: ID present? YES  
[2026-08-03 18:39:55] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:39:55] local.INFO: ID empty? NO  
[2026-08-03 18:39:55] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:39:55] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:39:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:39:55, 2026-08-03 18:39:55))  
[2026-08-03 18:39:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:01] local.INFO: Model: Journal  
[2026-08-03 18:40:01] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:40:01] local.INFO: ID present? YES  
[2026-08-03 18:40:01] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:40:01] local.INFO: ID empty? NO  
[2026-08-03 18:40:01] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:40:01] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:40:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:01, 2026-08-03 18:40:01))  
[2026-08-03 18:40:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:08] local.INFO: Model: Journal  
[2026-08-03 18:40:08] local.INFO: Data received: {"id":"3d485c85-47a8-41e7-b621-45e5a8aa8786","type":"Credit","amount":"300.00","rate":"127.500000","lcy_amount":"300.000000","narrative":"Gain on TR-3624-2026","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:40:08] local.INFO: ID present? YES  
[2026-08-03 18:40:08] local.INFO: ID value: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:40:08] local.INFO: ID empty? NO  
[2026-08-03 18:40:08] local.INFO: Attempting to find record with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:40:08] local.INFO: Record not found, creating new with ID: 3d485c85-47a8-41e7-b621-45e5a8aa8786  
[2026-08-03 18:40:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (3d485c85-47a8-41e7-b621-45e5a8aa8786, Credit, 300.00, 127.500000, 300.000000, Gain on TR-3624-2026, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:08, 2026-08-03 18:40:08))  
[2026-08-03 18:40:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:09] local.INFO: Model: Journal  
[2026-08-03 18:40:09] local.INFO: Data received: {"id":"41d1439c-0309-4e28-8fc1-47a71ef056da","type":"Debit","amount":"1901.00","rate":null,"lcy_amount":"245229.000000","narrative":"USD WITHDRAWAL","uniqid":"0c5f235a-67bd-49c1-a30d-85f8a98ca306","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 18:36:43","updated_at":"2026-08-03 18:36:45"} 
[2026-08-03 18:40:09] local.INFO: ID present? YES  
[2026-08-03 18:40:09] local.INFO: ID value: 41d1439c-0309-4e28-8fc1-47a71ef056da  
[2026-08-03 18:40:09] local.INFO: ID empty? NO  
[2026-08-03 18:40:09] local.INFO: Attempting to find record with ID: 41d1439c-0309-4e28-8fc1-47a71ef056da  
[2026-08-03 18:40:09] local.INFO: Record not found, creating new with ID: 41d1439c-0309-4e28-8fc1-47a71ef056da  
[2026-08-03 18:40:09] local.INFO: Created record: {"id":"41d1439c-0309-4e28-8fc1-47a71ef056da","type":"Debit","amount":"1901.00","rate":null,"lcy_amount":"245229.000000","narrative":"USD WITHDRAWAL","uniqid":"0c5f235a-67bd-49c1-a30d-85f8a98ca306","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"d2b69400-f132-465f-95a9-1707dc869b50","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T15:40:09.000000Z","created_at":"2026-08-03T15:40:09.000000Z","account":{"id":"d2b69400-f132-465f-95a9-1707dc869b50","name":"USD-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000001","is_fx_account":"1","balance":5120.110000000000582076609134674072265625,"debit_total":40922.0,"credit_total":"35801.89","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T15:30:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:40:10] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:10] local.INFO: Model: Journal  
[2026-08-03 18:40:10] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:40:10] local.INFO: ID present? YES  
[2026-08-03 18:40:10] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:10] local.INFO: ID empty? NO  
[2026-08-03 18:40:10] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:10] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:10] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:10, 2026-08-03 18:40:10))  
[2026-08-03 18:40:10] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:17] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:17] local.INFO: Model: Journal  
[2026-08-03 18:40:17] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:40:17] local.INFO: ID present? YES  
[2026-08-03 18:40:17] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:17] local.INFO: ID empty? NO  
[2026-08-03 18:40:17] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:17] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:17, 2026-08-03 18:40:17))  
[2026-08-03 18:40:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:23] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:23] local.INFO: Model: Journal  
[2026-08-03 18:40:23] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:40:23] local.INFO: ID present? YES  
[2026-08-03 18:40:23] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:23] local.INFO: ID empty? NO  
[2026-08-03 18:40:23] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:23] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:23, 2026-08-03 18:40:23))  
[2026-08-03 18:40:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:29] local.INFO: Model: Journal  
[2026-08-03 18:40:29] local.INFO: Data received: {"id":"578334cd-3aec-46bd-98f6-61fe6c97895c","type":"Credit","amount":"930.00","rate":"145.000000","lcy_amount":"930.000000","narrative":"Gain on TR-3607-2026","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:40:29] local.INFO: ID present? YES  
[2026-08-03 18:40:29] local.INFO: ID value: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:29] local.INFO: ID empty? NO  
[2026-08-03 18:40:29] local.INFO: Attempting to find record with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:29] local.INFO: Record not found, creating new with ID: 578334cd-3aec-46bd-98f6-61fe6c97895c  
[2026-08-03 18:40:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (578334cd-3aec-46bd-98f6-61fe6c97895c, Credit, 930.00, 145.000000, 930.000000, Gain on TR-3607-2026, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:29, 2026-08-03 18:40:29))  
[2026-08-03 18:40:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:31] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:31] local.INFO: Model: Journal  
[2026-08-03 18:40:31] local.INFO: Data received: {"id":"5fddc12d-6295-4239-892f-c138e8d560b9","type":"Debit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6cd2d2b-3419-44e0-82ca-ee4fcb8aba14","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-03 18:36:23","updated_at":"2026-08-03 18:36:25"} 
[2026-08-03 18:40:31] local.INFO: ID present? YES  
[2026-08-03 18:40:31] local.INFO: ID value: 5fddc12d-6295-4239-892f-c138e8d560b9  
[2026-08-03 18:40:31] local.INFO: ID empty? NO  
[2026-08-03 18:40:31] local.INFO: Attempting to find record with ID: 5fddc12d-6295-4239-892f-c138e8d560b9  
[2026-08-03 18:40:31] local.INFO: Record not found, creating new with ID: 5fddc12d-6295-4239-892f-c138e8d560b9  
[2026-08-03 18:40:31] local.INFO: Created record: {"id":"5fddc12d-6295-4239-892f-c138e8d560b9","type":"Debit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6cd2d2b-3419-44e0-82ca-ee4fcb8aba14","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-03T15:40:31.000000Z","created_at":"2026-08-03T15:40:31.000000Z","account":{"id":"09d7c999-bc90-4557-b0f9-ba923a77ca20","name":"EUR-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000001","is_fx_account":"1","balance":7970.0,"debit_total":18355.0,"credit_total":"10385.00","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T15:30:11.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:40:32] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:32] local.INFO: Model: Journal  
[2026-08-03 18:40:32] local.INFO: Data received: {"id":"65a88278-4956-4d76-b575-4b232781a27b","type":"Credit","amount":"1750.00","rate":null,"lcy_amount":"1750.000000","narrative":"MPESA WITHDRAWAL 03-08-2026","uniqid":"bdbd72c0-ecb1-4e9e-be8f-bfd534d68b3a","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 18:37:10","updated_at":"2026-08-03 18:37:11"} 
[2026-08-03 18:40:32] local.INFO: ID present? YES  
[2026-08-03 18:40:32] local.INFO: ID value: 65a88278-4956-4d76-b575-4b232781a27b  
[2026-08-03 18:40:32] local.INFO: ID empty? NO  
[2026-08-03 18:40:32] local.INFO: Attempting to find record with ID: 65a88278-4956-4d76-b575-4b232781a27b  
[2026-08-03 18:40:32] local.INFO: Record not found, creating new with ID: 65a88278-4956-4d76-b575-4b232781a27b  
[2026-08-03 18:40:32] local.INFO: Created record: {"id":"65a88278-4956-4d76-b575-4b232781a27b","type":"Credit","amount":"1750.00","rate":null,"lcy_amount":"1750.000000","narrative":"MPESA WITHDRAWAL 03-08-2026","uniqid":"bdbd72c0-ecb1-4e9e-be8f-bfd534d68b3a","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T15:40:32.000000Z","created_at":"2026-08-03T15:40:32.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-228112.0,"debit_total":"22343744.10","credit_total":22571856.100000001490116119384765625,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T14:36:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:40:33] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:33] local.INFO: Model: Journal  
[2026-08-03 18:40:33] local.INFO: Data received: {"id":"72949cc8-61c1-4da9-8b8a-7b439c419eed","type":"Debit","amount":"150375.00","rate":null,"lcy_amount":"150375.000000","narrative":"MPESA DEPOSIT 03-08-2026","uniqid":"0b5221f5-99fb-44d3-a9a6-cb934baf0340","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 18:38:00","updated_at":"2026-08-03 18:38:03"} 
[2026-08-03 18:40:33] local.INFO: ID present? YES  
[2026-08-03 18:40:33] local.INFO: ID value: 72949cc8-61c1-4da9-8b8a-7b439c419eed  
[2026-08-03 18:40:33] local.INFO: ID empty? NO  
[2026-08-03 18:40:33] local.INFO: Attempting to find record with ID: 72949cc8-61c1-4da9-8b8a-7b439c419eed  
[2026-08-03 18:40:33] local.INFO: Record not found, creating new with ID: 72949cc8-61c1-4da9-8b8a-7b439c419eed  
[2026-08-03 18:40:33] local.INFO: Created record: {"id":"72949cc8-61c1-4da9-8b8a-7b439c419eed","type":"Debit","amount":"150375.00","rate":null,"lcy_amount":"150375.000000","narrative":"MPESA DEPOSIT 03-08-2026","uniqid":"0b5221f5-99fb-44d3-a9a6-cb934baf0340","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T15:40:33.000000Z","created_at":"2026-08-03T15:40:33.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":-77737.0,"debit_total":22494119.100000001490116119384765625,"credit_total":"22571856.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T15:40:32.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:40:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:35] local.INFO: Model: Journal  
[2026-08-03 18:40:35] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:40:35] local.INFO: ID present? YES  
[2026-08-03 18:40:35] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:35] local.INFO: ID empty? NO  
[2026-08-03 18:40:35] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:35] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:35, 2026-08-03 18:40:35))  
[2026-08-03 18:40:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:41] local.INFO: Model: Journal  
[2026-08-03 18:40:41] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:40:41] local.INFO: ID present? YES  
[2026-08-03 18:40:41] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:41] local.INFO: ID empty? NO  
[2026-08-03 18:40:41] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:41] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:41, 2026-08-03 18:40:41))  
[2026-08-03 18:40:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:47] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:47] local.INFO: Model: Journal  
[2026-08-03 18:40:47] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:40:47] local.INFO: ID present? YES  
[2026-08-03 18:40:47] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:47] local.INFO: ID empty? NO  
[2026-08-03 18:40:47] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:47] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:47] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:47, 2026-08-03 18:40:47))  
[2026-08-03 18:40:47] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:54] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:54] local.INFO: Model: Journal  
[2026-08-03 18:40:54] local.INFO: Data received: {"id":"74e68f51-38cc-4280-8dfe-801afeec369e","type":"Credit","amount":"25500.00","rate":"127.500000","lcy_amount":"25500.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:40:54] local.INFO: ID present? YES  
[2026-08-03 18:40:54] local.INFO: ID value: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:54] local.INFO: ID empty? NO  
[2026-08-03 18:40:54] local.INFO: Attempting to find record with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:54] local.INFO: Record not found, creating new with ID: 74e68f51-38cc-4280-8dfe-801afeec369e  
[2026-08-03 18:40:54] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (74e68f51-38cc-4280-8dfe-801afeec369e, Credit, 25500.00, 127.500000, 25500.000000, Buying TX: Funds out of cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:40:54, 2026-08-03 18:40:54))  
[2026-08-03 18:40:54] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:40:55] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:40:55] local.INFO: Model: Journal  
[2026-08-03 18:40:55] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:40:55] local.INFO: ID present? YES  
[2026-08-03 18:40:55] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:40:55] local.INFO: ID empty? NO  
[2026-08-03 18:40:55] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:40:55] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:40:55] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 18:40:55, 2026-08-03 18:40:55))  
[2026-08-03 18:40:55] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:01] local.INFO: Model: Journal  
[2026-08-03 18:41:01] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:41:01] local.INFO: ID present? YES  
[2026-08-03 18:41:01] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:01] local.INFO: ID empty? NO  
[2026-08-03 18:41:01] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:01] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:01] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 18:41:01, 2026-08-03 18:41:01))  
[2026-08-03 18:41:01] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:08] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:08] local.INFO: Model: Journal  
[2026-08-03 18:41:08] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:41:08] local.INFO: ID present? YES  
[2026-08-03 18:41:08] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:08] local.INFO: ID empty? NO  
[2026-08-03 18:41:08] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:08] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:08] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 18:41:08, 2026-08-03 18:41:08))  
[2026-08-03 18:41:08] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:14] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:14] local.INFO: Model: Journal  
[2026-08-03 18:41:14] local.INFO: Data received: {"id":"8ac21044-4e4d-425d-87a8-6e6e3c6000f5","type":"Debit","amount":"90.00","rate":"30.000000","lcy_amount":"2893.500000","narrative":"Buying TX: Funds into cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"505fda64-a1cb-470a-b2e8-6c4141bfb2bc","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:41:14] local.INFO: ID present? YES  
[2026-08-03 18:41:14] local.INFO: ID value: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:14] local.INFO: ID empty? NO  
[2026-08-03 18:41:14] local.INFO: Attempting to find record with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:14] local.INFO: Record not found, creating new with ID: 8ac21044-4e4d-425d-87a8-6e6e3c6000f5  
[2026-08-03 18:41:14] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (8ac21044-4e4d-425d-87a8-6e6e3c6000f5, Debit, 90.00, 30.000000, 2893.500000, Buying TX: Funds into cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 5bc8368f-1ccd-4dd7-bd7c-67dd0bb1e185, Posted, 2026-08-03 18:41:14, 2026-08-03 18:41:14))  
[2026-08-03 18:41:14] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:15] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:15] local.INFO: Model: Journal  
[2026-08-03 18:41:15] local.INFO: Data received: {"id":"8b93b203-b4a6-4316-9b79-c85ad460d237","type":"Credit","amount":"150375.00","rate":null,"lcy_amount":"150375.000000","narrative":"MPESA DEPOSIT 03-08-2026","uniqid":"0b5221f5-99fb-44d3-a9a6-cb934baf0340","date":"2026-08-03","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 18:38:00","updated_at":"2026-08-03 18:38:03"} 
[2026-08-03 18:41:15] local.INFO: ID present? YES  
[2026-08-03 18:41:15] local.INFO: ID value: 8b93b203-b4a6-4316-9b79-c85ad460d237  
[2026-08-03 18:41:15] local.INFO: ID empty? NO  
[2026-08-03 18:41:15] local.INFO: Attempting to find record with ID: 8b93b203-b4a6-4316-9b79-c85ad460d237  
[2026-08-03 18:41:15] local.INFO: Record not found, creating new with ID: 8b93b203-b4a6-4316-9b79-c85ad460d237  
[2026-08-03 18:41:15] local.INFO: Created record: {"id":"8b93b203-b4a6-4316-9b79-c85ad460d237","type":"Credit","amount":"150375.00","rate":null,"lcy_amount":"150375.000000","narrative":"MPESA DEPOSIT 03-08-2026","uniqid":"0b5221f5-99fb-44d3-a9a6-cb934baf0340","date":"2026-08-03","fx_category":null,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T15:41:15.000000Z","created_at":"2026-08-03T15:41:15.000000Z","account":{"id":"990b84df-a55e-443e-a106-9d9e1ec3b9d4","name":"Safaricom MPESA - Diani","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000009","is_fx_account":null,"balance":-2572414.0,"debit_total":"4623093.00","credit_total":7195507.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":"82eb89b7-217e-4501-8e4f-96313c0afdd5","parent_account_id":"571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T13:26:12.000000Z","updated_at":"2026-08-03T15:39:27.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":null}} 
[2026-08-03 18:41:17] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:17] local.INFO: Model: Journal  
[2026-08-03 18:41:17] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:41:17] local.INFO: ID present? YES  
[2026-08-03 18:41:17] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:17] local.INFO: ID empty? NO  
[2026-08-03 18:41:17] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:17] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:17] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 18:41:17, 2026-08-03 18:41:17))  
[2026-08-03 18:41:17] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:23] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:23] local.INFO: Model: Journal  
[2026-08-03 18:41:23] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:41:23] local.INFO: ID present? YES  
[2026-08-03 18:41:23] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:23] local.INFO: ID empty? NO  
[2026-08-03 18:41:23] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:23] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:23] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 18:41:23, 2026-08-03 18:41:23))  
[2026-08-03 18:41:23] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:29] local.INFO: Model: Journal  
[2026-08-03 18:41:29] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:41:29] local.INFO: ID present? YES  
[2026-08-03 18:41:29] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:29] local.INFO: ID empty? NO  
[2026-08-03 18:41:29] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:29] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 18:41:29, 2026-08-03 18:41:29))  
[2026-08-03 18:41:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:36] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:36] local.INFO: Model: Journal  
[2026-08-03 18:41:36] local.INFO: Data received: {"id":"9c4a828e-b997-4e50-a202-21ff1a555a27","type":"Debit","amount":"150.00","rate":"145.000000","lcy_amount":"22680.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","date":"2026-07-31","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":"67e0a406-8c3f-4594-ae92-8b9c9062eacd","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-07-31 14:33:35","updated_at":"2026-07-31 14:33:35"} 
[2026-08-03 18:41:36] local.INFO: ID present? YES  
[2026-08-03 18:41:36] local.INFO: ID value: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:36] local.INFO: ID empty? NO  
[2026-08-03 18:41:36] local.INFO: Attempting to find record with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:36] local.INFO: Record not found, creating new with ID: 9c4a828e-b997-4e50-a202-21ff1a555a27  
[2026-08-03 18:41:36] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (9c4a828e-b997-4e50-a202-21ff1a555a27, Debit, 150.00, 145.000000, 22680.000000, Buying TX: Funds into cashbox, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 2026-07-31, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 7a9f9d96-58b3-4330-a950-bef0fde06562, 67e0a406-8c3f-4594-ae92-8b9c9062eacd, 8749c5d2-ff68-45df-995d-999edcf3476d, 059c4799-e3cc-4177-98f6-327e7a36fab7, Posted, 2026-08-03 18:41:36, 2026-08-03 18:41:36))  
[2026-08-03 18:41:36] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:37] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:37] local.INFO: Model: Journal  
[2026-08-03 18:41:37] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:41:37] local.INFO: ID present? YES  
[2026-08-03 18:41:37] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:37] local.INFO: ID empty? NO  
[2026-08-03 18:41:37] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:37] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:37] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:41:37, 2026-08-03 18:41:37))  
[2026-08-03 18:41:37] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:43] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:43] local.INFO: Model: Journal  
[2026-08-03 18:41:43] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:41:43] local.INFO: ID present? YES  
[2026-08-03 18:41:43] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:43] local.INFO: ID empty? NO  
[2026-08-03 18:41:43] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:43] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:43] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:41:43, 2026-08-03 18:41:43))  
[2026-08-03 18:41:43] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:50] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:50] local.INFO: Model: Journal  
[2026-08-03 18:41:50] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:41:50] local.INFO: ID present? YES  
[2026-08-03 18:41:50] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:50] local.INFO: ID empty? NO  
[2026-08-03 18:41:50] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:50] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:50] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:41:50, 2026-08-03 18:41:50))  
[2026-08-03 18:41:50] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:56] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:56] local.INFO: Model: Journal  
[2026-08-03 18:41:56] local.INFO: Data received: {"id":"a76553c6-bf99-4bd9-852a-e3065c2f950d","type":"Credit","amount":"2700.00","rate":"30.000000","lcy_amount":"2700.000000","narrative":"Buying TX: Funds out of cashbox","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"Selling","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:41:56] local.INFO: ID present? YES  
[2026-08-03 18:41:56] local.INFO: ID value: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:56] local.INFO: ID empty? NO  
[2026-08-03 18:41:56] local.INFO: Attempting to find record with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:56] local.INFO: Record not found, creating new with ID: a76553c6-bf99-4bd9-852a-e3065c2f950d  
[2026-08-03 18:41:56] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (a76553c6-bf99-4bd9-852a-e3065c2f950d, Credit, 2700.00, 30.000000, 2700.000000, Buying TX: Funds out of cashbox, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, Selling, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, 87c346b1-56cc-4f03-826f-4caf836c9506, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:41:56, 2026-08-03 18:41:56))  
[2026-08-03 18:41:56] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:41:57] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:57] local.INFO: Model: Journal  
[2026-08-03 18:41:57] local.INFO: Data received: {"id":"a96d7aa5-7e02-49ca-84cf-36371872c86c","type":"Credit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"3c6939da-36aa-4450-8214-7bb4b0007a3e","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 18:23:38","updated_at":"2026-08-03 18:23:42"} 
[2026-08-03 18:41:57] local.INFO: ID present? YES  
[2026-08-03 18:41:57] local.INFO: ID value: a96d7aa5-7e02-49ca-84cf-36371872c86c  
[2026-08-03 18:41:57] local.INFO: ID empty? NO  
[2026-08-03 18:41:57] local.INFO: Attempting to find record with ID: a96d7aa5-7e02-49ca-84cf-36371872c86c  
[2026-08-03 18:41:57] local.INFO: Record not found, creating new with ID: a96d7aa5-7e02-49ca-84cf-36371872c86c  
[2026-08-03 18:41:57] local.INFO: Created record: {"id":"a96d7aa5-7e02-49ca-84cf-36371872c86c","type":"Credit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"3c6939da-36aa-4450-8214-7bb4b0007a3e","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":null,"account_id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T15:41:57.000000Z","created_at":"2026-08-03T15:41:57.000000Z","account":{"id":"aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433","name":"KES-VAULT-Diani branch","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000004","is_fx_account":"1","balance":3685473.5,"debit_total":"10133959.10","credit_total":6448485.59999999962747097015380859375,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T07:55:05.000000Z","updated_at":"2026-08-02T10:00:55.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:41:59] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:41:59] local.INFO: Model: Journal  
[2026-08-03 18:41:59] local.INFO: Data received: {"id":"b01b3f7e-9c03-45ca-b8c6-5577aebc0a40","type":"Credit","amount":"1901.00","rate":null,"lcy_amount":"245229.000000","narrative":"USD WITHDRAWAL","uniqid":"0c5f235a-67bd-49c1-a30d-85f8a98ca306","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-03 18:36:43","updated_at":"2026-08-03 18:36:45"} 
[2026-08-03 18:41:59] local.INFO: ID present? YES  
[2026-08-03 18:41:59] local.INFO: ID value: b01b3f7e-9c03-45ca-b8c6-5577aebc0a40  
[2026-08-03 18:41:59] local.INFO: ID empty? NO  
[2026-08-03 18:41:59] local.INFO: Attempting to find record with ID: b01b3f7e-9c03-45ca-b8c6-5577aebc0a40  
[2026-08-03 18:41:59] local.INFO: Record not found, creating new with ID: b01b3f7e-9c03-45ca-b8c6-5577aebc0a40  
[2026-08-03 18:41:59] local.INFO: Created record: {"id":"b01b3f7e-9c03-45ca-b8c6-5577aebc0a40","type":"Credit","amount":"1901.00","rate":null,"lcy_amount":"245229.000000","narrative":"USD WITHDRAWAL","uniqid":"0c5f235a-67bd-49c1-a30d-85f8a98ca306","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":null,"customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","updated_at":"2026-08-03T15:41:59.000000Z","created_at":"2026-08-03T15:41:59.000000Z","account":{"id":"b928b44b-d4f4-47f5-9355-62313ce032ac","name":"USD-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-USD-000002","is_fx_account":"1","balance":0.0,"debit_total":"83492.00","credit_total":83492.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"d823a4c9-49dd-49b3-afb4-bc10e3c7490e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T14:37:09.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:42:00] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:00] local.INFO: Model: Journal  
[2026-08-03 18:42:00] local.INFO: Data received: {"id":"cf82fbfb-b0f5-4111-bc53-31323255d01e","type":"Credit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6cd2d2b-3419-44e0-82ca-ee4fcb8aba14","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","created_at":"2026-08-03 18:36:23","updated_at":"2026-08-03 18:36:25"} 
[2026-08-03 18:42:00] local.INFO: ID present? YES  
[2026-08-03 18:42:00] local.INFO: ID value: cf82fbfb-b0f5-4111-bc53-31323255d01e  
[2026-08-03 18:42:00] local.INFO: ID empty? NO  
[2026-08-03 18:42:00] local.INFO: Attempting to find record with ID: cf82fbfb-b0f5-4111-bc53-31323255d01e  
[2026-08-03 18:42:00] local.INFO: Record not found, creating new with ID: cf82fbfb-b0f5-4111-bc53-31323255d01e  
[2026-08-03 18:42:00] local.INFO: Created record: {"id":"cf82fbfb-b0f5-4111-bc53-31323255d01e","type":"Credit","amount":"200.00","rate":null,"lcy_amount":"30240.000000","narrative":"EUR WITHDRAWAL","uniqid":"f6cd2d2b-3419-44e0-82ca-ee4fcb8aba14","date":"2026-08-03","fx_category":"Withdrawal","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"7a9f9d96-58b3-4330-a950-bef0fde06562","transaction_id":null,"customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","status":"Posted","updated_at":"2026-08-03T15:42:00.000000Z","created_at":"2026-08-03T15:42:00.000000Z","account":{"id":"7a9f9d96-58b3-4330-a950-bef0fde06562","name":"EUR-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-EUR-000002","is_fx_account":"1","balance":0.0,"debit_total":"24740.00","credit_total":24740.0,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"bb58b1b1-5ccc-47ae-8588-9bf39a6914a1","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"059c4799-e3cc-4177-98f6-327e7a36fab7","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T13:33:40.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:42:01] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:01] local.INFO: Model: Journal  
[2026-08-03 18:42:01] local.INFO: Data received: {"id":"d9bcb882-4f72-4de8-a3d8-076b1f96859c","type":"Debit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"3c6939da-36aa-4450-8214-7bb4b0007a3e","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-08-03 18:23:38","updated_at":"2026-08-03 18:23:42"} 
[2026-08-03 18:42:01] local.INFO: ID present? YES  
[2026-08-03 18:42:01] local.INFO: ID value: d9bcb882-4f72-4de8-a3d8-076b1f96859c  
[2026-08-03 18:42:01] local.INFO: ID empty? NO  
[2026-08-03 18:42:01] local.INFO: Attempting to find record with ID: d9bcb882-4f72-4de8-a3d8-076b1f96859c  
[2026-08-03 18:42:01] local.INFO: Record not found, creating new with ID: d9bcb882-4f72-4de8-a3d8-076b1f96859c  
[2026-08-03 18:42:01] local.INFO: Created record: {"id":"d9bcb882-4f72-4de8-a3d8-076b1f96859c","type":"Debit","amount":"100000.00","rate":null,"lcy_amount":"100000.000000","narrative":"KES ADDITION","uniqid":"3c6939da-36aa-4450-8214-7bb4b0007a3e","date":"2026-08-03","fx_category":"Funding","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"87c346b1-56cc-4f03-826f-4caf836c9506","transaction_id":null,"customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","updated_at":"2026-08-03T15:42:01.000000Z","created_at":"2026-08-03T15:42:01.000000Z","account":{"id":"87c346b1-56cc-4f03-826f-4caf836c9506","name":"KES-CASHBOX-Teller 14","type":"Asset","account_type_code":"001","opening_balance":0.0,"status":"Active","number":"001-008-000-10-KES-000005","is_fx_account":"1","balance":22263.0,"debit_total":22594119.100000001490116119384765625,"credit_total":"22571856.10","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","user_id":null,"parent_account_id":"5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","customer_id":null,"currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","created_at":"2026-05-20T08:18:04.000000Z","updated_at":"2026-08-03T15:40:33.000000Z","synced_at":"2026-06-21 17:02:55","deleted_at":null,"asset_category":"Cash fcy and lcy"}} 
[2026-08-03 18:42:02] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:02] local.INFO: Model: Journal  
[2026-08-03 18:42:02] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:42:02] local.INFO: ID present? YES  
[2026-08-03 18:42:02] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:02] local.INFO: ID empty? NO  
[2026-08-03 18:42:02] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:02] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:02] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:42:02, 2026-08-03 18:42:02))  
[2026-08-03 18:42:02] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:42:09] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:09] local.INFO: Model: Journal  
[2026-08-03 18:42:09] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:42:09] local.INFO: ID present? YES  
[2026-08-03 18:42:09] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:09] local.INFO: ID empty? NO  
[2026-08-03 18:42:09] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:09] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:09] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:42:09, 2026-08-03 18:42:09))  
[2026-08-03 18:42:09] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:42:15] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:15] local.INFO: Model: Journal  
[2026-08-03 18:42:15] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:42:15] local.INFO: ID present? YES  
[2026-08-03 18:42:15] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:15] local.INFO: ID empty? NO  
[2026-08-03 18:42:15] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:15] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:15] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:42:15, 2026-08-03 18:42:15))  
[2026-08-03 18:42:15] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:42:21] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:21] local.INFO: Model: Journal  
[2026-08-03 18:42:21] local.INFO: Data received: {"id":"e7bfd1d8-7dfd-437f-a34b-9acc0a096cba","type":"Credit","amount":"193.50","rate":"30.000000","lcy_amount":"193.500000","narrative":"Gain on TR-3599-2026","uniqid":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","date":"2026-07-28","fx_category":"ExchangeDiff","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b9c5c801-87be-4bc0-bbb8-00cdeca26df4","transaction_id":"78492ef0-26ef-40e8-adf1-4622cd13d2e5","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"19bf0423-7c99-431d-b712-002599c6e7b4","status":"Posted","created_at":"2026-07-28 17:26:31","updated_at":"2026-07-28 17:26:31"} 
[2026-08-03 18:42:21] local.INFO: ID present? YES  
[2026-08-03 18:42:21] local.INFO: ID value: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:21] local.INFO: ID empty? NO  
[2026-08-03 18:42:21] local.INFO: Attempting to find record with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:21] local.INFO: Record not found, creating new with ID: e7bfd1d8-7dfd-437f-a34b-9acc0a096cba  
[2026-08-03 18:42:21] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (e7bfd1d8-7dfd-437f-a34b-9acc0a096cba, Credit, 193.50, 30.000000, 193.500000, Gain on TR-3599-2026, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 2026-07-28, ExchangeDiff, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, 78492ef0-26ef-40e8-adf1-4622cd13d2e5, 8749c5d2-ff68-45df-995d-999edcf3476d, 19bf0423-7c99-431d-b712-002599c6e7b4, Posted, 2026-08-03 18:42:21, 2026-08-03 18:42:21))  
[2026-08-03 18:42:21] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:42:22] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:22] local.INFO: Model: Journal  
[2026-08-03 18:42:22] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:42:22] local.INFO: ID present? YES  
[2026-08-03 18:42:22] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:22] local.INFO: ID empty? NO  
[2026-08-03 18:42:22] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:22] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:22] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 18:42:22, 2026-08-03 18:42:22))  
[2026-08-03 18:42:22] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:42:29] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:29] local.INFO: Model: Journal  
[2026-08-03 18:42:29] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:42:29] local.INFO: ID present? YES  
[2026-08-03 18:42:29] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:29] local.INFO: ID empty? NO  
[2026-08-03 18:42:29] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:29] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:29] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 18:42:29, 2026-08-03 18:42:29))  
[2026-08-03 18:42:29] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:42:35] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:35] local.INFO: Model: Journal  
[2026-08-03 18:42:35] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:42:35] local.INFO: ID present? YES  
[2026-08-03 18:42:35] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:35] local.INFO: ID empty? NO  
[2026-08-03 18:42:35] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:35] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:35] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 18:42:35, 2026-08-03 18:42:35))  
[2026-08-03 18:42:35] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-03 18:42:41] local.INFO: === SYNC DEBUG ===  
[2026-08-03 18:42:41] local.INFO: Model: Journal  
[2026-08-03 18:42:41] local.INFO: Data received: {"id":"f84bc41d-1aed-48df-b5ca-e6638ec7ca3e","type":"Debit","amount":"200.00","rate":"127.500000","lcy_amount":"25800.000000","narrative":"Buying TX: Funds into cashbox","uniqid":"0187cabf-a27f-4d7f-a8b2-51239580e94b","date":"2026-08-01","fx_category":"Buying","company_id":"8839b09d-b33e-4095-871c-26271be56f14","branch_id":"d651b9c9-19b8-40fe-96de-ff78be4796ed","vault_id":null,"cashbox_id":null,"fund_request_id":null,"user_id":"ae0a6d32-49a3-4a64-8d1d-414020bbf225","teller_id":"c5c77b6f-1cf8-4a39-b843-514767a0472e","account_id":"b928b44b-d4f4-47f5-9355-62313ce032ac","transaction_id":"0187cabf-a27f-4d7f-a8b2-51239580e94b","customer_id":"8749c5d2-ff68-45df-995d-999edcf3476d","currency_id":"a3990fd4-353e-43d1-91cb-ad20881dc23f","status":"Posted","created_at":"2026-08-01 17:39:12","updated_at":"2026-08-01 17:39:12"} 
[2026-08-03 18:42:41] local.INFO: ID present? YES  
[2026-08-03 18:42:41] local.INFO: ID value: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:41] local.INFO: ID empty? NO  
[2026-08-03 18:42:41] local.INFO: Attempting to find record with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:41] local.INFO: Record not found, creating new with ID: f84bc41d-1aed-48df-b5ca-e6638ec7ca3e  
[2026-08-03 18:42:41] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`journals`, CONSTRAINT `journals_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `journals` (`id`, `type`, `amount`, `rate`, `lcy_amount`, `narrative`, `uniqid`, `date`, `fx_category`, `company_id`, `branch_id`, `vault_id`, `cashbox_id`, `fund_request_id`, `user_id`, `teller_id`, `account_id`, `transaction_id`, `customer_id`, `currency_id`, `status`, `updated_at`, `created_at`) values (f84bc41d-1aed-48df-b5ca-e6638ec7ca3e, Debit, 200.00, 127.500000, 25800.000000, Buying TX: Funds into cashbox, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 2026-08-01, Buying, 8839b09d-b33e-4095-871c-26271be56f14, d651b9c9-19b8-40fe-96de-ff78be4796ed, ?, ?, ?, ae0a6d32-49a3-4a64-8d1d-414020bbf225, c5c77b6f-1cf8-4a39-b843-514767a0472e, b928b44b-d4f4-47f5-9355-62313ce032ac, 0187cabf-a27f-4d7f-a8b2-51239580e94b, 8749c5d2-ff68-45df-995d-999edcf3476d, a3990fd4-353e-43d1-91cb-ad20881dc23f, Posted, 2026-08-03 18:42:41, 2026-08-03 18:42:41))  
[2026-08-03 18:42:41] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `jo...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\Journal))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\Journal), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(68): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-10 06:50:23] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#55 {main}
"} 
[2026-08-10 11:06:24] local.ERROR: Undefined variable $branch_id {"userId":"599b1ae3-c190-4828-83c6-151b466ab77b","exception":"[object] (ErrorException(code: 0): Undefined variable $branch_id at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/CashboxController.php:40)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Undefined varia...', '/home/junctionf...', 40)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/CashboxController.php(40): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Undefined varia...', '/home/junctionf...', 40)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\CashboxController->index(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\CashboxController), 'index')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-10 11:30:12] local.ERROR: Undefined variable $branch_id {"userId":"599b1ae3-c190-4828-83c6-151b466ab77b","exception":"[object] (ErrorException(code: 0): Undefined variable $branch_id at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/CashboxController.php:40)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Undefined varia...', '/home/junctionf...', 40)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/CashboxController.php(40): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Undefined varia...', '/home/junctionf...', 40)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\CashboxController->index(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('index', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\CashboxController), 'index')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-11 05:48:06] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 05:48:07] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 05:48:08] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 05:48:09] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 05:48:11] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 05:48:11] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-08-11 05:48:12] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 05:48:56] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 05:52:24] local.INFO: === SYNC DEBUG ===  
[2026-08-11 05:52:24] local.INFO: Model: User  
[2026-08-11 05:52:24] local.INFO: Data received: {"name":"P3 Admin","email":"p3testadmin.7f3a9@protonmail.com","password":"$2y$10$4GgMcWMLGZbURpgQS21zMed3wLTkPr668y9rvCqHz.wLbug0m.KiK","role_id":1,"google2fa_verified":1,"has_added_google2fa":0,"company_id":1,"phone":"0700000000","calling_code":"+254","email_verified_at":"2024-01-01 00:00:00"} 
[2026-08-11 05:52:24] local.INFO: ID present? NO  
[2026-08-11 05:52:24] local.INFO: ID value: NULL  
[2026-08-11 05:52:24] local.INFO: ID empty? YES  
[2026-08-11 05:52:24] local.INFO: No ID provided, creating new record  
[2026-08-11 05:52:24] local.ERROR: Sync error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`fxmate`.`users`, CONSTRAINT `users_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) (Connection: mysql, SQL: insert into `users` (`name`, `email`, `password`, `role_id`, `google2fa_verified`, `has_added_google2fa`, `company_id`, `phone`, `calling_code`, `email_verified_at`, `id`, `updated_at`, `created_at`) values (P3 Admin, p3testadmin.7f3a9@protonmail.com, $2y$10$4GgMcWMLGZbURpgQS21zMed3wLTkPr668y9rvCqHz.wLbug0m.KiK, 1, 1, 0, 1, 0700000000, +254, 2024-01-01 00:00:00, 3dd77946-2bfb-448c-be4b-37cc963c851b, 2026-08-11 05:52:24, 2026-08-11 05:52:24))  
[2026-08-11 05:52:24] local.ERROR: #0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\Database\Connection->runQueryCallback('insert into `us...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\Database\Connection->run('insert into `us...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3498): Illuminate\Database\MySqlConnection->insert('insert into `us...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\Database\Query\Builder->insert(Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1310): Illuminate\Database\Eloquent\Builder->__call('insert', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1025): Illuminate\Database\Eloquent\Model->save()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\Models\User))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1024): tap(Object(App\Models\User), Object(Closure))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\Database\Eloquent\Model->__call('create', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/SyncApiController.php(74): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\SyncApiController->receiveSyncData(Object(Illuminate\Http\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('receiveSyncData', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\SyncApiController), 'receiveSyncData')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\Http\Request), Object(Closure), 'api', Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), 'api')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->Laravel\Sanctum\Http\Middleware\{closure}(Object(Illuminate\Http\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  
[2026-08-11 06:01:01] local.INFO: === SYNC DEBUG ===  
[2026-08-11 06:01:01] local.INFO: Model: User  
[2026-08-11 06:01:01] local.INFO: Data received: {"name":"P3ntest","email":"p3ntest-sync@test.local","password":"$2y$10$4GgMcWMLGZbURpgQS21zMed3wLTkPr668y9rvCqHz.wLbug0m.KiK","role_id":1,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","google2fa_verified":0,"has_added_google2fa":0,"mfa_type":null} 
[2026-08-11 06:01:01] local.INFO: ID present? NO  
[2026-08-11 06:01:01] local.INFO: ID value: NULL  
[2026-08-11 06:01:01] local.INFO: ID empty? YES  
[2026-08-11 06:01:01] local.INFO: No ID provided, creating new record  
[2026-08-11 06:01:01] local.INFO: Created record: {"name":"P3ntest","email":"p3ntest-sync@test.local","role_id":1,"company_id":"8839b09d-b33e-4095-871c-26271be56f14","google2fa_verified":0,"has_added_google2fa":0,"mfa_type":null,"id":"4c96524e-4c8b-4099-a575-2c745e9fd0e8","updated_at":"2026-08-11T03:01:01.000000Z","created_at":"2026-08-11T03:01:01.000000Z"} 
[2026-08-11 07:15:03] local.INFO: Approving fund request 99999999 {"request_data":{"message":"test"},"user_id":null} 
[2026-08-11 07:16:27] local.ERROR: Attempt to read property "selected_branch_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"selected_branch_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php:931)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 931)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(931): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 931)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getDailyTransactionList(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getDailyTransac...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getDailyTransac...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"} 
[2026-08-11 07:16:41] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-11 07:16:42] local.ERROR: Route [login] not defined. {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): Route [login] not defined. at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(811): Illuminate\\Routing\\UrlGenerator->route('login', Array, true)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/Authenticate.php(15): route('login')
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(96): App\\Http\\Middleware\\Authenticate->redirectTo(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(81): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#36 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `companies` where `companies`.`id` = 8839b09d-b33e-4095-871c-26271be56f14 and `companies`.`id` is not null and `companies`.`deleted_at` is null limit 1) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `companies` where `companies`.`id` = 8839b09d-b33e-4095-871c-26271be56f14 and `companies`.`id` is not null and `companies`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('company')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('company')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('company')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('company')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountResource.php(37): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('company')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountResource->toArray(Object(Illuminate\\Http\\Request))
#19 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountResource), 13)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#26 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(84): json_encode(Array, 0)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/http-foundation/JsonResponse.php(49): Illuminate\\Http\\JsonResponse->setData(Array)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 200, Array, false)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(102): Illuminate\\Http\\JsonResponse->__construct(Array, 200, Array, 0)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(37): Illuminate\\Routing\\ResponseFactory->json(Array, 200, Array, 0)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#88 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('company')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('company')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('company')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('company')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountResource.php(37): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('company')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountResource->toArray(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountResource), 13)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#37 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(84): json_encode(Array, 0)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/http-foundation/JsonResponse.php(49): Illuminate\\Http\\JsonResponse->setData(Array)
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 200, Array, false)
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(102): Illuminate\\Http\\JsonResponse->__construct(Array, 200, Array, 0)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(37): Illuminate\\Routing\\ResponseFactory->json(Array, 200, Array, 0)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#97 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#98 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#99 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `accounts`.`parent_account_id` = 2fd989fd-d9e5-4c1a-a220-347060ae9ea2 and `accounts`.`parent_account_id` is not null and `accounts`.`deleted_at` is null) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `accounts`.`parent_account_id` = 2fd989fd-d9e5-4c1a-a220-347060ae9ea2 and `accounts`.`parent_account_id` is not null and `accounts`.`deleted_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasMany.php(32): Illuminate\\Database\\Eloquent\\Builder->get()
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasMany->getResults()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('children')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('children')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('children')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('children')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountResource.php(45): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('children')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountResource->toArray(Object(Illuminate\\Http\\Request))
#18 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountResource), 6)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#25 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(84): json_encode(Array, 0)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/http-foundation/JsonResponse.php(49): Illuminate\\Http\\JsonResponse->setData(Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 200, Array, false)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(102): Illuminate\\Http\\JsonResponse->__construct(Array, 200, Array, 0)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(37): Illuminate\\Routing\\ResponseFactory->json(Array, 200, Array, 0)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#87 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasMany.php(32): Illuminate\\Database\\Eloquent\\Builder->get()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasMany->getResults()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('children')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('children')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('children')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('children')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountResource.php(45): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('children')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountResource->toArray(Object(Illuminate\\Http\\Request))
#29 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountResource), 6)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#36 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(84): json_encode(Array, 0)
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/http-foundation/JsonResponse.php(49): Illuminate\\Http\\JsonResponse->setData(Array)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 200, Array, false)
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(102): Illuminate\\Http\\JsonResponse->__construct(Array, 200, Array, 0)
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(37): Illuminate\\Routing\\ResponseFactory->json(Array, 200, Array, 0)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#94 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#95 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#96 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#97 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#98 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `accounts`.`id` = d823a4c9-49dd-49b3-afb4-bc10e3c7490e and `accounts`.`id` is not null and `accounts`.`deleted_at` is null limit 1) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `accounts`.`id` = d823a4c9-49dd-49b3-afb4-bc10e3c7490e and `accounts`.`id` is not null and `accounts`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('parent')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('parent')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('parent')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('parent')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountResource.php(40): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('parent')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountResource->toArray(Object(Illuminate\\Http\\Request))
#19 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountResource), 11)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#26 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(84): json_encode(Array, 0)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/http-foundation/JsonResponse.php(49): Illuminate\\Http\\JsonResponse->setData(Array)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 200, Array, false)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(102): Illuminate\\Http\\JsonResponse->__construct(Array, 200, Array, 0)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(37): Illuminate\\Routing\\ResponseFactory->json(Array, 200, Array, 0)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#88 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('parent')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('parent')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('parent')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('parent')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountResource.php(40): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('parent')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountResource->toArray(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountResource), 11)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#37 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(84): json_encode(Array, 0)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/http-foundation/JsonResponse.php(49): Illuminate\\Http\\JsonResponse->setData(Array)
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 200, Array, false)
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(102): Illuminate\\Http\\JsonResponse->__construct(Array, 200, Array, 0)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(37): Illuminate\\Routing\\ResponseFactory->json(Array, 200, Array, 0)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(App\\Http\\Resources\\CurrencyResource))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#97 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#98 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#99 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `transactions` where `company_id` = 8839b09d-b33e-4095-871c-26271be56f14 and `branch_id` = f3a2e3aa-b267-4db7-a565-603e0aa93cf6 and `teller_id` = 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219 and `status` = Completed and `transactions`.`deleted_at` is null) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `transactions` where `company_id` = 8839b09d-b33e-4095-871c-26271be56f14 and `branch_id` = f3a2e3aa-b267-4db7-a565-603e0aa93cf6 and `teller_id` = 8a1f0a6d-9f5f-4111-a5ff-0f05a8bf8219 and `status` = Completed and `transactions`.`deleted_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(46): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select count(*)...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(46): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\Models\User and `notifications`.`notifiable_id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `notifications`.`notifiable_id` is not null and `read_at` is null) {"userId":"1bc7b799-dcaf-47d3-9f9d-95f9aea55474","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\\Models\\User and `notifications`.`notifiable_id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `notifications`.`notifiable_id` is not null and `read_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select count(*)...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#83 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 12:57:29, `personal_access_tokens`.`updated_at` = 2026-08-23 12:57:29 where `id` = 412) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 12:57:29, `personal_access_tokens`.`updated_at` = 2026-08-23 12:57:29 where `id` = 412) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `accounts`.`id` = e3aa2c85-1599-4cc6-b645-eaf016131aea and `accounts`.`id` is not null and `accounts`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `accounts`.`id` = e3aa2c85-1599-4cc6-b645-eaf016131aea and `accounts`.`id` is not null and `accounts`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('account')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('account')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('account')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('account')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/UserAccountResource.php(22): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('account')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\UserAccountResource->toArray(Object(Illuminate\\Http\\Request))
#19 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\UserAccountResource), 13)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#26 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/AuthController.php(32): response(Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\AuthController->login()
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('login', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\AuthController), 'login')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#86 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('account')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('account')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('account')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('account')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/UserAccountResource.php(22): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('account')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\UserAccountResource->toArray(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\UserAccountResource), 13)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#37 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/AuthController.php(32): response(Array)
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\AuthController->login()
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('login', Array)
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\AuthController), 'login')
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#95 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#96 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#97 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 12:57:24, `personal_access_tokens`.`updated_at` = 2026-08-23 12:57:24 where `id` = 412) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 12:57:24, `personal_access_tokens`.`updated_at` = 2026-08-23 12:57:24 where `id` = 412) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `token` = 74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `token` = 74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(61): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('null')
#13 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#16 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#18 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(61): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('null')
#24 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#27 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#29 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:00:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:00:59] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select sum(`amount`) as aggregate from `journals` where `account_id` = ba39055f-d334-48c9-8a8c-049bf4794c64 and `type` = Debit and `journals`.`deleted_at` is null) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select sum(`amount`) as aggregate from `journals` where `account_id` = ba39055f-d334-48c9-8a8c-049bf4794c64 and `type` = Debit and `journals`.`deleted_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select sum(`amo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select sum(`amo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select sum(`amo...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select sum(`amo...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select sum(`amo...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3344): Illuminate\\Database\\Query\\Builder->aggregate('sum', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->sum('amount')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(81): Illuminate\\Database\\Eloquent\\Builder->__call('sum', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(525): App\\Http\\Controllers\\DashboardController->App\\Http\\Controllers\\{closure}(Object(App\\Models\\Cashbox))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(791): Illuminate\\Support\\Collection->Illuminate\\Support\\Traits\\{closure}(0, Object(App\\Models\\Cashbox), 0)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(525): Illuminate\\Support\\Collection->reduce(Object(Closure), 0)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(79): Illuminate\\Support\\Collection->sum(Object(Closure))
#16 [internal function]: App\\Http\\Controllers\\DashboardController->App\\Http\\Controllers\\{closure}(Object(Illuminate\\Database\\Eloquent\\Collection), 'KES')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Collection.php(344): Illuminate\\Support\\Collection->map(Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(78): Illuminate\\Database\\Eloquent\\Collection->map(Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#74 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select sum(`amo...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select sum(`amo...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select sum(`amo...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select sum(`amo...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select sum(`amo...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select sum(`amo...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3344): Illuminate\\Database\\Query\\Builder->aggregate('sum', Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->sum('amount')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(81): Illuminate\\Database\\Eloquent\\Builder->__call('sum', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(525): App\\Http\\Controllers\\DashboardController->App\\Http\\Controllers\\{closure}(Object(App\\Models\\Cashbox))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(791): Illuminate\\Support\\Collection->Illuminate\\Support\\Traits\\{closure}(0, Object(App\\Models\\Cashbox), 0)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(525): Illuminate\\Support\\Collection->reduce(Object(Closure), 0)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(79): Illuminate\\Support\\Collection->sum(Object(Closure))
#27 [internal function]: App\\Http\\Controllers\\DashboardController->App\\Http\\Controllers\\{closure}(Object(Illuminate\\Database\\Eloquent\\Collection), 'KES')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Collection.php(344): Illuminate\\Support\\Collection->map(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(78): Illuminate\\Database\\Eloquent\\Collection->map(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#85 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `currencies` where `currencies`.`id` = aa4ad5f2-f06e-491a-b90c-de4cc8a13122 and `currencies`.`id` is not null and `currencies`.`deleted_at` is null limit 1) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `currencies` where `currencies`.`id` = aa4ad5f2-f06e-491a-b90c-de4cc8a13122 and `currencies`.`id` is not null and `currencies`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('currency')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('currency')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('currency')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('currency')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountMinResource.php(22): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('currency')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountMinResource->toArray(Object(Illuminate\\Http\\Request))
#19 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountMinResource), 14)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#26 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/AccountController.php(85): response(Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\AccountController->accounts(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('accounts', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\AccountController), 'accounts')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#90 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('currency')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('currency')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('currency')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('currency')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountMinResource.php(22): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('currency')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountMinResource->toArray(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountMinResource), 14)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#37 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/AccountController.php(85): response(Array)
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\AccountController->accounts(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('accounts', Array)
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\AccountController), 'accounts')
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#97 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#98 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#99 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#100 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#101 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:43:52, `personal_access_tokens`.`updated_at` = 2026-08-23 13:43:52 where `id` = 424) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:43:52, `personal_access_tokens`.`updated_at` = 2026-08-23 13:43:52 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:26:31, `personal_access_tokens`.`updated_at` = 2026-08-23 13:26:31 where `id` = 424) {"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:26:31, `personal_access_tokens`.`updated_at` = 2026-08-23 13:26:31 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `currencies` where `currencies`.`id` = 19bf0423-7c99-431d-b712-002599c6e7b4 and `currencies`.`id` is not null and `currencies`.`deleted_at` is null limit 1) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `currencies` where `currencies`.`id` = 19bf0423-7c99-431d-b712-002599c6e7b4 and `currencies`.`id` is not null and `currencies`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('currency')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('currency')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('currency')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('currency')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountMinResource.php(22): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('currency')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountMinResource->toArray(Object(Illuminate\\Http\\Request))
#19 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountMinResource), 64)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#26 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/AccountController.php(85): response(Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\AccountController->accounts(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('accounts', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\AccountController), 'accounts')
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#90 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('currency')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('currency')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('currency')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('currency')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/AccountMinResource.php(22): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('currency')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\AccountMinResource->toArray(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\AccountMinResource), 64)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#37 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/AccountController.php(85): response(Array)
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\AccountController->accounts(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('accounts', Array)
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\AccountController), 'accounts')
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#97 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#98 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#99 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#100 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#101 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:47:18, `personal_access_tokens`.`updated_at` = 2026-08-23 13:47:18 where `id` = 412) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:47:18, `personal_access_tokens`.`updated_at` = 2026-08-23 13:47:18 where `id` = 412) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:35:10, `personal_access_tokens`.`updated_at` = 2026-08-23 13:35:10 where `id` = 412) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:35:10, `personal_access_tokens`.`updated_at` = 2026-08-23 13:35:10 where `id` = 412) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:28:50, `personal_access_tokens`.`updated_at` = 2026-08-23 13:28:50 where `id` = 412) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:28:50, `personal_access_tokens`.`updated_at` = 2026-08-23 13:28:50 where `id` = 412) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:40:29, `personal_access_tokens`.`updated_at` = 2026-08-23 13:40:29 where `id` = 424) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:40:29, `personal_access_tokens`.`updated_at` = 2026-08-23 13:40:29 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:30:14, `personal_access_tokens`.`updated_at` = 2026-08-23 13:30:14 where `id` = 412) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:30:14, `personal_access_tokens`.`updated_at` = 2026-08-23 13:30:14 where `id` = 412) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `rates` where `rates`.`target_currency_id` = 96e4827c-0cd1-4cc7-93a5-f047cc520ae0 and `rates`.`target_currency_id` is not null and `rates`.`deleted_at` is null order by `created_at` desc limit 1) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `rates` where `rates`.`target_currency_id` = 96e4827c-0cd1-4cc7-93a5-f047cc520ae0 and `rates`.`target_currency_id` is not null and `rates`.`deleted_at` is null order by `created_at` desc limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'first', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'first', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Models/Currency.php(34): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('first', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(658): App\\Models\\Currency->getCurrentRateAttribute(NULL)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(2124): Illuminate\\Database\\Eloquent\\Model->mutateAttribute('current_rate', NULL)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(489): Illuminate\\Database\\Eloquent\\Model->transformModelValue('current_rate', NULL)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(443): Illuminate\\Database\\Eloquent\\Model->getAttributeValue('current_rate')
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('current_rate')
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('current_rate')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/CurrencyMinResource.php(25): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('current_rate')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\CurrencyMinResource->toArray(Object(Illuminate\\Http\\Request))
#23 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\CurrencyMinResource), 13)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/CurrencyController.php(43): response(Array)
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\CurrencyController->currencies()
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('currencies', Array)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\CurrencyController), 'currencies')
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#94 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'first', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'first', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Models/Currency.php(34): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('first', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(658): App\\Models\\Currency->getCurrentRateAttribute(NULL)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(2124): Illuminate\\Database\\Eloquent\\Model->mutateAttribute('current_rate', NULL)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(489): Illuminate\\Database\\Eloquent\\Model->transformModelValue('current_rate', NULL)
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(443): Illuminate\\Database\\Eloquent\\Model->getAttributeValue('current_rate')
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('current_rate')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('current_rate')
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/CurrencyMinResource.php(25): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('current_rate')
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\CurrencyMinResource->toArray(Object(Illuminate\\Http\\Request))
#34 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\CurrencyMinResource), 13)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(255): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#41 [internal function]: Illuminate\\Http\\Resources\\Json\\JsonResource->jsonSerialize()
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(106): json_encode(Array)
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(58): Illuminate\\Http\\Response->morphToJson(Array)
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Array)
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Array, 200, Array)
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(796): Illuminate\\Routing\\ResponseFactory->make(Array, 200, Array)
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/CurrencyController.php(43): response(Array)
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\CurrencyController->currencies()
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('currencies', Array)
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\CurrencyController), 'currencies')
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#97 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#98 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#99 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#100 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#101 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#102 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#103 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#104 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#105 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:35:01, `personal_access_tokens`.`updated_at` = 2026-08-23 13:35:01 where `id` = 412) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 13:35:01, `personal_access_tokens`.`updated_at` = 2026-08-23 13:35:01 where `id` = 412) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 13:50:02] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `token` = 74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `token` = 74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(61): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('null')
#13 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#16 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#18 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(61): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('null')
#24 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#27 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#29 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\Models\User and `notifications`.`notifiable_id` = 32642323-5660-4280-bedb-dd4514a905a3 and `notifications`.`notifiable_id` is not null and `read_at` is null) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\\Models\\User and `notifications`.`notifiable_id` = 32642323-5660-4280-bedb-dd4514a905a3 and `notifications`.`notifiable_id` is not null and `read_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select count(*)...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#83 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 14:28:04, `personal_access_tokens`.`updated_at` = 2026-08-23 14:28:04 where `id` = 424) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 14:28:04, `personal_access_tokens`.`updated_at` = 2026-08-23 14:28:04 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('NLsJKmIrKIByjCQ...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('NLsJKmIrKIByjCQ...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 14:24:15, `personal_access_tokens`.`updated_at` = 2026-08-23 14:24:15 where `id` = 424) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-23 14:24:15, `personal_access_tokens`.`updated_at` = 2026-08-23 14:24:15 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('NLsJKmIrKIByjCQ...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('NLsJKmIrKIByjCQ...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 32642323-5660-4280-bedb-dd4514a905a3 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('NLsJKmIrKIByjCQ...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('NLsJKmIrKIByjCQ...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 14:31:09] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\Models\User and `notifications`.`notifiable_id` = 32642323-5660-4280-bedb-dd4514a905a3 and `notifications`.`notifiable_id` is not null and `read_at` is null) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\\Models\\User and `notifications`.`notifiable_id` = 32642323-5660-4280-bedb-dd4514a905a3 and `notifications`.`notifiable_id` is not null and `read_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select count(*)...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#83 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1e5e9fe1-61ef-4697-bd4d-3f42418988e1 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1e5e9fe1-61ef-4697-bd4d-3f42418988e1 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-23 16:11:47] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 426 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('426')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('T2YwUejGt1UvbiO...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:22:14] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `companies` where `companies`.`id` = 8839b09d-b33e-4095-871c-26271be56f14 and `companies`.`id` is not null and `companies`.`deleted_at` is null limit 1) {"userId":"32642323-5660-4280-bedb-dd4514a905a3","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `companies` where `companies`.`id` = 8839b09d-b33e-4095-871c-26271be56f14 and `companies`.`id` is not null and `companies`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('company')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('company')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('company')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('company')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/CustomerResource.php(38): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('company')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\CustomerResource->toArray(Object(Illuminate\\Http\\Request))
#19 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\CustomerResource), 420)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(39): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(117): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toResponse(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#83 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('company')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('company')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('company')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('company')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/CustomerResource.php(38): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('company')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\CustomerResource->toArray(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\CustomerResource), 420)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(39): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(117): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toResponse(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#94 {main}
"} 
[2026-08-24 14:22:18] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:23:05] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 14:23:05] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#26 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#73 {main}
"} 
[2026-08-24 14:24:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:12] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:12] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:12] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:13] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 425 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('425')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('5FI1gVqeKtldfqA...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 14:24:13] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 412 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('412')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('7xGyyv5377aPuvs...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 17:38:35] local.ERROR: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' (Connection: mysql, SQL: alter table `journals` add index `idx_journals_status_date`(`status`, `date`)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' (Connection: mysql, SQL: alter table `journals` add index `idx_journals_status_date`(`status`, `date`)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table `jo...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('journals', Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/database/migrations/2026_08_17_160925_add_indexes_to_journals_table.php(14): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(501): Illuminate\\Database\\Migrations\\Migration@anonymous->up()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(427): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(783): Illuminate\\Console\\View\\Components\\Task->render('2026_08_17_1609...', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2026_08_17_1609...', Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(189): Illuminate\\Database\\Migrations\\Migrator->runUp('/home/junctionf...', 11, false)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(132): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(641): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(1121): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#32 {main}

[previous exception] [object] (PDOException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:587)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(587): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table `jo...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table `jo...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table `jo...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table `jo...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('journals', Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/database/migrations/2026_08_17_160925_add_indexes_to_journals_table.php(14): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(501): Illuminate\\Database\\Migrations\\Migration@anonymous->up()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(427): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(783): Illuminate\\Console\\View\\Components\\Task->render('2026_08_17_1609...', Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2026_08_17_1609...', Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(189): Illuminate\\Database\\Migrations\\Migrator->runUp('/home/junctionf...', 11, false)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(132): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(641): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(1121): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#34 {main}
"} 
[2026-08-24 18:15:54] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:16:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:16:14] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:16:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:16:43] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:17:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:17:13] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:17:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:17:42] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:18:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:18:13] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:18:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:18:43] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:19:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:19:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:19:29] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:19:42] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:20:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:20:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:20:30] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:20:40] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:21:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:21:13] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:21:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:21:42] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:22:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:22:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:22:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:22:43] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:23:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:23:13] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:23:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:23:42] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:24:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:24:13] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:24:21] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:24:43] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:25:06] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:25:13] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:25:20] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-24 18:25:59] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 18:26:00] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 18:26:01] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 18:26:06] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 18:26:08] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#20 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#22 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#69 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#31 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#33 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#80 {main}
"} 
[2026-08-24 18:26:08] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 18:26:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 18:26:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\Models\User and `notifications`.`notifiable_id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `notifications`.`notifiable_id` is not null and `read_at` is null) {"userId":"1bc7b799-dcaf-47d3-9f9d-95f9aea55474","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_type` = App\\Models\\User and `notifications`.`notifiable_id` = 1bc7b799-dcaf-47d3-9f9d-95f9aea55474 and `notifications`.`notifiable_id` is not null and `read_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select count(*)...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select count(*)...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select count(*)...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select count(*)...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3383): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3311): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->count()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->__call('count', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(52): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(517): Illuminate\\Database\\Eloquent\\Relations\\Relation->forwardDecoratedCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'count', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/NotificationController.php(13): Illuminate\\Database\\Eloquent\\Relations\\Relation->__call('count', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\NotificationController->unreadCount()
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('unreadCount', Array)
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\NotificationController), 'unreadCount')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#83 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 18:59:09, `personal_access_tokens`.`updated_at` = 2026-08-24 18:59:09 where `id` = 421) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 18:59:09, `personal_access_tokens`.`updated_at` = 2026-08-24 18:59:09 where `id` = 421) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(608): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'update `persona...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#21 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#68 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1e5e9fe1-61ef-4697-bd4d-3f42418988e1 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 1e5e9fe1-61ef-4697-bd4d-3f42418988e1 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 19:07:10] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 424 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('424')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('o7HXp7NIpOlVHiR...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 20:36:53] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:03:53, `personal_access_tokens`.`updated_at` = 2026-08-24 20:03:53 where `id` = 421) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:03:53, `personal_access_tokens`.`updated_at` = 2026-08-24 20:03:53 where `id` = 421) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#13 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#15 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#15 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#17 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}
"} 
[2026-08-24 20:40:36] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:02:37, `personal_access_tokens`.`updated_at` = 2026-08-24 20:02:37 where `id` = 421) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:02:37, `personal_access_tokens`.`updated_at` = 2026-08-24 20:02:37 where `id` = 421) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#13 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#15 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php(57): Illuminate\\Auth\\RequestGuard->user()
#15 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php(89): call_user_func(Object(Closure), NULL)
#17 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Request.php(607): call_user_func(Object(Closure), NULL)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Providers/RouteServiceProvider.php(45): Illuminate\\Http\\Request->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(117): App\\Providers\\RouteServiceProvider->App\\Providers\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}
"} 
[2026-08-24 20:43:55] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:09:37, `personal_access_tokens`.`updated_at` = 2026-08-24 20:09:37 where `id` = 425) {"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:09:37, `personal_access_tokens`.`updated_at` = 2026-08-24 20:09:37 where `id` = 425) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 20:46:40] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:04:40, `personal_access_tokens`.`updated_at` = 2026-08-24 20:04:40 where `id` = 421) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:04:40, `personal_access_tokens`.`updated_at` = 2026-08-24 20:04:40 where `id` = 421) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 20:50:28] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:08:16, `personal_access_tokens`.`updated_at` = 2026-08-24 20:08:16 where `id` = 425) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:08:16, `personal_access_tokens`.`updated_at` = 2026-08-24 20:08:16 where `id` = 425) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 20:51:32] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:12:08, `personal_access_tokens`.`updated_at` = 2026-08-24 20:12:08 where `id` = 424) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:12:08, `personal_access_tokens`.`updated_at` = 2026-08-24 20:12:08 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:21:00] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:47:23, `personal_access_tokens`.`updated_at` = 2026-08-24 20:47:23 where `id` = 425) {"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:47:23, `personal_access_tokens`.`updated_at` = 2026-08-24 20:47:23 where `id` = 425) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:21:30] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:52:13, `personal_access_tokens`.`updated_at` = 2026-08-24 20:52:13 where `id` = 425) {"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:52:13, `personal_access_tokens`.`updated_at` = 2026-08-24 20:52:13 where `id` = 425) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:21:46] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:50:51, `personal_access_tokens`.`updated_at` = 2026-08-24 20:50:51 where `id` = 425) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:50:51, `personal_access_tokens`.`updated_at` = 2026-08-24 20:50:51 where `id` = 425) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:22:25] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:48:22, `personal_access_tokens`.`updated_at` = 2026-08-24 20:48:22 where `id` = 424) {"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:48:22, `personal_access_tokens`.`updated_at` = 2026-08-24 20:48:22 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:22:33] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:51:31, `personal_access_tokens`.`updated_at` = 2026-08-24 20:51:31 where `id` = 424) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:51:31, `personal_access_tokens`.`updated_at` = 2026-08-24 20:51:31 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:23:23] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:51:41, `personal_access_tokens`.`updated_at` = 2026-08-24 20:51:41 where `id` = 421) {"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:51:41, `personal_access_tokens`.`updated_at` = 2026-08-24 20:51:41 where `id` = 421) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:24:03] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:52:14, `personal_access_tokens`.`updated_at` = 2026-08-24 20:52:14 where `id` = 424) {"exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:52:14, `personal_access_tokens`.`updated_at` = 2026-08-24 20:52:14 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:24:34] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:50:26, `personal_access_tokens`.`updated_at` = 2026-08-24 20:50:26 where `id` = 421) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:50:26, `personal_access_tokens`.`updated_at` = 2026-08-24 20:50:26 where `id` = 421) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:25:54] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:48:34, `personal_access_tokens`.`updated_at` = 2026-08-24 20:48:34 where `id` = 424) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:48:34, `personal_access_tokens`.`updated_at` = 2026-08-24 20:48:34 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:26:53] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:49:17, `personal_access_tokens`.`updated_at` = 2026-08-24 20:49:17 where `id` = 425) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:49:17, `personal_access_tokens`.`updated_at` = 2026-08-24 20:49:17 where `id` = 425) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:28:24] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:50:52, `personal_access_tokens`.`updated_at` = 2026-08-24 20:50:52 where `id` = 424) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:50:52, `personal_access_tokens`.`updated_at` = 2026-08-24 20:50:52 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:32:53] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:52:33, `personal_access_tokens`.`updated_at` = 2026-08-24 20:52:33 where `id` = 424) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:52:33, `personal_access_tokens`.`updated_at` = 2026-08-24 20:52:33 where `id` = 424) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:35:05] local.ERROR: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:55:12, `personal_access_tokens`.`updated_at` = 2026-08-24 20:55:12 where `id` = 421) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (Connection: mysql, SQL: update `personal_access_tokens` set `last_used_at` = 2026-08-24 20:55:12, `personal_access_tokens`.`updated_at` = 2026-08-24 20:55:12 where `id` = 421) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#10 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:612)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(612): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('update `persona...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('update `persona...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(600): Illuminate\\Database\\Connection->run('update `persona...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(552): Illuminate\\Database\\Connection->affectingStatement('update `persona...', Array)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3602): Illuminate\\Database\\Connection->update('update `persona...', Array)
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1061): Illuminate\\Database\\Query\\Builder->update(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\\Database\\Eloquent\\Builder->update(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\\Database\\Eloquent\\Model->performUpdate(Object(Illuminate\\Database\\Eloquent\\Builder))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(83): Illuminate\\Database\\Eloquent\\Model->save()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/helpers.php(320): Laravel\\Sanctum\\Guard->Laravel\\Sanctum\\{closure}(false)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(82): tap(false, Object(Closure))
#12 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#59 {main}
"} 
[2026-08-24 21:53:29] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 21:53:29] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `deleted_at` is null) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `deleted_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(30): Illuminate\\Database\\Query\\Builder->get()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(367): App\\Http\\Controllers\\ReportsController->bootstrapAccounts()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getBalanceSheet(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getBalanceSheet', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getBalanceSheet')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#63 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(30): Illuminate\\Database\\Query\\Builder->get()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(367): App\\Http\\Controllers\\ReportsController->bootstrapAccounts()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getBalanceSheet(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getBalanceSheet', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getBalanceSheet')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#74 {main}
"} 
[2026-08-24 21:53:29] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 21:53:29] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `countries` where `countries`.`id` = eb91e2e2-c544-445a-9cf9-7570d4312a78 and `countries`.`id` is not null and `countries`.`deleted_at` is null limit 1) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `countries` where `countries`.`id` = eb91e2e2-c544-445a-9cf9-7570d4312a78 and `countries`.`id` is not null and `countries`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('country')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('country')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('country')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('country')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/BranchResource.php(29): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('country')
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\BranchResource->toArray(Object(Illuminate\\Http\\Request))
#19 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\BranchResource), 2)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(39): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(117): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toResponse(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#83 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php(29): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\HasOne->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('country')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('country')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('country')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/DelegatesToResource.php(139): Illuminate\\Database\\Eloquent\\Model->__get('country')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Resources/BranchResource.php(29): Illuminate\\Http\\Resources\\Json\\JsonResource->__get('country')
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(60): App\\Http\\Resources\\BranchResource->toArray(Object(Illuminate\\Http\\Request))
#30 [internal function]: Illuminate\\Support\\HigherOrderCollectionProxy->Illuminate\\Support\\{closure}(Object(App\\Http\\Resources\\BranchResource), 2)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(600): array_map(Object(Closure), Array, Array)
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(778): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Collections/HigherOrderCollectionProxy.php(59): Illuminate\\Support\\Collection->map(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(102): Illuminate\\Support\\HigherOrderCollectionProxy->__call('toArray', Array)
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(108): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toArray(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceResponse.php(39): Illuminate\\Http\\Resources\\Json\\JsonResource->resolve(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(245): Illuminate\\Http\\Resources\\Json\\ResourceResponse->toResponse(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(117): Illuminate\\Http\\Resources\\Json\\JsonResource->toResponse(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Illuminate\\Http\\Resources\\Json\\ResourceCollection->toResponse(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Resources\\Json\\AnonymousResourceCollection))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#76 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#89 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#90 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#91 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#92 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#93 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#94 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `deleted_at` is null) {"userId":"82eb89b7-217e-4501-8e4f-96313c0afdd5","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `deleted_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(30): Illuminate\\Database\\Query\\Builder->get()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(238): App\\Http\\Controllers\\ReportsController->bootstrapAccounts()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getTrialBalance(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getTrialBalance', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getTrialBalance')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#63 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(30): Illuminate\\Database\\Query\\Builder->get()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(238): App\\Http\\Controllers\\ReportsController->bootstrapAccounts()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getTrialBalance(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getTrialBalance', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getTrialBalance')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#74 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 82eb89b7-217e-4501-8e4f-96313c0afdd5 and `users`.`deleted_at` is null limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `users` where `users`.`id` = 82eb89b7-217e-4501-8e4f-96313c0afdd5 and `users`.`deleted_at` is null limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#18 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#65 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php(82): Illuminate\\Database\\Eloquent\\Builder->first()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(591): Illuminate\\Database\\Eloquent\\Relations\\BelongsTo->getResults()
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(529): Illuminate\\Database\\Eloquent\\Model->getRelationshipFromMethod('tokenable')
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(454): Illuminate\\Database\\Eloquent\\Model->getRelationValue('tokenable')
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2227): Illuminate\\Database\\Eloquent\\Model->getAttribute('tokenable')
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(161): Illuminate\\Database\\Eloquent\\Model->__get('tokenable')
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(69): Laravel\\Sanctum\\Guard->isValidAccessToken(Object(Laravel\\Sanctum\\PersonalAccessToken))
#29 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `deleted_at` is null) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `accounts` where `deleted_at` is null) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(30): Illuminate\\Database\\Query\\Builder->get()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(367): App\\Http\\Controllers\\ReportsController->bootstrapAccounts()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getBalanceSheet(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getBalanceSheet', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getBalanceSheet')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#63 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(30): Illuminate\\Database\\Query\\Builder->get()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(367): App\\Http\\Controllers\\ReportsController->bootstrapAccounts()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getBalanceSheet(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getBalanceSheet', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getBalanceSheet')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#74 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select `account_id`, SUM(CASE WHEN type = 'Debit' THEN amount ELSE 0 END) as total_debit_fcy, SUM(CASE WHEN type = 'Credit' THEN amount ELSE 0 END) as total_credit_fcy, SUM(CASE WHEN type = 'Debit' THEN lcy_amount ELSE 0 END) as total_debit_lcy, SUM(CASE WHEN type = 'Credit' THEN lcy_amount ELSE 0 END) as total_credit_lcy from `journals` where `status` = Posted and `deleted_at` is null and `account_id` in (0000737c-1042-4f83-9f2b-5615fe20787d, 00204d0d-8c4e-4226-969a-b92eab8255e5, 0028d65b-3ead-4253-ba57-857e0c1456c1, 0037f9a2-9aae-4cd5-aaf9-46e89a4673f9, 005643d7-10b4-4a46-b4d9-cbdc98401f5c, 007a4a11-3f96-4e56-a0e4-58b3b0be344f, 00913845-37b7-45b2-807f-50ee789125b1, 00a0d394-7cb4-4d4b-b83e-b6ebb08ab22d, 00a95d50-5f7a-4859-8f44-1c404791f2bb, 010854a0-92c4-4ea9-ba59-df8bc32c4a4b, 010f9af8-19c2-4d59-9209-7e65b63a5e43, 0116be5c-eac7-478f-8391-7773770287f1, 012dbdf4-d282-4a74-86b0-65e498020d62, 013ac07d-7388-4fc8-b074-ccbbaa27f25d, 01797436-caa8-4f83-8e2e-b2aea61b5d1b, 01bc1e28-4747-4e86-89d6-cbeb79d4ae88, 01c0bcb8-8d2a-403d-b0c5-6b3463bc483f, 01d95e07-ca25-4061-add8-0cdd69c53885, 01dca4e9-e6ac-4574-b42e-41201c80d41b, 01e08d3a-bc8e-4447-a226-b7ac9fba355c, 020c33c7-4754-4cb1-9784-f33ab9f1cd44, 020e989b-a157-48d1-ab92-53c353206b9c, 02207e62-10e4-42de-993a-dd76a7d663bd, 0230d602-eb17-41c0-9fae-c45be1868ad0, 02352afa-e21a-4a8d-9fc9-f32167ab21ac, 023f251a-1202-4784-aa38-6b8901a48b3c, 024f9359-f1db-4346-8e99-fef59345b6d0, 027f47f1-3ded-444f-bf2c-edbf53792b10, 02821648-1da2-467d-af2f-d8f6f59ce17e, 02c0ee0e-9b7a-452d-83b2-5c9ce02bd050, 02c39ec7-40cd-4856-b648-46112e71ff21, 02cfab92-1a30-4841-a553-5e18ffd30a41, 02f3e45c-12f2-40a2-be96-b4e05eb0bc6c, 02fb6af5-1714-49a8-9e8b-70340edab195, 03168a01-20d9-4981-ac8f-0b16399563ee, 0316e4fb-1a41-45b4-8e14-ebc0c5cf845c, 039b5021-314f-48f8-aa34-a5e57727047c, 03ab2885-7b88-4d7c-83a8-9de11d5a4784, 03b05baf-2faa-4bfd-b9ba-6fddf0b25174, 03c27bc0-3fbf-466d-9065-2317274ea507, 03cbb011-a2cd-4dea-92cd-62b42bbc79eb, 03e6efc7-9c1f-48c1-aaea-9f01e6e6e63d, 043b892b-5680-4c3d-bb9d-f488926595f6, 04505765-61e8-494f-8164-ae924d2cc5a4, 046e7a88-ce01-46a3-b5fb-d55aa357937e, 046e7c79-bc09-4e4e-9384-19bea5bf3226, 049fb20f-3139-4158-96f4-357a56dc9af3, 04c14f74-73df-4c6a-b4d8-e644b6a7126e, 04d45260-df7f-4d01-a43c-9335d2100e15, 04db0e4a-109d-4541-bf7b-3cc29d6a9338, 04e15225-ae4b-463c-9cb5-6727117140aa, 04e1c95f-f6fd-4163-a401-f60f8e7056a8, 050f3ac2-4bd3-469c-bed3-b48db88f6b61, 0542ee19-4431-466e-9def-a3e6b189b50d, 0560f649-bba9-427e-8a9f-ab83a229f08b, 05696a96-94bf-4977-a621-88513b74b834, 05714188-ccc5-4b0f-8be4-f93985c6bae7, 0592a720-110a-465d-a716-ebe813dde7a2, 05f6e05e-d1ef-4ea5-8ec6-e643564e1a9c, 06224155-fe51-4c3c-a5b6-563e8c184bce, 062bdaa1-9038-482c-8914-ca89ae31727f, 0648e502-6b79-4ce1-8b4d-7dc67afbbfac, 065e2d35-436c-4496-9f2c-6cfb5a67b278, 0665107a-8873-47e5-aeed-35af381c32c0, 067e15c1-b99f-4811-97cc-bb44666b2ded, 0699469e-b99e-4554-9c4e-b544806f29a2, 06c4f0e6-2c52-42db-90a9-697f46d00ad2, 06c88813-7b68-41f8-8d5b-a43611ae1078, 0741de71-b084-4309-ad92-1c6623b19f11, 075402f6-b9b9-4331-9bb9-c8b4d9d9b051, 075d4207-3434-4c50-8f4e-fca403ac8703, 07b0d180-ed0d-4944-8a2d-046a7d22f4f1, 07d88ea8-382c-4c00-9349-662adcf27d41, 07de0bb7-05ea-47d1-a3a1-1aa1d5da1c89, 07e5b6c3-d225-40fc-8bb5-adfa370075e2, 080fdf8a-d4ae-4908-be47-6c0fcb4e8717, 0855ed3a-a12d-4248-b1fa-9ec8b9f69fd1, 0855ed41-0174-4369-b60f-f63ef3b0a357, 08568190-3174-43ca-991a-6e735b5c7031, 08592a87-d571-438f-9f30-a8563f4a873f, 0863d404-857e-4401-8ad3-8f6533151779, 088446fa-e76d-4eb2-83c2-320f107c627b, 08cd4d14-26e9-4111-ae9c-7d44cd2ff74f, 08d3d427-ff39-4482-9300-a66ac3d55663, 08fd7e93-5895-4611-aafa-99af4039b630, 09037bde-d591-44ff-a9dd-6dc58c2ad8c9, 09103a54-4409-4a72-8cd6-27e9c6839d88, 09246978-fc98-4d2d-837e-120c285a00f5, 09306806-05a4-4d92-95fb-8eddbcf96c02, 095cac2b-682a-421f-8baf-28031c8d695e, 0982d9e1-79ae-45af-9ac5-c5eb55151035, 098832ae-540a-43e7-a72b-416287ec7b18, 09a52fa7-21a3-4caf-aacd-dbb0c87e9c8d, 09d7c999-bc90-4557-b0f9-ba923a77ca20, 09d83a23-9fa1-40f8-92a0-6aef503e4c72, 09e63483-c350-4ccb-96b6-651212f77b09, 09e88e11-72f0-43f5-8ebb-54ce5d83de80, 0a1c88d4-f9b5-4da2-8fb4-0300bcfa4773, 0a1ed650-999b-49fc-89ab-b8f7d98fd83f, 0a5962e1-33e8-4bc4-bad3-2738abc46da9, 0a6588db-ca15-42ea-92b6-07eb0c330cda, 0a7a9d85-9e36-471d-b09b-89101f864f64, 0a8bee43-7e2d-47e7-9ea4-10cb43b7dd09, 0a8f7dce-afe4-470c-902d-2d359675d756, 0acaa53a-1d6d-4bce-9a65-36c43b6e7123, 0b00153e-1781-442d-9a41-2adc2a33ff42, 0b0a02e6-a41a-40a4-b656-ea7976430864, 0b3b4b77-6eaf-4361-a0d1-db10416162ed, 0b62fc3a-d49c-4260-961f-c82c5bfe4940, 0b88864c-baa1-44cb-8ef9-4f2dfe5114ef, 0b8d9f48-e273-4ed3-b1f5-736e617f0a10, 0b920063-60ab-4341-b41e-bc0c01a74cd3, 0ba01456-ed10-4f44-a00d-e42f4504f433, 0bb0b7b9-2cb4-4323-814d-39b59206d04a, 0bc96932-49b6-484b-8968-afbd7901a1bb, 0bcb4ecd-c93d-455f-94db-c766233be598, 0bd7e1ad-129f-4ac7-aae7-12014f08f830, 0c3fddd3-d9bb-4aa4-93bd-f0471d449558, 0c65cf5c-305b-4295-b9bf-19ca0d4a69d0, 0c6b38ff-a377-4402-a214-bbdb9c1f101d, 0ceec352-9e02-4a14-9166-5196a49f0415, 0d2148b3-c691-4ab3-8479-c5ce6dc8214f, 0d69ff09-f632-4f3b-a1f2-9c35a8b40521, 0d74e8f4-cebb-4364-bfd2-613ca389d9cb, 0d87c3f4-4c0e-47dc-8f4d-6487b28e40aa, 0d9c679f-de91-4da6-a2f2-13b2a16d5672, 0d9fafde-5427-4f9b-a424-b020748999d7, 0da90522-d407-402b-b954-dc5ce5f232e7, 0dc6555c-3f5c-44fe-a795-199ff9f956e2, 0dfcbb0f-bcbd-4822-908c-2a7110a192f1, 0e018ea5-a88f-473b-9d3b-15385deb2d8e, 0e150cf4-5b36-4ef4-b426-89e50ee6775a, 0e2b0413-23d8-46bd-8091-3c86a1f4f763, 0e35299c-a5f7-41a6-8b3b-9396449e988c, 0e5f3c25-6a49-4a0a-8e47-38b0cb586484, 0e737227-b041-4e85-9581-5d374d0e5a4b, 0e779117-2449-4816-9566-271d57fada22, 0e9b8288-aac5-44d9-8e60-1e2ba0c37fef, 0ed82a3b-b090-4e28-b5b9-934a6170c099, 0ed9e421-9a5e-4dc5-a54b-2b28ba80c6e2, 0ee3d6cd-6ee9-47ba-81ab-406d9105edea, 0ee47edc-953f-44df-9af1-57ae19393330, 0eed1bf2-c494-44ac-8bf7-351aa4f5924c, 0ef2e0f4-32fa-41f8-a633-fead8a88120d, 0ef8addf-e23b-488e-8d44-280fcfd411ca, 0f16532d-5f07-4fc0-9dd8-c884f9d5d2c6, 0f5adfd0-b07a-4f71-aba6-cb39bacad8d8, 0fa74ff2-e027-4a09-9646-bee8fad1602c, 0fb5af10-bbed-4298-856d-b5178f247d33, 0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a, 0fda0c45-4f60-4df2-bdcf-ba578152062d, 0ff73414-b0d5-468a-9fb0-e80d0a6de6f1, 101faadd-2f9e-4f9f-a520-421558dfb1c8, 103792b7-4673-4d9b-ae8d-32edee102195, 1045a241-de9a-4d6c-83ac-efbcc038367f, 109f98a8-79e8-497d-a0ac-44c47c5c4328, 10adb4ec-f2d8-4420-81b6-8462fcd0508b, 1104e180-aae7-456b-ad56-a8f597e442f9, 1141e7f4-feab-464c-aa3f-a23cb7fe3705, 1187b604-0928-4d28-ade4-67edf3ec0015, 11a0b0d4-3095-4bf7-9752-0700fe5dac68, 11b16879-5f39-4e7a-9371-2457d63f3b99, 11f29168-11e6-4929-8a27-5ab3d5ff4b9b, 1226affc-52f7-4153-b747-27a5feff64b1, 12660ce8-24f2-49a0-8201-2b8bdf8706a9, 12795967-535f-46ef-a042-7080f832eb73, 127fb62c-8334-4955-8f40-741674a3b686, 12ad44ec-b559-46e7-b917-b892f980ef0a, 12b939b1-8aa8-4347-a1a3-c08ebc657574, 12e04a1d-dbff-4a01-87fa-9d779df26dcc, 12eb506d-bb2c-4256-97ef-8f32661f72cb, 12ffc8b7-4c87-4dc7-a36e-ceb79138e149, 1313ac00-3ec9-441f-850d-2b69e420a952, 1325a45b-db2c-47ac-9336-c33550a949a0, 1381f2a5-2e71-486a-8ee6-7d15b8a315b4, 139a5f2b-ac74-45d8-b6a1-25408780f2cb, 139f76ae-7c8d-4dfa-95de-23940ca0c4b4, 13f81b52-af3e-4263-9f06-1b8c59c0480a, 140d9730-e1e5-4401-9dc2-3bd9e5e66829, 1413b75f-f288-4dfa-ae0e-65eda5267f3e, 1421730e-02bf-4088-96df-321d875d938e, 1433be94-4a32-43a0-bf81-5899c7aebd00, 144726d7-aabb-4bd2-ac75-ffae5a61c725, 14946c83-62f6-465d-a97b-640a803ad902, 149b939d-0c48-4327-99c1-0a513d3d6e67, 14a4a036-6c1c-4156-9e9a-09e6c06dc887, 14ddc99b-8143-4c58-a9da-85b4e34efa3f, 14ffad59-de49-43d2-8bf0-9c9e75572057, 15000508-f6bf-4eac-9133-ef116dfad7fc, 1528f4fb-86b3-4825-969a-f16e3494cb71, 152d7bf4-4f5c-48b4-ade3-3eea7e3d7065, 1568b122-c0da-4801-a3ec-5bb9d1acf6ff, 15898911-496e-4f58-ad63-9635203f05f4, 159f8a02-ce0b-4f95-a4c4-6fe737ffae44, 15a3f1b7-4f2b-430a-9d76-29a663500f4f, 15b105fd-2e1e-4da5-9bae-9dae8a2c1784, 15b2123c-2d77-4d6f-bc5e-125a4803fe55, 163368b8-664c-453d-8722-d603b8e1aa6b, 165d98b5-0094-421b-94c7-18bacfd7c825, 165dc5e5-7e8d-4740-afdd-087696fa20d0, 16617dcb-8839-4f4e-8007-70d16c4765f9, 167134de-4357-4e3d-aad4-a6146792a91d, 168f709e-3170-4313-a2bb-91e882228951, 16abee0b-1890-4443-b76e-6f451ebb9a38, 16be1918-68cf-4b49-9db5-7d955be90d95, 16d3e2af-d07f-4159-a155-0dd5dffeb5d1, 16d6f945-7246-49f3-9cc0-d6e0d020f27d, 1710b223-bf7f-40eb-b9ef-2f465feaf66a, 17181861-1cf5-42b4-a732-50d660ae6cc7, 1721c853-d955-416f-a57c-da41340ea16e, 1743b9a6-d795-4c98-a872-cc628367b039, 175f0660-5b5a-4eb0-a9c0-72efd37fbd86, 1779db7b-c257-4865-a07d-ef1aaa9e5452, 17949039-164a-4208-a5f7-1f688c60349a, 17ad9372-6e97-4aab-bc0d-95e11bd90026, 17ae585e-5845-4271-a816-71eeeb652f4e, 17b4340c-057b-4b8c-95ab-955302a5f1d5, 17cf4bdd-97ca-4ce2-b9d6-ecee3750f74a, 17f9a6ee-3c9d-40cd-a49d-25f2e2180e8c, 17ff9b05-4267-4546-8879-3e5387b790c0, 182a746f-f052-4eb3-ab74-c5ff811aac95, 18433824-f9b5-446c-903b-bbbc119e12c3, 187d848c-29d9-42bd-bdb2-d44d862e8571, 1897a86b-e3a4-4d28-86a7-429d2338602a, 18c0f853-0c3b-42a1-be54-0016a2197c27, 18cffbc9-6953-49ee-a061-dc3936a7bea2, 19420c69-d704-4256-b54f-9b3f8b2ad608, 195c00d7-1320-4025-99ef-1de2b9fdbc12, 19629634-b4af-4564-8e89-ff3e91a559c6, 1962d07f-2ca6-44a5-91c6-34de16acb235, 1965d68d-28c1-4375-8173-baca475e75a4, 198ee447-0899-444b-aa48-5d6650b1fa93, 19a71345-74c2-4b85-b46f-37cdf9746e5b, 19a83612-b46e-4195-adc4-8df18fd817d5, 19ae416f-68a1-4d61-a665-d63f4aa14716, 19d2fefa-7bcb-43c1-ad18-1d0201108a8d, 19e2269a-8777-426f-bff7-d974439c84b9, 1a55f498-0ca9-41b7-95d9-d0ceb184dfeb, 1a57c183-b564-4c80-9fa5-0d6eeaf49ae6, 1a639480-556a-4479-a499-7e475b9ddc3c, 1aa71467-5122-493f-8109-04ddc96c21ee, 1ac911ff-2615-4bdd-b58d-5d322ddac4d5, 1ad32c73-a758-446e-9adf-b89c9bb6259e, 1ae423d3-c4bb-4cc5-a57c-cc70e0367c9b, 1af6e5cb-7bcd-457a-9b24-0dd2ac8e65fb, 1b10c6b2-3a38-4581-b8cc-e6da34f50f46, 1b3305b0-68d2-40b4-b4e9-ae0d0604f7b5, 1b77337a-0a19-4cfe-a99a-9566e5411a22, 1bc03e70-5fca-4521-8dd8-7a442687dee3, 1be35088-a8c2-4ded-94ee-72219bd126e6, 1c0b4c1d-c644-4642-a86d-5a09f5b28d10, 1c2f78c2-c841-4489-aff8-5dce49d387c2, 1c37099b-6711-40f7-9297-fadf46bc8e55, 1c3cd530-ee13-4757-be0f-e57bdf6778be, 1c4f30dd-c2e6-4b4b-8332-0fe8cf15a1eb, 1c6dcdcd-d48b-4176-b777-9673e1ee6c76, 1c6ed6b4-12fd-4803-b071-9cdc42320670, 1c7e1242-83ca-4972-9e8e-2e7b9e067681, 1cb77245-8d0b-408c-9b7b-cab297c78f0e, 1cbfab55-4c38-4df1-993b-c184c72a24e3, 1cd649b2-2046-43ea-bdc7-8601204af275, 1cecf81e-256f-490d-9a80-f496d7117950, 1cfe40e0-34e1-42f4-96f9-d556a62a7ac8, 1d0dc3b5-f312-4249-9138-007f7eaa6e90, 1d4e090b-931b-485c-b790-034807356a08, 1d6be7e4-c36f-41ed-be5a-01722685909f, 1daf7510-ebc8-45a0-ac88-fffb33cd1dec, 1db7ac24-a9c9-4d1e-9f0b-5064456d017c, 1dcc14d6-b38f-4f9d-b612-b19db3e8c824, 1de68eef-da86-40d1-9be6-a0dce8c435e3, 1dff2260-44ee-4586-a4ad-d2267d068859, 1e0cb56b-da63-44c0-9f5f-8e2b07af7aa7, 1e11feac-6e01-4478-bc9d-9384c97fd0a6, 1e14c2fd-9cbf-4149-a28f-0e3b9fb4b710, 1e47f64b-8705-444c-b868-1d99365e7c4d, 1e58ec39-561b-4128-ab55-acd83788a838, 1e7ad13d-5921-42ce-9a3d-8d6b827ed54c, 1e884556-021d-448b-9845-19ee117902c8, 1eb070c4-9244-46d5-b1ec-5bfe008ab046, 1f18d0ca-b59c-4f06-81aa-03c83251fa04, 1f3429e0-60c0-40e9-839e-2759c784b03f, 1f493a08-6e67-42eb-a7d2-9f3b92dbb118, 1f4a9c3d-e015-4b24-a587-cf1f493cfe79, 1f5518f2-f584-40e9-a4f3-5da886816aad, 1f5c3144-ea77-49e0-9d02-ab307c047bb8, 1f902069-0e94-4d0c-bed5-d488a95dfc24, 1fc0305b-4d25-4b97-bea1-e3961083f79b, 1fc251f6-416a-4a8d-9015-213f8d406e2a, 1fd1c8a8-c13b-4285-ac8f-29935972fcd0, 1fe0034b-8829-48cf-964a-f45334b1a504, 1fe214b5-7fd4-4f7e-acc4-02a5fb5bbadc, 1fea9fc3-63f3-4af3-ba65-83f0abc901dd, 1ff9b8c6-ce75-4fa4-9b15-7f0e7535f93f, 2004bba5-c4b3-4b94-b3ab-136f9d5d03d1, 20242aad-e729-45b6-ad06-8fd82aa0eb29, 203d3493-b4ba-486d-bd37-aeff3a53ad32, 205349c3-037d-4fbc-b86e-7e5ab790fc9b, 20702e1a-a5ea-4cca-bbe5-3c5934d83dd2, 207b64c1-3b29-4ab0-873b-435b42b8cb25, 20891214-19d0-474a-8ea9-447c4a47f7d4, 208bcca4-48c9-4ed0-8484-deca080a11a7, 20903861-c0ec-4cc7-81f3-43dfe307e460, 20a7004f-0c06-4dcd-9769-3401aaa855ab, 20b00baa-7a6f-4675-8fd3-b1d0818a30bf, 20f6188a-6279-4cae-8596-9f6362554381, 21060a41-aa8a-49f5-ba8f-7b5ac73c3de6, 21364a1a-416a-4bfa-aed6-bd2ad1a58c57, 213a0168-9ec1-40a6-ba42-6417aeaef8fd, 213b8940-92b9-41e3-821b-677439eaab8e, 2158dce9-9b4d-4ccf-bbb4-bdc008a4a17a, 21a569f4-d7b2-45bb-8d65-bd7ef0237cf8, 21b6eb70-52e4-42b0-93d1-8e2351e3c301, 21cd5529-15e6-44bc-add9-5e8c92ddea82, 21f3c546-09d5-40f8-ab59-b8c73c5b8c02, 22417d4b-32a1-4352-8dc6-97bc181b9a9a, 227c0af3-04c9-41e2-9372-86e212c4102c, 22976607-725f-4ba7-9f3c-d9a01bce8e0f, 22ef4cb6-b410-4775-8244-926e5b767e95, 2303a7aa-4c1a-4df8-9065-2c1aec742fbd, 231461cb-19f8-492f-b3cc-4af8a5fdd100, 231fd9e9-6f5d-4be1-b297-b80db8e36550, 233bdd5d-9e78-48c5-8073-2e5ab946ecb5, 234db756-d0c4-40f7-8696-6ddf080d9caa, 23832c8b-231e-4ca9-a5e0-afee4daa9a01, 238955ed-dbf2-4a2c-97b2-12e20996cfc2, 2399b31b-cf62-4f80-86bd-83ea191b549a, 23be7290-674a-4dc3-8613-6cdbbd80ff60, 24027ae6-9826-4678-8b24-1df1b75ddda0, 2407d5e1-2588-4c1c-8f62-5005f161aaf0, 240a985a-159a-48dc-b39e-7167bfedff0d, 241f2bb1-af25-4f82-b516-2326f1aefd60, 2422420c-b7c9-4c0b-87fd-ed082c752752, 2428eb72-6787-49d3-aaaa-e4d45063283a, 24296d88-a551-43b3-8128-257f5bcd6ce7, 24336f12-88eb-49a8-a508-e0ac1be922cc, 24840244-bf5a-464c-b25c-1382f31449ee, 24b8b5be-bc1d-4716-bd9c-5e65b297c61e, 24c9cacf-73a4-4c88-abc8-dbf595186c5a, 24ca1a5f-8e13-4d74-b695-43798edb93a2, 24e5ed94-d8ad-4e33-9d31-0bb5d494503d, 251dfc8d-5df7-44b7-baca-0e2331997eb6, 255ab491-7e15-4b6d-8c36-cf8a8046cba5, 25b9b1aa-79db-4c1f-9d91-a850b8275573, 25deddd9-f36e-4642-99b8-dc28a845cc34, 25f08433-b5fb-4051-91b4-7b0aa7390a41, 2620aa7a-3b68-4bc3-b2d6-92c1f468be17, 262f78cc-73b2-4ba2-9c4e-a763a430b86f, 265e577a-9508-4ed4-aad4-80d6f8137639, 26950343-5f53-4c03-a425-f242c5cfe2fe, 26d5afdc-4aaf-49b9-81f7-420f69c559b1, 26f45b5e-bb17-422e-acc7-e259d5944fae, 271132c2-c076-4a5a-ad88-41e639edf357, 276322d0-dfad-4895-bc8c-4b0371d35a4a, 276637a8-4f7c-4188-931e-699610b55f31, 279085da-e4ca-4bbb-ab5c-585f158bfc72, 28157a23-bef2-4c90-8796-e876a8d09140, 28192a2a-74fb-4bf8-8711-035f578862d8, 2828dff9-c4f8-4c53-997a-c3077b959e4c, 28472eb0-9297-4884-85c2-32410379d5f9, 286bafba-1f1e-4a1d-aa55-03c9809dc285, 28828f18-10c3-4f12-99d0-d104a77ddaa5, 28833dce-1427-4624-b09b-46dde075a0b4, 28c6c5e8-13ef-49b9-b0c1-bd2495e32bd4, 28d0b366-5217-4501-822b-dc60d22f51ae, 28e981ba-b1eb-42c6-b7c1-46b086e631bf, 28ea59b3-9e94-47d7-98bc-0772d5931efb, 2916e582-0367-4961-b13e-4cba133e2818, 2931e3bd-4656-4420-8fa3-602dcaa64f97, 297c4f2f-1c9f-48ad-bd06-ee75b4f8cd18, 29c69b74-03e2-4068-b9d7-e6d6e2e95809, 29d1c432-1b1d-4b32-b9f8-3a1c009a97b9, 29da081f-c328-4957-a04d-c1a7583943fd, 2a06b7ea-3fcc-498c-8086-e372eb9fef80, 2a0c9933-5d1d-4ac9-9501-54cc4e8d960a, 2a15a2be-a89d-4995-9ec7-f5148a3745f1, 2a27e7ea-a439-42d8-87d2-47403c776006, 2a32d78f-4e73-40de-ae22-334fd106c763, 2a4774c1-aa4d-4207-9f87-0dfb40d901b3, 2a4c7b44-e1e7-4d21-b276-b734b8ec490a, 2a618da0-2a38-4c8a-9c76-54934434b7fc, 2a6f8b0e-c2c9-4718-b837-4126b11e8c3d, 2ab80ba0-593e-427b-aecf-dedf2a738658, 2acd6f97-7d9e-4860-8fc3-aaa67f0fccb4, 2aefe27e-c4f9-4882-82ac-13ba3b659ec8, 2b067a4a-91a5-412c-a6b6-9c0cdfc0cd21, 2b5b6683-7c81-4e56-8221-747519bdbdb2, 2b7657e8-d072-4d7d-9bd6-6016769b5321, 2b8adca3-eb46-4529-a8f2-a30ea6e4a10c, 2b8c7422-48f7-4fd4-80e3-f739d7079864, 2ba7641f-861b-4fd2-9afd-c511f3fb6a36, 2c106f60-f45f-4414-beae-4a3300680d54, 2c187f00-5f73-4239-b5e9-343705cf62ca, 2c23e531-b276-4da1-b443-83cea2830ecb, 2c3d4fdf-61c1-479a-9af2-9d8b24597935, 2c8610a9-3521-4af1-9050-37f331762d6c, 2ca2f3ff-b0a1-474f-a69d-63626a6f00c0, 2cb9497b-81f0-4682-8a63-8f94dca7b0c5, 2cfad729-886d-4072-a3c6-19d38e13ace1, 2d3d1bb1-76ed-469c-89ed-ff23a560c786, 2dddf48d-e4b7-400f-86d1-5e5ddb0132e5, 2dde2ec2-82ee-483b-8163-43a2d7f49793, 2e0ddc16-818b-4692-8a45-769c3fb54f56, 2e24a8c3-7e53-4bc8-ae6f-7e8921f78cf2, 2e60a2b4-3ce1-40d5-9967-4a1b3b9abea3, 2e7887da-d0ca-4300-9fb0-e2b86edca7f8, 2e897a9e-3e2e-411a-9f9c-c29dc59888b2, 2e8d9c0a-d556-4854-b9e3-72ed81c9dfa3, 2e9a5367-31a3-44b0-9b51-ee6ef031ee43, 2ea155b6-211c-4b01-bdd4-df6068a3fc46, 2eaba2b8-4cb1-4ce6-bb61-2909cac588db, 2ed79ba0-1fd9-4ee1-9640-c9b04ccecb57, 2f32389d-aa2f-4e54-b3b5-99075113d0a5, 2f4fa8e4-768e-4c89-bab6-4a6cfc089a60, 2f689062-da64-449e-b300-3d071f9c2127, 2f9518be-3ee4-4bc9-ab95-e9d24e89740d, 2fa9a3ad-7940-47c9-add7-723cf776179d, 2fd0984e-1553-4c01-9206-cce94e6a9823, 2fd989fd-d9e5-4c1a-a220-347060ae9ea2, 2fe5d52d-7fe3-49cc-a369-7eeb3dfe19b0, 2fec79bb-d419-42c8-bec9-204307b0acdf, 300c5b1b-fb05-4bfd-8a87-46a6d66846e7, 302d54c2-ebf6-4be5-95c7-5ec2913b26bd, 303f2f24-f8cb-458b-9538-c2d77051ae17, 3083b175-1eee-4f52-8156-466f1ac12fef, 30865b88-ecfe-416f-a7f1-b9aebb1061a9, 309e71fa-412c-40b1-9083-aea4cb4e85f1, 30a26c5a-45b9-4060-a191-151b0a8625f3, 30b69181-e72c-4adb-81ca-7d1a3a0b7898, 30b97838-04b6-46ee-b9f7-3d6fc2f5ea59, 30d5bc68-24d4-4515-8b09-8f7837f94613, 30eb245d-09ce-435d-967c-3840dc5a6630, 31cc8003-028a-4cab-974d-6bcb2a490d88, 31dfc6a6-3f41-4f82-b546-fbecd81480f6, 31ec5025-fd11-4b4f-8f3f-bf1f7a44036a, 3203bf63-be4d-439b-bb96-d3e09c881b6c, 32191590-94b9-4b5e-a118-7a912a3d6695, 32347ded-1087-412a-a584-6fce1446c317, 32626f76-17cb-40fd-a1a9-68842c601d23, 326cfe1c-b03c-4015-846a-e770127e0acb, 32a940c8-0555-4888-a34f-a727915fccc9, 32db4889-7dca-4243-ae02-d19a25fc0d29, 32e90d59-b0d9-4fe0-a72d-8898f08b8254, 32e9d5e0-ef9a-4b2a-bf7c-c68f743aab2f, 3305db13-537b-4834-9d8d-6395381eda78, 331b1dc2-102e-471d-b9d9-0456deabe3a3, 33b338d3-9ef1-4955-9882-e3c580ba1334, 33cd398f-9599-4c39-abc7-ba0605cf89df, 33d966d3-be1b-4532-a291-54fa4278f9b7, 340aff31-3e04-4ba2-8fd1-6d2bb6b9533b, 340c464c-a888-433c-9148-f6ddd5f9955f, 34568831-8282-4acc-8b0a-2d46e4c5d8e7, 3459e695-5daa-4bf6-bccd-03ed8981a958, 345ccf2c-a25e-4137-97bb-7055819ddc36, 346a7c77-d481-4352-bb6e-75ead3cd9837, 347fd1cb-664a-45ce-8544-0c45b530fc78, 348791a0-a9ac-4474-9971-d55893ac7223, 348a8287-c270-4450-8475-dff47b55e3fb, 34ac9d31-a331-424a-a8a6-3511c7346e87, 34f715fe-49e7-487f-832c-222f0bbc59df, 357716af-37b7-496d-b436-8cdcfae92678, 35baaf9f-2a18-49ef-849c-61bcf2cbf980, 35c71f0f-3776-42d3-8ecd-20b9da3ea43e, 35f81ac9-dcaa-4ac9-a08e-b0587599fc6f, 360e3ac2-608f-4e08-ae20-97f876683d0c, 36295f42-6631-4e28-812f-d6f3eda7fffb, 3632f0ad-4984-488c-9a30-3f933b509b84, 3658207b-8bbf-4d8e-9370-047bbaac9704, 365e04a0-9d69-4cb6-8bb3-4539e9e867e1, 3678b388-b03f-4e68-bc9e-5c87fa4c60b4, 36b68f94-abc9-4eaa-9337-d3c6c3872ce1, 36c32d95-7115-432a-b41c-d46275a0964d, 36ca0f0a-424b-4d0f-ad7a-5ef71a7d1893, 36d575d5-e010-4aed-8199-a6396230ab17, 36de656c-35a3-48e4-927d-acdd947911fe, 376924a7-cbfb-4358-824d-19b0325a1934, 37a862b6-ecf3-4892-9ca5-29a4188c18ad, 3805099d-b5c7-445f-985c-5506903023d8, 382a5eec-5cac-4024-9140-707a59fd11df, 38330af5-2fe3-495a-8c18-44c5d784e96e, 38486dee-d0e1-4e8c-a135-778241b1bcc1, 38536d2b-37ed-42b0-bcec-884b7f397f16, 38db9a56-6f7b-4b57-8b9c-80728f2ba892, 38e4393b-8503-4911-b45b-af5d0088f38d, 38e709f9-3063-44cd-bdd3-41053d43702b, 38f40550-5769-4a96-9736-667acdee5bb2, 38f7464c-2699-4cb0-b3b7-08e98be77bfa, 39083b05-c07d-42aa-82e3-33fc98582924, 392b0588-6363-434b-990f-1d7d05763c6e, 393d6ed0-f7fe-4e68-b087-a41adc0f5017, 394a96b0-e668-4926-814c-f9f38a98f97a, 396437b0-1c18-43f3-a6e7-181abf47d94e, 3970548f-c406-4eb6-ab4b-f4468f293a7e, 398b359c-6c80-46db-b4bc-7f2646cb1f04, 398e8bc7-8431-4720-8a15-b6cef21f6304, 39f48a5f-9c17-40f7-9fbc-bf8f0dda6f72, 3a1d4397-32fd-4aa4-aa17-c35ddd5dd471, 3a2058c6-4929-4028-8f46-2804ebf3a68b, 3a603024-c937-4749-953e-ad8c368b4499, 3a6c92d5-a83d-4f5c-a26f-1682f8bcaa4d, 3a824422-3306-4829-ac0c-f1bc03ca15ee, 3a93ccbf-9a8e-4f7e-9a57-bfc5bab3c36b, 3ab20457-9905-4b45-8c62-d31ae9ddd6ed, 3ac3450d-1c4c-40e9-912b-454887eccd35, 3b0edb1f-d77a-454b-8a5b-81a2a1822a16, 3b24c1d4-daeb-4073-9dc4-16a66146e375, 3b318856-b2b5-4262-b3ee-e0df552560c4, 3b3491c7-bd87-47cb-840e-2f24a804c7b8, 3bad989f-648b-476a-a2ab-8c1f44a624f5, 3bed98bd-ed6c-4a37-a545-f0cfe5fcab0d, 3c673a67-4f0e-4f79-8040-a6f03193d216, 3c9d4140-3890-4f82-946f-2e359a340749, 3d0e3c74-f9c1-48b8-b891-9e653cb3072f, 3d1abddd-17d4-4407-8a14-1a010e1dcfa9, 3d4d7162-1952-4ece-a6a8-d7935aa92994, 3d580044-cd8c-4166-8e92-da91f17d63dc, 3d860a53-609d-438f-8b7e-fc11588b691b, 3d925d13-e467-4003-a71e-4aac4ba057bb, 3d93db70-b444-4fde-9011-905a6e341177, 3d9b6b13-bd87-41cf-9801-f768c729e4e8, 3db45d22-441b-4e37-a819-02c3ee1c1d88, 3dd6807e-30d0-4d14-ae18-9bce207022a4, 3de62687-ec40-4bc5-867f-dfa3983079be, 3e06807d-d5b8-4bd9-93b5-08a4909960f3, 3e1a9c4d-c5df-4d6d-afd6-a4ddc0db5c10, 3e255f95-25e6-4f2b-bbfe-2a5ba260bc75, 3e4997d4-fcae-48b9-b94b-db5233824b28, 3e49cdd9-45a0-4c90-a5f8-fa238ab90746, 3e7e7ffe-8415-4583-88f8-104186ed5c49, 3e7fa056-84bc-4d83-8af2-c0755dbf7a7b, 3efe33ff-3bac-4f8f-95db-a5ca7f555fea, 3f18b8c0-226b-4793-a540-4e67dd0faa1a, 3f1da177-d5d5-4fdc-9607-ebba77820eaa, 3f7759ea-dced-4f62-b77f-453bb181b162, 3f9c047e-f01e-41f6-93f1-687ade67ae4a, 3fbe3abe-662b-4ff8-9ae8-54151db0e614, 3fbea298-8536-458d-9dbe-891530bb3553, 3fc5de89-1fed-4ee2-8451-64e01db32b4c, 3fdc73e2-4277-4626-b090-b8eae0491b72, 3fe29d52-592f-476c-84a0-84ede7b70487, 3ffb4fe9-661a-4f02-a6ee-da64f31d4620, 400b2941-6cd8-486c-af81-37a2f0138bd0, 40268111-759c-4470-a1b2-2a3e1851a1a9, 402fce4a-2bf2-4b02-a13e-59ec7e6b4eb7, 4035fe79-26e6-47cf-9a30-ebae0f9d3901, 403dfa14-7f14-41da-9f90-b38e7d2555a4, 40620b3e-5469-43e8-9f4f-ea1254797467, 408a2009-d099-4cd5-bc02-6246dbc28a26, 40bc7186-270f-4206-8116-a307ec2296f5, 40bc9072-edeb-4421-93d1-c53f309d4b21, 40c9bb14-308f-4e7f-93c3-a7bad7d5e131, 40d4dac5-dcaf-4179-a155-a10748479ae1, 40f002be-214e-4fe7-b4aa-911e61fec5a5, 411150db-94d8-4c02-a1ea-1459cf34e2b6, 4178caa8-80f7-47cc-afd7-e74c32534bfa, 418c7c63-0988-4634-adc2-44a51078060b, 41a2d67c-08c5-4ddf-a1bc-6634dc9a539d, 41ca6fb4-00ba-4162-b181-d9d616d82bde, 41f0baab-63b5-4cac-b14f-511ab1ee0a41, 41fe6ca6-249e-42bd-906e-eab36d20c2e7, 425b4c96-df17-448f-a3c0-302780954427, 425e73b8-ffbb-4740-9a52-9a586641aa23, 4268378f-03d4-4306-ab15-dab36d5820e9, 42912c0b-e304-4913-8f40-c035f5e673a9, 4293cbab-f65d-4f12-a297-9b7ae7590105, 42a23428-00eb-4ca7-b2bc-ee1d25523e1a, 42bee6a8-6469-44d3-be18-a381772bd3b1, 42c227e7-b088-4d2f-bed8-d792cf9d4b97, 42fcb4a2-2320-4ea0-991d-468d5898f87e, 431e7425-4df8-45ea-a0d9-fe4bac5297ec, 4372dcfd-658c-46f4-83b4-b94e0e309c83, 4392e48b-e86c-4ca5-b85b-00fc2fd5e52d, 4396d8eb-f9e2-4e7e-a589-2bced6cdf5d4, 439cda3f-a6b6-48b7-8999-c11eb3620cf6, 441877f4-c2b5-4177-a389-3cb3f53fa7e2, 4441179e-7ff0-41c6-9c4b-3a6d9ce7fd43, 444a732b-8ba7-4e89-b92a-d95769b20b2d, 4478aa10-1c40-48a6-9783-5af42a9f4281, 4487e0b0-533e-4ec4-a541-3d18b81bdb9d, 449bbc39-12d5-484f-8838-85d5ee50e522, 44b7d402-37fd-450c-9085-76e5557ca0f3, 44be086c-181a-4edf-aecd-6c60fd66dcbc, 44e488ea-d558-41ae-a8ea-59be6fd5df83, 451d2ff4-77c8-45b0-9cad-9820685ef04a, 45232504-0fa1-44ce-8e2c-de90290efda2, 455efe55-0850-45ca-bb14-e7c46325e646, 45693ff8-6d30-492f-832b-bed6bfe5761e, 4586b602-ee31-44c2-8886-a4230d0494e0, 4588477e-2c1a-43b0-b351-68ff82cc3fef, 458aaca8-8883-4f6b-b916-5395d11de383, 459f8a16-4c34-42bb-84c8-e3e85de54047, 45e2f0e6-35f7-4422-99a1-923225889739, 460d461b-7853-4f3a-8152-12419aadb570, 46105154-aacd-492f-81b7-60bad4e1c185, 461e1cfe-5844-428e-9e4f-8582a10445dc, 461fa7b3-b203-4331-9499-2237d5d1830c, 46230d47-4a8c-4d65-b62c-6a26078c5f54, 4624e5d5-d62e-46c3-a3b9-9c9e308081fc, 462c559c-fee1-469a-a78e-23e456c70206, 462f3736-3f34-4538-aa04-b74638cb320e, 4657d790-8035-47b0-ac35-c7f0920a07db, 46591d21-2e22-4723-8bd4-912561835eaf, 4673aaa4-93c4-4fcd-abcb-d9ca136fe7c0, 46767e09-7289-41d9-bd97-34630dc2bfc7, 468e7a9e-8535-482d-92b8-bfddb30ba7df, 46b3833d-4950-4216-9ba6-aa8d15a4d5e1, 46bb578a-ce8d-4202-8772-58cc9661d75b, 47022651-b511-4531-9900-c77784a56342, 4727bd73-5be7-43a2-a5bf-2a0ae78d7ed5, 47a41865-a2a0-459a-94aa-66ffaa84750a, 47cea34d-4acf-49af-9a80-5aefc7a791ac, 48056b65-a6cf-4942-be63-ee7e5ada9301, 48099fbd-f834-4a30-abaa-4bec7512e997, 483f1585-93d9-489b-9f97-46a0e994b264, 48419e81-a18e-4c41-8b7d-54841ffcbc6d, 485a2ba0-0d8a-4db1-8fbd-cca6f583d119, 485c3b51-0d27-4353-b1e8-8a396c443158, 48768604-b29b-4b5d-ab89-18ab0f3234c0, 487efeac-c2bb-4712-81a8-1b6f353ce090, 489b1d25-b92e-4402-a151-629d600f705c, 48af637d-7a35-4e6a-9fa5-bf41b98ee460, 48c0e9e0-328d-4db9-931b-502aa003a4cf, 48d727fd-baad-43fe-b642-d380f7fa901f, 48fe4fdd-0bf7-425b-b0a2-ccb008b5ab14, 4939cbf5-cb54-4d46-9c45-500c91311d91, 496eedb1-81e3-42d1-bf90-bd269f6505df, 49736c62-f289-4ade-b514-81a58d61a78b, 49865bf6-08ce-4fe2-ab42-1cb958b5705e, 49a187f9-c442-4f7b-8806-0ff5fb2be6ed, 49a1e948-7c02-4f14-ac8a-d8fa8e2fadb9, 49c354f8-1c44-4573-a431-52450688bb4b, 49e7dd7d-0259-4203-8a8b-25753da87659, 4a3f0237-5706-40e5-a64c-f2d98d27b2f4, 4a4d1185-2ed4-4aec-94d7-d5e3ca4ef5ce, 4a65ed5b-02ba-4ad1-a620-8d0bc3897b8d, 4a753c48-01c9-4e28-8382-28738a8754d1, 4a7b9f32-21b9-49ba-88d3-018be7738b90, 4aae9e02-c4ed-4376-b487-e6f49f19e088, 4ab75136-6835-45f9-a534-ca9258cbff02, 4acedd66-e6da-4891-a606-5ed4ff690e0b, 4ad198a1-e770-448f-86a6-e0be0f32986e, 4ad45611-9657-40af-b36d-8e28d812367e, 4b198a8b-6a57-4fed-8658-44436d075387, 4b343808-8149-45c9-bcac-c9f4ba6774a8, 4b68b225-82dd-4954-a39a-31be87d8c2e1, 4b76fc6c-cefb-4308-9907-9b1c59750ab3, 4b842947-8a41-4bf0-ae45-4252b049dd2b, 4b94616f-9ddf-4ead-8160-fb57aea90544, 4ba8d991-e01c-4f01-90ad-8e4bf3b7ef58, 4bc498ba-10a1-4704-8d91-5000ea148fbf, 4bda64bf-01be-46f2-be0d-e190f59c551f, 4c2a2c2a-dafa-4487-8b19-06791cadced3, 4c2e87aa-4eb8-4a6e-a9ec-3cbff9d3add4, 4c8c0115-c68c-4c5d-9ebf-87af5c62b4e1, 4ca4e5ad-7e4c-4d21-acba-b7d05efb22cc, 4cb17fae-f09c-43aa-bd7d-f3c18bb43622, 4d26bff3-56b7-49c5-bd12-c0acd613c30e, 4d57170d-4cb9-4be7-8570-38559f542bdd, 4d64e64d-33d0-4a27-b458-27807062c53c, 4d7238c0-0471-48e5-b1c1-087dd5e5ad0f, 4dbfaf3c-6f87-4774-bdbb-c938d9b42793, 4df1cf6b-6f8b-4028-9d7b-fcfd9b5aa980, 4df520a6-6dda-4c31-82e6-550648b4cc34, 4e0449a5-aee1-4aab-8f4e-0f2053c7abad, 4e186e5e-843e-44ef-9b48-44ce07ecaf86, 4e548f73-66b3-4f97-8bf9-34fcdc0b12e5, 4e7187aa-81d1-40a7-9b07-d63f09188e12, 4e727a75-9f16-474b-8de3-e41e6bcddebe, 4e759b0e-0386-42a3-a940-b07d5bf26adf, 4ea6eec2-7fb4-4253-977e-56e1b66cfc6a, 4ea9108c-7a32-4fb3-99f6-43915454b2c1, 4f026ef1-1532-48f5-a941-f62d1c946061, 4f104a6b-72b3-442a-9548-cf468dc6c664, 4f1c7298-5816-41c4-8547-196b2f4d8113, 4f2ca3c5-9f46-4e28-b10e-f5ae39987297, 4f402e4c-2b36-4388-8e78-a411a69b1823, 4f42db86-e22c-4ae6-8504-607ba31f6114, 4f45254c-130f-4b2e-9d7d-bbb8f8c3f275, 4f56df72-c028-4f06-b393-3356e5066015, 4f80dea4-6bc0-4804-9b91-6b098ee4857d, 4f98ec05-b534-4175-a972-09af33116a81, 4f9afa9d-625e-4bc6-bf6e-402bef2b63d4, 4f9ea452-884e-4b16-acd9-332047ccbab8, 4fb716ae-1960-49f1-ae41-f5565e0eb7cf, 4fba276a-1fb4-4811-a146-eb0ef97a1910, 4fd2f0a7-fd00-425f-b59a-684bcb32b864, 4fe01cc3-8c68-4e27-afdf-e8df223f736b, 504a2400-327b-41af-affd-90bbf22f4b36, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 5061fca7-b431-44bc-bfae-98f1d524b0b7, 50732894-e397-4614-8b4c-acb04b10426d, 5077759a-8987-449b-94f9-82f515033359, 50c48c48-5e8f-4b7b-9636-85795f903321, 50e3da32-721c-4d46-8118-73117446ffe5, 50e6e3ac-b228-4690-9bc7-3c08ad05ebd0, 51255de9-e1de-442a-a5c7-549e46c2a719, 515c109b-cfd2-418c-b3f9-26ea8f1bf64d, 516b7ba8-42f2-4bec-a599-0c94709af153, 51749d4b-3fc6-4bf4-93d0-b88909f78c09, 517f52b4-6750-474c-8fe3-ae854111defb, 518df9c0-a571-48f0-af67-41093195bf5f, 51977818-6429-44bd-a476-22466e95daa2, 519fec0e-0e22-424b-981f-c7f21d0fcb0d, 51a615e3-7488-4901-8d87-d6ad51648185, 51d60b18-4942-43ec-8987-936bbee77105, 5219e5f9-75eb-4d02-84fa-e1432abd1893, 52308bcb-435e-44e7-a671-eeb56931376f, 52497f5b-e4e2-4b68-baa0-422adb27a107, 525a2e63-9c09-4da7-a9b4-b848c10e7218, 52b33316-5ba0-40da-b0b3-bd0a14c967c1, 52dc33e8-188e-484e-9c10-d38fc21d0a24, 5301e8b3-3970-48dd-8a76-2cb851bc0f50, 53218a94-18ec-4f82-ba96-7b0a6bf174a5, 5356ce91-550c-43de-81c6-7c846f994143, 538bf023-3a23-4f70-bff2-63ecd6817bb4, 539f2f6b-c098-4249-8397-eb4536ac0f7f, 53b322a2-2419-4b9f-a1d6-7966f2dd9b74, 53cb9bc0-119f-4472-a742-2a4345733d4a, 53d7698c-78af-437a-a93b-0b9f91fc7605, 53e2eca1-fbad-4fa2-945b-98f9e2458e2b, 54109ade-99aa-4e0a-aea7-f89419335f8f, 54153171-8b56-4769-a190-f9904ea88af6, 54187002-354e-4880-8e7f-e0c102ca78b4, 5464f061-95fa-4826-8e70-318c91e92f09, 546aff97-0a48-4881-9b9f-15e67b55191d, 548ba0a9-771a-42df-8245-f01b7e52c3f3, 54912a96-320f-4158-93e8-71522358097f, 54c039d9-90cc-4418-81b5-1f77da361cbc, 5500f4f9-c2ef-4e2a-9cd5-a6a8f72a14e5, 551675b1-4aa5-4825-9b8d-91e48cec8225, 551e622c-5b48-45b1-bec1-808d54c41d39, 551f5233-2c56-4fb5-93cc-e7dc4565211e, 5538fb20-b125-4906-99ce-ee44ec5f7c30, 554d9500-abc9-4fe0-8b89-5ef88075374e, 5561890c-7b39-473c-a484-036a13c1af3d, 556d510e-f925-4acb-b59f-2a46874d541b, 556ed94b-62fc-462f-a945-bacd58929b85, 556f2e9e-94e8-415c-a1c9-05588da872d5, 558a9eb7-8813-48b8-a0f9-32bac6c7b436, 558fc6a8-1afd-4d79-9bb5-7e253d878208, 55ca4b20-9ad4-40d7-8451-81a58c2b1c6d, 55d9c882-dca0-4c1d-b246-d46c06ba70b1, 55ea36c9-dabb-4203-9526-99c417f67722, 55edb439-219a-4c21-b905-44024eb9dbae, 560ae975-dc73-41c0-9761-0fce13bf10fe, 561b586f-1019-459b-ab55-c1d45417a248, 562890e7-706d-4061-bc7b-01d028845367, 56579b3d-978f-4827-85ec-b895554b3d11, 5696187e-b738-454b-b642-a672081515a6, 569dc9b6-ffc7-4a0b-833f-de0022ad3cfd, 56d455a4-72d1-4a88-bf35-bef87fa40664, 56f4a536-6fcc-4f23-b1bc-f325df8bec9a, 571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2, 5730acd4-fb8e-440f-837d-7bd6222f55c3, 574641c0-c748-4bad-a8a4-6a4a6128de71, 574fb854-ab0c-4690-b9ef-6b7181765195, 57501d3e-5011-4e21-869f-befb91ae327a, 57611137-99ae-4dde-acad-bbac6d174367, 577b0dfd-6990-4735-96ae-c15bd773155a, 578885bc-779f-4c3a-9f3c-78733d7ce41d, 578b2d15-7833-431a-8b34-fffa87fea29b, 57a4feeb-0fbd-4cf4-be3c-d46fce9d345a, 57d76d4d-c22c-401f-9c4c-a6c53ec02a90, 5847a58a-5197-45d9-9d12-26ccc40e161a, 5862e0d3-366f-499c-ab6d-60edfda8874e, 58702e15-2a78-4de8-9c3c-79ae46aa120e, 58c2483c-d930-41ac-b11d-be3f601a45bd, 58c7387f-fc48-4193-9c55-b83e3f2bea64, 590268f5-e4be-4867-b854-f8fbbd76d9ed, 59073b92-53a4-477c-8f51-beba7cb4479c, 597151c1-6774-465f-8037-65a1c638f34e, 597c2683-45bb-440e-95c2-1bd71002c391, 599e2de4-76e8-43e8-b633-0776a3434943, 59a113c9-e4f9-4c2a-825a-77f090db3ef8, 59d99ed8-be09-48fc-88ce-3815bd1c75d3, 59e03974-c1de-45b3-8436-25a9e12e8af6, 5a16d431-dc70-4cc8-82de-6ff699005363, 5a8201e9-d034-4d70-ab5d-e64f3f37e8d6, 5a8fd5ea-5f32-491a-bbb0-6c830d8ac5ec, 5a9afb4e-48fe-40b2-97b3-3db701a25856, 5aa9f368-2311-459b-9478-8bc21a5e94ab, 5adb2ba3-5c4d-49ef-b387-1d0153eb26b1, 5ae2aa08-d101-4db9-8b94-586da2307b4d, 5ae4fa4a-310c-404a-aadf-e2132290ea06, 5b2031b2-fd4c-4111-8136-a1231b60f0ab, 5b2839c5-8684-4baf-bfc6-e6d7297c8a10, 5b891096-3c2b-4561-b278-ab2f9511ee5f, 5ba2c3df-0318-42cf-b666-00044bfd735f, 5bba855f-16d5-4638-8964-8573fd312ffc, 5be08264-8a60-46c8-be49-25f661422d52, 5be90c7c-e6d2-4a2c-b503-bc587d6094fe, 5c29e11d-fe25-4310-93df-b56d02268ac5, 5c37a113-38c1-4941-8207-329b27f41bde, 5c500592-4196-44f6-9000-7837c2f2ed52, 5c73d742-6ee7-48cb-a42d-c69f5294ea03, 5c76479e-bb83-4c3f-9815-863b86ae3d58, 5c7b8fb4-e271-4136-bd4e-0d66ace10fcb, 5c7cba7d-66d1-4526-a41a-ab20929e8fd3, 5cab0a7e-45f9-4cb5-8b64-c5389e36b887, 5cb014f5-ed6d-44f2-aa4d-f06ab2f59a2a, 5cd63610-4e3c-4a4a-b84b-bc0e79624141, 5cfcec78-257a-42fc-9158-a80393f2cae7, 5d1df941-1717-424b-af58-c785b6da7ebd, 5d1f5055-6300-4e94-a002-763646f826b1, 5d4c20fe-1644-44a7-986c-2d80a65efada, 5d51e6d9-65cf-4a4f-97f8-7ca6efcb1c65, 5d665938-3549-481c-a0c9-a3f98dbd795f, 5d8a72c2-84ec-4911-9c79-812d566f6704, 5d97397a-902c-446c-a61d-ce173e62f79a, 5d9f98b0-d8a4-4b3d-b796-b5237578cbec, 5db8fa2c-f104-483d-9574-759d80de227b, 5dce3a9f-8773-4ee4-9264-d81b171aab4e, 5dcf6548-69d0-42a2-8d39-de70b2f4ff6d, 5deba1cb-ff8e-4007-87b2-d0640add4e99, 5e2835d6-67c1-44d0-8a4f-dbd9d3b687c7, 5e36c5b7-4e7e-42e8-b0de-797fec9710fe, 5e447bf2-c83a-4c5a-b286-f6d270c29332, 5e696fcc-7009-4658-ad16-d7a236010258, 5e7e89cf-0cb6-45cf-a85c-408431720c43, 5e876dee-7bb1-48bd-b91c-8a6bab7a6553, 5e93a738-d78c-42a0-9183-d516838e37f9, 5e98d14e-0581-4de7-9df0-5dd679a46483, 5ef10049-58c1-4386-b7df-65cdea387e27, 5f1ff378-ef4d-4331-a2d8-877f204230be, 5f284253-9dab-4e41-bb07-121827397f9f, 5f28d901-a7a4-4366-b039-1982c7a5ba13, 5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e, 5f7e5094-434c-4bde-8277-0b74b064af0c, 5f93fa66-b8cb-421c-853c-ede60262f93e, 5fbf80d5-a580-4cba-8a97-df39d8f5f63f, 5ff9b235-815e-4d87-947b-a51bc7e45bc7, 5ffb7c1e-8266-4617-96f4-310e398c16ed, 6003f922-0df8-4eb4-877a-cb270ef225cb, 60077864-0d49-4033-9fe9-223e83abf25c, 601cbb39-d95d-407c-8515-1924b45b7c2e, 602acd21-3305-4fea-986a-b0f0e9f70af9, 605d4cb3-ac88-48aa-abaf-963595cf901b, 605e51a0-6181-4950-9074-b010430107bd, 6070f8ca-15fe-4041-959e-f8aafc081da8, 607fd761-9122-4073-96dc-8e0637f79f22, 608e518a-ce5b-4ab6-b32e-866c1ba610e2, 6092de48-ab0c-47b6-a785-d32ea1edc356, 60939566-9459-445e-a479-470804fac820, 60a60b78-5792-4fc5-9655-69cf20741569, 60aab776-a9ac-4c2c-8a5f-0e2436ac07a9, 60b74feb-8d78-4b3b-862f-06c4ad41f860, 60db5172-2e1d-4a2b-9c3b-23234f74454b, 60eaac2b-3950-40bf-bf67-70c6568860f8, 61285f03-fcc3-4ef5-9f28-fa9ba9d438f5, 612be5a0-376f-4b03-bc7d-142f0741cdce, 6143a9b4-d83a-4742-808c-07f6a4b967cd, 617e889f-31b0-411e-8636-6bc585c6f36d, 6198aaf1-dafc-4f54-bc5e-f7e6b131e701, 61c24cf2-fa37-408c-87a9-1732952a4b65, 61ce8d6c-b8da-48b7-92a6-ff28d033d7fe, 61f24f9a-8b0f-4c17-8000-8dee880f780e, 62273270-86fc-4556-9c12-0c0e59c07949, 62287c8b-dbb9-4a89-b31b-d59656204ca8, 62541eed-e3d1-4a30-b25b-242d6eb009ef, 6287ed42-8150-4114-a0d8-4c96f660c049, 6293f026-164d-413a-ba50-444e3c06f20d, 6294136d-2213-4f43-8801-a4901d9658b3, 629bff18-5ad5-4804-abe7-ffe455c84075, 62b2f81f-f433-4deb-85d2-9f16329d7477, 62c15ea0-59a7-40f2-b6cd-13b6c684dea6, 62c9226b-99e5-4487-9fef-494fd0cb5d03, 62daef80-d172-491b-a948-212d6dfd628d, 62e208c4-16ef-475d-9244-99b592de0c1f, 62f4a6f9-7b9e-410d-bf90-dc032848003e, 63167e72-7ec4-4f54-9f1d-2d59845b2db9, 631e7bb1-9f58-4d2f-9263-630c69defd12, 63336c91-33cc-478a-90e3-62c96facfa7d, 636a974c-9a05-414f-a7a0-7b47db66ccca, 63748fe4-40e8-4c55-9255-5223b8c4495d, 6380ec41-0bf9-4b5b-9ddf-b4b400929104, 63847106-4f3d-462d-8875-f2e572c9323d, 63a67114-875e-431f-8e6d-32b283f3882f, 63cdfbe3-2d4a-4f41-b9df-99d92c17aa55, 63e87d94-345a-4586-a80c-c5417a8bb615, 63f90620-99df-4fb1-80d2-6139e74706be, 63fe9af8-7b7b-4420-b202-6b17415ec4c9, 64ac2864-f53b-4118-8f00-2b7bb1bbd2d8, 64ee6c7e-a967-460d-a8a2-9337b9e45257, 64f1ce62-4e2c-46fd-b94b-a2b0970872ec, 650700fe-b9d4-4355-a85a-c9ba58443307, 6557a85d-25b4-4b72-b5b4-5da5cb600be7, 65787ea6-42b8-473c-b5e0-4755b994eff7, 657bd56d-b03c-42fd-b051-1771edc80f73, 6581b1d8-95d1-4f42-b4e2-e7a4167c5080, 65c1fb23-88d2-4778-be0a-87b59565d0cb, 65f182d2-fc9d-4492-9156-ca915d1c54ae, 65fc8787-2e07-4a5c-a531-70bc7f795db1, 6623f8eb-1fa2-4d51-a025-49a2b0f66310, 6658746f-15fd-4882-bbab-331cdb512125, 666bef70-6cde-4e84-8aff-b3389d764eac, 666dce25-166b-4dfe-92ed-69cf896be18e, 66b979e9-7a62-4c04-ba60-6cca1d71f4a0, 66f3c35d-2eeb-4c9f-b948-00853b1e4967, 66f433fb-f4d2-4c48-b1a2-2beafd9c7549, 679c0ca4-2ee6-4497-ba3e-568ab40af43f, 67a19147-c264-4968-bae1-06413167e299, 67ac3662-a214-44d7-9fba-cbc49eb1ade3, 67ae1d65-3edb-457b-91fd-07fffbca595b, 67af6ded-8ae6-4192-9baa-aa7279613e95, 6830fe9b-7f81-492a-9d97-0a03d2833350, 683ca0df-4d6b-4df8-83a8-99eee5e369da, 68c41164-dfe2-45dd-b01c-518e74d6f8ba, 68c55273-a123-4f32-82b8-658fe29885bd, 68daa125-88f6-4690-8824-3279824aadfb, 68de1f75-922c-4d28-bccc-c04f3b670160, 68e2a5b6-f79b-41ee-ad20-87f931695f12, 691cc85a-341d-4483-80b2-cd11c18963ba, 6920b81e-5db8-4e19-8bd4-ec4d578c35d7, 69466264-7db4-475d-9e2e-ebb61719806d, 6947213c-468c-4bff-ba0b-529a75c61edd, 69792f95-c738-4385-84aa-48a848ee0a9b, 69a8b6ac-6fac-4f5d-9631-b8cfb470db88, 69d3fc9d-5c5e-4615-aa38-68989180116d, 69db1117-fedd-4185-aebe-fb13128d8aaf, 6a020c88-7444-4697-81a9-121fa6c9ae21, 6a14e085-539e-4388-b19b-0a61f157b14e, 6a373aef-8ee9-4878-b814-09b43ff4955d, 6a7a2a16-ac8c-46b2-9de7-446bf2d8bc58, 6a89e417-170d-4ec7-bd7a-34833627c057, 6aac39cd-179f-4a63-9a7a-972f21d11465, 6aba17dd-e973-4c24-9628-b5cf88ce98e5, 6abbcb41-8fd7-4c0e-9193-7117a9f1dbfb, 6ad72a5e-ced1-40ca-8f52-ba16ae6de01c, 6b17d99a-4541-4292-8b38-dd7fc9888c3b, 6b2b6338-155e-48d7-898d-22c38a7d9da6, 6b37d7b4-0faa-48dd-beac-4dbcf5ebdbcc, 6b3cc3b6-c4df-41c0-9b7f-38d97e510dca, 6b4d351e-932a-437f-931b-edd22e1df194, 6b776fae-758f-4674-b406-e1e015c306a2, 6b951a0e-693f-4aa6-afd4-7d3f42d1e829, 6ba8734c-f321-42cf-a936-32bcc73a54fc, 6c265594-b3e0-4535-8440-ebaac12299ca, 6c5c6acd-f372-40f8-910c-5e7d84e83530, 6c6d871a-43da-4223-9011-9e61cc6722ad, 6c71b0f0-aaa2-4fae-854a-6877b10579e6, 6c7cc72d-1689-4b1d-b395-771b66d36bb8, 6c97af13-f295-4749-b7a8-3892facfeba0, 6ca3795c-22e2-4c8f-a3bc-d0aec8ae75a5, 6cb7dda4-c496-4179-aa5b-a1189ef9571a, 6cb83722-28a7-4787-b42a-cc73246d6ed7, 6ce4dbd4-0ae8-40a0-8752-e3b27b700687, 6ce6cc45-448a-4873-a506-e601041c28c0, 6d153731-a49a-47b5-b9c6-df58b487c582, 6d173a07-3d6b-48ee-acca-5fe4fb67cf16, 6d34042f-81ea-41e0-a79b-b919cbf88375, 6d7fe1dc-da81-49a0-b6e0-ed608fbbb2be, 6d8293ef-4ade-4a90-a2de-75f3cb5b7715, 6db1a185-c3e8-4484-8f26-662aa45d84b2, 6db9d4bb-3406-479b-8e7f-a88565c7c582, 6df0977e-5797-4ebc-8fe5-5cbf6db0e212, 6df1e1a6-4748-4975-adf0-d67b30e2e0fa, 6df86483-c29c-4305-9387-a5a84faecb50, 6e27a571-ad70-44d2-8482-9f993d431d8a, 6e4caa03-a600-45fd-a388-f532010ec982, 6e737c99-d255-49cd-8ff0-bd4ef49ccd3f, 6eac6ba6-976f-46a4-961c-e3a3b71f1b17, 6eb9a32b-d7db-476a-b57e-d7e6104f605a, 6eec0f31-de70-4022-82be-0d4646bdfb17, 6efc6789-a8a0-48dc-8989-6c9f7f736153, 6f740dcc-2893-491a-b608-7729fd538528, 6f7c4c4a-0be9-4358-a73a-a3c14bca10d4, 6fb4d4ac-4f71-4c61-8d5e-22247673da08, 6fd31564-159f-4ce4-9c23-2f182c9d49d7, 6ff19ae1-4703-49eb-b153-efe5e62cb4cb, 7008a225-a59e-4b34-88c3-e2398c189d4d, 70208158-a9d2-4c38-ba58-6a383406d287, 703e12da-32aa-4779-a1ef-f470bb185ff8, 707161cc-e81a-4a1f-8196-775d5ddd034c, 70a47261-c2c8-4f23-b93b-bd73336f01d6, 70ab52b2-2686-49ce-b578-64c4cd9d971c, 70ccb0be-2d6f-4324-ae6d-2cd8793678b2, 70dc128e-cd36-40ae-b552-f65e46e8d2e9, 714814de-0c10-4ef8-9581-92d13fd3250e, 7156b0c0-66dc-4c93-b8b7-61df0fb15f63, 71584cf5-419d-456b-8ee5-e61dc9a86427, 7171544c-5be0-4ff0-b7f2-881a71391f2a, 71752eca-c3b6-4402-8b6b-8775411cb3f1, 7178f819-192b-41b6-b015-fdb2e373a04a, 718c23b3-3118-4d2f-a95a-e96043ca6fb7, 7199e1fa-b2f4-4273-b43e-4371bfe0c998, 71a9e27a-6d4e-4e2e-b0e6-479919d483b4, 71fb7831-df11-49c0-9f24-016d38b50e1b, 72100fa0-a44c-458d-844c-76aa96a52c3b, 7249b5bc-f89e-49eb-a9f2-dda6fdd32644, 725fba72-2756-4c48-b942-910742a42ef8, 72717be3-0071-4ecd-be94-b10d38d10171, 7280941e-7331-48ff-9faf-7ec2cdd2744c, 7294bb7d-12de-44e8-be90-34db1f051d5b, 72a3dc0a-0180-4b2f-a45d-e4c0ab1cd281, 72c91faa-1dfe-4e6b-b2b4-ebd720fae86b, 72d66b37-b7cf-4c36-b27f-79f4a644c919, 72f4b758-3d74-4cba-b94d-e4bd86afa2e5, 72f57d2f-f9a9-4fce-b6c4-50fbd90fcb1c, 72f9d41c-0408-4d96-8e36-b4d5cb4146dd, 7303b119-a703-43a4-9733-3d3b238be900, 73093275-56ab-4335-ac86-ebdd27fafbdf, 735e51f1-5c9d-4ab9-a2af-4e18fe484ea9, 736fd89f-61d0-437e-aed8-6070eb1b2629, 737290cf-9ea3-4f57-b7ec-c00e53182eac, 73c8dacf-ddea-4f7c-9d49-69435be313f8, 73e214e8-553b-495b-b022-04b2f0050917, 73e382a9-2da3-46d2-9d7f-dc854305a857, 73edb47b-4ffa-45f5-bc4d-92252d12fdb3, 7409cf6c-6ce4-42a9-bf0b-afad66011c22, 74298405-1fc8-41fd-95a9-89ded48812e2, 747e4c54-e876-4cce-adf0-70055c6940b0, 74851916-6da2-42f4-8511-c7e8b1e9757b, 749a9508-0068-400b-abd6-91b0786d37d6, 74a328f7-5bc1-4429-befb-c3b6c48341f6, 74a6e773-363b-481d-bf2f-3f594a56c835, 74b8ab42-4b70-4531-93d6-aeebe34600ea, 74ddd332-2557-4ae6-9229-0704286d195b, 751ebcab-ed0c-435b-a81e-a630cbdf52b1, 752bc25d-bb32-42e6-8e9a-0f6d384251e0, 7594e87a-c600-4f83-88cc-11c5156e3091, 75bc0115-7dd7-4d63-aa84-e9b45e5f7731, 75e88381-a070-4b2c-b165-0c964fe64027, 760bf08a-bf3b-4ce5-9c2f-f9316c2f3d12, 7626a290-3806-40c3-82f4-f15ad365f04a, 7627417e-d68e-4176-af58-3dd38b0d12ea, 768f28f8-c980-442b-a24d-f906dc5c1ea8, 76a226d2-8681-4109-a570-822d011ba4f8, 76ae3bf9-583a-430f-af6a-75c855479d35, 76c53183-48c3-4511-ae3f-c0b66040f38c, 76d5cbfd-d771-4280-b039-e1011891dc2e, 76ed9c49-98e2-4233-af45-0d8b796e3729, 771214b9-30d7-46bb-b076-4e56f2bbd791, 77215dfc-8976-4acd-bfb1-e741a626503e, 7749899f-8723-4045-bd71-353750719c70, 7750d874-ff7b-4edc-a2f3-2f7a9fd08656, 777fee37-ef2e-4277-9202-2e19982f5475, 77960496-4440-4870-84cb-926006c85d9f, 77972077-e246-4700-9329-02386ad1c809, 7798cc96-0f1d-4fdf-8756-aa0ac0827428, 77c5319b-8b13-4d2c-9f25-36f9c846c399, 77d999fd-4d19-4c28-9df0-22c10b8c1346, 7803c807-d305-4190-a210-1487210570bf, 7820c40a-9426-4e4f-b2e3-92c02661b567, 7878348a-3eba-4685-bdbf-691607bd990e, 787a33c8-f742-4079-8765-aeafd9989aa1, 7886edc6-02dc-4fda-b000-f2303f0627ec, 78be23d0-3d6d-4b47-9042-78d9ecd76feb, 78fd92df-fcbf-4531-a711-1aeb9637953f, 78feaf14-50ee-4646-bc2b-202d4ecb2cfb, 79036d9a-4083-4e2e-8c1b-e316d8397109, 791e2899-bdc4-4cc7-b42f-fbc1d1ae13a7, 79261f46-0f58-4d67-8da3-4f19bdb02bc4, 792f429d-4c90-4ed0-8457-b116b9172500, 793d9ef8-b785-46c9-bbf0-df1b4693b2b3, 79547b46-d65f-4c36-9da1-c4fe0189f450, 797635c2-bd68-47ce-b41d-c1e127e52d8b, 797b6de3-fe59-4acf-9519-13766ca5a7a4, 798fdec5-7437-4330-b362-ff6a50f2a8e7, 7996d130-674f-4047-b1ae-dad3de151588, 79c1a707-5065-41fc-88fd-4224be3ee426, 79cfd693-9062-4f2d-9f49-722a7b01ecad, 79ea9a37-8f2d-4cee-a27a-ec0c5279f54c, 79f8bd31-6f7d-4f81-a1a5-b6e7cd24558c, 7a45deb8-4616-42dc-90a9-f77768e49781, 7a507c5d-a561-485d-a32a-153e72887f88, 7a6b7e09-4330-4110-86a4-5be5285ebe69, 7a9f62d2-7f4d-45fe-9858-1cc080648691, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7abed478-81c0-403f-8ff4-f67ce0fe2ca4, 7aec6868-8aea-4e39-8457-8a4676cd89d2, 7af6075f-ba84-4ce9-8a7d-efd1d9ff7f22, 7b08b0be-fb92-4723-8231-53401dbc0684, 7b5b5c96-7507-4682-ba23-76c65c71566b, 7b994995-3dab-4c2a-9392-932b0e4f8aad, 7baaa4a4-1e14-4029-8343-d4e2e96faff2, 7bd50779-2858-489e-9542-4b8bed42977b, 7bdc0c9e-061b-441c-8b8c-99a8aaf66c0a, 7c2d97b7-8164-4562-a056-00d0bb9f51ff, 7c42f653-694d-4b6c-a41e-515fcbbd6dc3, 7c90ce77-5924-4c91-9867-9fd270bc8b5c, 7cabe3e3-9655-4c6a-95c1-f527375e7ef9, 7cb5f82a-d296-4287-baf4-c687276f27c2, 7cd17b18-b7e3-4456-b2e2-8125b2808c75, 7cdb0315-16df-4d17-8c12-55a00fdaefc4, 7d1813e2-a728-4a51-a899-153b605995c6, 7d20d5a1-032e-48a3-a0f4-ebe2dec1cc47, 7d41f654-e94f-48af-a799-09a19c5d4469, 7d4c9626-2caf-4249-b704-137bec0525a8, 7d695681-c78a-4c37-9079-d773b6ad4219, 7d99321a-d97d-4dbe-a016-b72913d50bc4, 7da4f96d-dfc3-44b9-92be-f75d583926dd, 7daffee8-7fe6-4179-8f5c-6f6df570400f, 7de59f55-20a9-4794-b06f-92dd9edae043, 7dfe75a2-fd0d-4840-9da0-368870c4b2cf, 7e2b25a7-0dd5-46c3-813b-030cdd7dd7e3, 7e3c66c5-38df-4781-91c7-b70f75af8df1, 7e3d3473-ce0e-469c-887a-38f51e2ae9c6, 7e3e3110-149c-41da-947c-a84176b90ddf, 7e4e1e6e-9e42-40a0-b737-359871142484, 7e7f18d0-e23a-499a-b5c9-5fe93efc0764, 7e9a1660-6052-49c4-bd03-a844467874e4, 7ea3f36c-bfb1-4583-8e69-c7fe5850d57e, 7eac1112-42cb-4145-8582-610ac1906668, 7f357580-2b79-47c3-a7ae-079c68fbd3c0, 7f46ee65-4799-49d4-bad5-92bfb3a5b978, 7f89a601-984e-4809-a060-0d880eaaae8d, 7f9ebb2f-969c-47d7-8ab1-73b455ebe68b, 7f9fb071-6a9a-48c2-b66b-83c45e96c0f0, 7fabb106-2972-4291-995b-f8adc6704e89, 7fb133d8-7f43-444b-a2f7-ced7b76230a6, 7fe8d8ba-bdcc-49de-abbe-0e3c4cf97976, 7feb718f-f5d3-4d4f-b84b-a56461ba7d5c, 8001be26-4535-4f25-be91-486dd396cddf, 801508b1-c050-44b6-8d4a-a9410e422f25, 801a5cdd-74d7-490f-8615-efe7fb5fa115, 801d4057-9a1c-488b-a54e-63e1ca21cea6, 80299237-b654-48a4-b1ae-1bcf20b494ce, 8044d616-1b9c-4fff-be51-1b56f05bf9ba, 80684e9c-2301-4972-895e-99b82d2ef44e, 80a4d546-3f18-4934-afdd-33c059fa4960, 80af1c04-6fbe-49f4-87dc-aca813a89d83, 80b4f595-1e29-427d-ba45-9e1773588d95, 80e02659-983a-4cf1-88ac-300eb0be6923, 80eed146-b366-4530-a624-1de60057287f, 81175400-aea6-4446-a603-ef66f4142899, 8157f474-1a9a-4765-ae13-67d03789048a, 818a7f6d-12df-4900-93db-43a69cea226a, 81ab595d-ae7b-4b53-8b65-cb8989465204, 81b56cd7-ea5b-49e2-96fd-97e5ed34b48b, 81fe1ed3-f2cd-44c9-b2b8-1c1557812a95, 820d44e9-2315-4a41-8861-9bf9f435325a, 821d8fb9-8703-4562-b71d-c0fa8b943adf, 8236092c-b22c-4040-92fe-6b6f4e2f0838, 82376e3f-c49d-4045-921a-b2d72a5b7d61, 8258872e-f813-42d7-a653-8c2ed8307fca, 825c701a-07c2-4692-8e40-a5c603c5cb5f, 8292cd7a-9d4d-4f31-b890-7b4527034c28, 829c802f-423a-4244-b10f-0eaf2b9dac3e, 82d1bf4b-3873-451c-aec2-c432f49a0b22, 82fa4629-6f99-463d-b71b-131a259d8425, 8301d3b5-b4ea-44c9-a30b-f42372a3e91b, 8329a842-c0ee-4ba3-b8ca-60955486d4a4, 832f684f-147e-4ed3-bb29-80d086b0d02c, 83e6a749-2fca-4122-8db1-3fa19bd1eb6b, 83f21991-9088-413f-bef0-0be70442e819, 840464b1-a287-4911-97f6-0291f5d9f08e, 840a822d-d619-4f09-86ca-bee373435eef, 841a9101-219d-438e-ad74-28fff4983982, 845cdf10-5f8a-459f-93cf-ab3cd74321d6, 846e7a70-dff7-4cf5-bc60-52d61de7b47f, 848fc4bb-954a-43ec-be43-95145f7784e0, 84bee40c-7ed4-4446-a1bc-c8c3fa697b55, 84c2f863-4cf2-4a17-a71f-5d553e45c17c, 853abeed-0379-4376-9062-bd2e079fb6b4, 857ecc6d-4b81-4435-bfc0-3aebae65241d, 858a52c3-56dd-4c3b-a94c-90669f6282dc, 85d8d4fe-377e-4006-a38c-1395a7f4f7bc, 85f7efad-7444-40d2-a436-c33a364dd5ce, 85fc9175-c391-425f-9723-e665fc191665, 8641107c-96d0-4152-9143-a53d3eb17e40, 8685b562-165f-4409-9e92-e4ce9ccdb9be, 8691f837-340f-4c52-a275-0d3db8121e7a, 86943c3c-cf91-4237-82ff-6aec2c79fbbe, 86b67c3b-c9f6-429d-a073-7b03390c81c9, 86c3a1e3-9d0f-40fc-a3b3-e79cec0f223b, 86ccaf0f-47da-4c47-b163-a1959f60598d, 8711d6ab-17ec-4b90-b666-00f151a935b8, 8717f4c7-7cc6-4645-bb85-34d50965bf52, 8758e1d4-46e4-46bb-a816-bda0b3bb7ba3, 87a140f1-6f6b-4638-a6d6-a158841364ee, 87ae336c-b11c-4c08-aaaa-0665de83b571, 87b92a17-0d88-4103-8e40-508c50c0ad2f, 87c03828-0d86-4536-8f36-d2b12a5c7cf2, 87c346b1-56cc-4f03-826f-4caf836c9506, 881d4787-b7e0-4816-9ec4-4c7f34c73eab, 88226c42-d22f-44aa-9606-9eb9ce608753, 8829e4a8-1b26-4891-81a9-6445f576a288, 883fbf86-ea46-46b2-a655-d3571bb8510c, 88485427-1603-4d6d-9dcc-9d8913a39ea9, 887c9995-6bf9-4387-99f4-269bcfe53394, 88b54025-53bf-4cac-b863-d3b22e60097e, 88bdaede-239f-41c3-9e03-950317045e3b, 89180468-8883-4531-9eec-39ee10700e9f, 89319bd1-d925-40db-a3c1-0db5afb7ef67, 89337d62-ab4a-4117-840d-e7a9ab244615, 89388d04-221c-4f5c-8586-b7aeef674349, 896b222c-4ffa-4366-bd81-7c900fc8d6c9, 8999af9b-7d36-4011-b4b6-71946468c939, 89b2f8ad-f54b-40fa-add3-ca738dcf6af4, 89d5cfcd-a666-4120-9af0-c7f4d01d90ff, 89d67469-c6d1-4e88-9973-ea7cd0687b55, 89d876b2-12f4-437f-8210-64a012e4208f, 89e6b6d3-fb42-4671-8f9f-e062184e196d, 89fee8ad-00fc-4359-9181-5839b5183089, 8a0ca361-8541-4c77-8e62-1f3287d65e5c, 8a68e442-ecff-446f-ad1f-a9dd82eb567c, 8ac4fb41-518a-43e1-836f-5d2d7f10f8db, 8b3099bf-d0df-4f06-ab43-b6300affc3d1, 8b36d1c1-0880-456a-bee3-15ba816dec0b, 8b7ada39-1570-4933-bc60-9bedbf3e2d99, 8b8425cf-c576-4ba8-ba26-1225258cc21f, 8b9eb3ff-ab01-4874-a95d-7eac12510b6a, 8bb706e4-7383-4b2f-b938-94c17fd1d191, 8bbb54f0-7d05-4212-885c-a7d47159aea5, 8bc257b8-31ed-48c2-b56d-71328c193176, 8c1d94da-21db-4bd2-adb8-b759f5c247a8, 8c2e43eb-6095-4fa3-a644-0b6aeb8fea1b, 8c3e747b-8895-4019-b305-74c80cb94569, 8c58f289-5f84-46e4-896d-3471e159f63e, 8c67b7bd-1196-47d3-bed5-b29a0d014de7, 8c681ab9-cea5-45bf-bdf7-d8153d8b8cf3, 8c84bc59-d283-445e-82dc-1848de0f414b, 8cb75369-0520-4968-a871-1c246a8e7bc8, 8cc4dfe5-3ec0-420f-bef6-6119007ef742, 8ccd6925-d6b1-4633-94bd-1ad8f09db5bd, 8cd07c5a-871d-4aaf-92bb-a4c6b1a4ae1f, 8ce1eca7-c3c2-45c0-9b54-e22355edb7c3, 8d06bf5b-5c3d-42c5-a132-6a3987fcb4bc, 8d0e157c-b634-4dd9-a3a8-ae9f7df10907, 8d132d2c-ac8b-4ff3-baf1-44436e8b6ad3, 8d1d0b68-25d1-44b5-9ba1-84ddfe748315, 8d211247-50ea-4cee-9a2b-b3d1a60464cc, 8d73e8cf-c5de-4cc4-8a36-17103058c58c, 8da33b3e-32fd-439d-9f66-13c58ca29154, 8dbdd921-aecf-42e3-a523-1f75412af5f8, 8dcfb7ff-d73d-48c5-9e1b-10d648db2b79, 8ddfb90b-c004-4ee9-8d0d-3957882a2483, 8de16d35-cc98-4517-bd7c-f33b0b12ab60, 8df29516-125f-421a-9545-6cf63ea60c7c, 8e01d1a7-e8e2-4656-8753-61d7fd5e3587, 8e4ff962-0961-4ff3-b3c1-274f962f6407, 8e698c24-fd81-4ef3-83ac-59ef5da44df7, 8e8be00b-a62a-4d2e-a517-3b2ad34e5640, 8e90df64-b733-4287-8ac7-c7c1461b67bf, 8ec53ba2-f8e8-4442-95c6-ae8122816873, 8ec8861c-bb10-4d95-8009-9c497d9bffec, 8eca0418-d6a5-4e2d-bfd0-6f0b4f3ab7dc, 8ed00a0f-73da-4d8f-ad2f-d9e8a96d258c, 8f7e48e9-4f08-4c31-bdba-e4a749253934, 8f7e9104-5473-46ed-92b2-216e642cd104, 8f7ec973-e405-4185-9c2f-dd702b62fb83, 8fe5c3ef-d57f-4f13-89c9-eb350f21eaa9, 9037f1c2-29c2-41e8-a761-68b6b46830a3, 90416b11-ef51-445d-b4e7-1b01ee45fc12, 90794da3-b217-4cd0-bc0e-884082baf485, 907f5a7d-d784-42bf-96aa-4f5236cf3cc2, 90ddfabe-d829-4112-9ddc-6ba9d8d509cb, 90eab2c0-f69c-4a1f-b1c8-cf8cd412558e, 910e0564-96b1-4f92-8fe9-6df2caca8259, 9140e1b1-d288-48fd-b845-ce0f91a9ec60, 914aa919-6fd7-4e38-a480-4584bd41a1ae, 915dc64b-c0da-48e3-a434-22e3d54e7373, 918c3283-e900-4be8-9c78-4987c02a1dfc, 91a69b70-fb80-4d77-ab84-08e3600dbe1b, 91a808d0-e337-4cea-af8b-facef5a1567e, 91b09548-b920-4bc8-a337-4518511bb6d3, 91cac958-0366-4bbb-89d9-c12cd38eee26, 91cc21b0-7bbf-419d-b3a0-77844894f48d, 91d01571-6689-472f-b5b7-fb7e8d9d7632, 91d045e2-788f-4ff3-bfd7-2084deb3e8b5, 91d73345-4967-4ae7-ad48-a682f7747693, 91fa7ce6-9fa1-4c8d-8549-01e8d5d99124, 92146b76-2b2a-4d09-93ee-3aedf0b20863, 921730a4-5198-46b6-9543-2a27e13655f1, 923de3b6-d91d-4089-9479-e4175dee9587, 9246d878-3ac2-450e-9fdf-2e3bb5964149, 9246f3a0-7e96-4a05-b99f-b45284b1cf23, 92495834-d7a2-4656-8fc4-fd0e6a4b05b1, 92928b73-46ff-43ac-9568-602116c564b1, 92ad00e7-cbd1-4d9b-8a1d-1a8f38f7e9f1, 92ad58f3-8f5d-4742-835b-910d7171b769, 92b3fb53-a3b4-44df-bb31-fa0644ff609e, 92ba7cfc-ae74-43c5-af1d-a2c7c3bfa7e6, 92cb3e88-a149-456a-aa24-e3f26b204169, 92cfa89b-baff-49d8-9537-10317cad8468, 92ec4c41-05f8-4056-9da7-5d6fcee37b7f, 92fba4d1-6d37-4608-bd95-987b3b4b9687, 92fc65eb-6c17-40fb-a8a3-8978d5ec980c, 930503d9-f358-4371-8a68-8f529aeb904f, 930e1381-052f-4ffb-a22a-7c577e27e803, 930f4eca-6cb0-490a-8dcd-4f5952f5016e, 9328f72a-eb9d-4da0-a2c7-7f9c0587a0fd, 9361452b-eae0-4965-a546-f1e5edb08ac2, 936264fe-412f-4237-8cb8-9336bf5d040b, 938e8cdd-f481-4533-9b3a-0dcdee324077, 93c3e51b-a069-4679-be31-d62046645068, 93c8cfcd-b09d-4122-b0e1-ce91d7475aa9, 93f9374d-37c9-4dad-8bab-a92a530bfa6b, 93fb2901-77fe-4a14-8bde-ed25d68a8523, 94000f25-b7af-4da0-bec7-a020a0517ce8, 9407beb9-916a-4cad-8974-740c86f11fcb, 94378829-dcd1-49ac-aeae-f2d9190f82e6, 943e0cf2-1379-4886-9dad-dcb9c7b43d8d, 9461b804-6504-428c-bcae-5b9d0573f698, 949167bf-6867-439b-b773-4fa479f7d340, 949ce54e-2861-423a-856c-a91794a19081, 94c8ae01-9468-428f-a391-7d7e4acd37eb, 94cbbd4f-1261-4e7a-863f-65869b7f435d, 94ea7ded-0980-4d2a-a942-721117a09714, 94ed675a-8884-42ae-9583-22d06af1b1c8, 9521293e-44ac-40b4-8307-79c485764a52, 953d2a0e-77a1-4e45-a411-a8a52e9ad4ee, 9559c6e6-8cb8-4205-83e5-6c07f2af4daf, 9560c907-800b-43b7-b662-4504fd8ccdaa, 957bb1d9-f877-438c-b7e3-d028484774d1, 9589f265-e65b-4f1e-bef6-e3e14532e7d5, 958ee667-7168-476b-96ba-54dc74590384, 960cf5ca-f208-4230-8c65-0e941041e3c1, 96200043-63b4-42f3-9c42-7bd4b10d14a3, 9638946a-10a8-4680-949f-faef1674582a, 96618be9-e3ef-4e62-bef5-e9afd7751aa3, 968f53f6-8fb9-48d5-b0ee-fa08b06e02b4, 969431e3-0423-4352-9b4c-770d56cb1262, 969f7581-78c2-4143-8331-1bc04a3aa7f7, 96bb8e60-e3da-4832-97fb-0f642ae2fa2f, 96d11a7c-d922-4ee7-a094-8e31a3499ca5, 96d89514-815e-4eee-837a-2288bc9c3843, 96eda532-eb89-4414-a73c-b278485205a6, 96f75c4c-f307-4ec0-aaa2-71051d67b396, 970a26a2-8a85-4157-be1a-a0d2d6e63829, 975daf38-4cc3-44ff-b527-bc40f7f3386b, 976ca9fc-38c2-4a53-a0d3-5347b5c6bdaf, 977542db-f295-4408-a637-3829e9215d3f, 97babec5-d2e2-41cb-b4c7-a4027214199f, 97c23f0e-3b73-4b71-9d71-4cfb347b4557, 980161ec-73a1-4ebc-a932-376e9eb7bb7f, 98366444-5b12-49a8-818c-7859b3c6763b, 983f60a1-1255-4c92-8aef-02ac7ea09f89, 98a519a0-1e65-4ff4-9d07-639ff328a362, 98c98ef0-fcaa-47f7-aafd-37a264823c25, 98d12e2b-465f-4165-a969-9aa3faab37bb, 98db3c30-e3fc-47ae-bd3d-183f60e0f5c0, 98e95fc3-0265-44cf-98a6-ac9fbd89827a, 990320c9-2bb8-4bc8-8184-6062c75fb297, 990b84df-a55e-443e-a106-9d9e1ec3b9d4, 99226736-d959-43e3-9516-714735660da5, 9942078a-fa1a-4297-9680-11e657900784, 996da7aa-367b-4c88-b549-68bd2318f8e1, 996e057d-d2e9-4f4c-8ff5-19ae5f18870a, 9975d54f-6bd5-44a9-9d9c-d6e5b2dc49bd, 997e687c-e378-4824-859f-60f936c36f1f, 99913f93-c205-4e6a-93d5-ad889cefacd7, 999ce075-e10e-441a-b967-383512ddbae1, 99b378fe-ddda-43ab-a488-a9ee712526b9, 99b9021b-8614-4e72-8b9e-9245e9f721dc, 99dc7044-fe96-401f-914e-ca6acdb7ef94, 99e734d1-f525-4f6e-83d5-b635dd1e4609, 99f80e20-55f5-42b3-ae85-d492de709806, 9a0ffcca-7ed6-4808-ad84-6efe4a4ab513, 9a3a1284-8659-4ead-bfeb-7bdc1cdcbbe2, 9a5f108b-ec59-4eb8-b814-e355f58afab0, 9a64df87-a296-4e8c-887e-0e34f7f71bf6, 9ab6e01d-bd1e-487c-9616-b16f8c9a1ecd, 9ad05da3-346d-49c7-ab15-e7f6f24b35e8, 9ada1a52-1e5e-43c5-934b-0df38fc50f40, 9aee8c8e-5b96-4451-9833-c73b2aec7325, 9b72b370-793b-4851-a48c-3062657e240e, 9b79d278-6f8e-479b-93b0-bc89e4db2037, 9b7bf899-5f12-47a4-8794-07072b5a3735, 9bfea164-d363-4b0d-bac7-7b78ed683701, 9c28e7cd-73eb-428e-9ae7-bd91e4ecd974, 9c32c6af-598a-4f36-9b05-66adf06630f8, 9c3e4c06-625c-414b-bca5-443fa54470ba, 9caa2734-b1ca-4dff-87af-03aa68fdec9f, 9cbafadd-1d72-4448-bbd8-837128dbf879, 9cbc745c-e8d7-4582-ad44-11e843b5e773, 9cce522a-a7ab-413b-9a91-ca3b68da613a, 9cd7740e-874c-45b4-a35d-bb61262dd2e7, 9cde3f5c-b7b1-47fa-af6e-90bedf0cf283, 9cdfddfb-8764-43bf-a457-05cca0f24b69, 9cf1ad40-476d-4ab5-a50d-37cfc8e0379b, 9d29a51e-6508-4447-87f8-20c90bcb80e0, 9d3906d7-f1af-4902-9a37-f370fd3463e6, 9d4effe2-b8dc-4e60-9918-9ad0d8b1cd67, 9d6fe6d1-94aa-4f1a-afae-3e18bc3f9cab, 9da7c9f1-c2e3-4545-a22e-c736c75eab2a, 9e23d878-c7b5-4908-92da-995ac4836ef9, 9e3bdb4e-330b-4292-be32-6beb55bea0a1, 9e3eda16-f82b-4e09-b88f-1d63f1f7b317, 9e684cfd-2fd9-41b7-bf8c-df34fd67661e, 9e967268-7c48-449e-94e7-205aca85fcfd, 9eaf1e02-48d2-4be3-bee1-50d1a08e479a, 9f094c67-4644-4e40-b525-6937b7ed1f26, 9f18f040-9a45-44b3-b682-ac16c5652f74, 9f55d904-bed8-4b9a-9bfb-d7f8cda1ecef, 9f7c7cfc-992e-49f8-8bb6-ce37649daa87, 9f888ffe-0851-4de0-ac6e-610f190db661, 9f9d6497-d6d9-4cd3-8b5b-d091154155ba, 9fc08525-4b01-4052-8962-2dd62a945516, 9fc114d7-d01a-4f49-bf21-22fe122393ea, a026879a-0bb1-4aa3-96bd-c98cf329310f, a0302d3d-ddbb-49ca-a80c-c94e85155895, a04275c0-4990-47ec-90e1-d3a387ab617d, a05233ec-79d0-4f9d-ace5-ba236ad30eb1, a05c8ddc-5f98-415d-aa4c-cfdf38ba3ae6, a0775d4a-d45d-451f-9e97-d8246d1b8b53, a09f9a19-531b-4013-a0d3-25ad240f6cd2, a0a6e3e1-f54c-4d1c-97ec-f8d7fb012a15, a0bf6d54-20dd-4cdb-879a-f32bb6fafef8, a0fcb5f7-26b7-409f-b648-b097a44318b4, a1150db7-5e1b-420e-b515-b1864de4e59b, a146e026-3097-496f-b13b-11bc123d5d72, a179075b-056a-48d9-95c0-d159be32b2de, a18c04a9-e24b-4248-a4d8-772c9edbb92a, a1adbe62-0463-431f-93bd-5d65da7b1db4, a1c3b2a9-5511-4f8a-8eac-7ecc3fda0b90, a1dd46b1-a2a4-4fe4-b1c9-608bbb5eb259, a1deeb2d-9ae8-40d3-a150-6371b6f1c08a, a1f39856-cb43-4b47-b2e3-0e37aa354400, a219e62c-dda2-4287-a263-d802020a1317, a220e280-952a-4240-8251-b2e2a2fc3b7d, a23aa625-a837-451d-af8c-c4ed4e7dfd4e, a258ec22-24c1-4794-a1b8-432ec302f6b8, a259a35a-ad22-4757-9ce4-086c5345d9e1, a259d0cf-8d29-4e9c-b28b-ba95f2f697c0, a25e2353-13c9-4470-a61f-3b1f3c3b7af5, a26978dc-20c3-4268-acb9-6281e574fde1, a27fb391-9c5f-4820-b004-faf5359c29b5, a28afc38-859b-4f22-9bf4-1b0809adf602, a28da9c4-cee1-4af3-9ec2-cf5542cab7f1, a28ec841-b8af-4469-95ae-4fca8f4cd553, a28f8c22-6a28-42cc-ae89-6edf8b7585ac, a2911e26-e14f-4e8a-b789-424b8e77c37d, a2ca0257-fccd-46d8-a9ce-3c6ff2fc9025, a2e0d5a0-0dd4-4f55-9fda-2a17ca949904, a2e2d0f8-0781-43d8-9f5b-a7e9f22de613, a2ef9c19-e735-492f-bb98-cd1a1331a3d2, a317470b-9801-49d0-b857-de8dcec15473, a338930c-711c-4d69-a98f-86c1819fa0bc, a3a83257-3ca9-4318-aa57-25d318a8a5f9, a3d17f46-1386-417a-9407-0c6b42ed2f47, a3e3fcc3-d245-4ce0-82c6-b29286fa2b51, a3e99411-6c27-4f60-9030-d259f584f4a9, a40c3e2f-5139-4cd4-86e9-515f30a0c491, a42c1022-1611-48e4-b4a0-4ffcb8723d19, a440be08-7802-4f8f-a80b-9e19bf1e6b92, a4855ca2-cc54-4e3f-bd74-d6e6ea0a4f13, a4a0472a-af07-48cb-b4d3-ba195057750d, a4a47ccb-94eb-4352-9302-89f6212bde77, a4b5bce1-c7b9-4924-8bf3-939308282200, a50bf258-4c3b-494d-8558-7b87a89a2375, a50c5b00-72c2-4cfb-852f-9ad47c2d126c, a50e8ed0-9fe0-4dbd-8dd1-133f95c544b6, a545241d-1e31-4ae4-ae8b-14c608984a3c, a56310b8-fe0f-49d2-897a-536bdfb97469, a5857a12-1ce9-4857-aca0-ab2522cb2593, a585bb0c-bc31-4fa9-9fd8-425489d39b13, a5aa366e-0f3c-4043-bb59-c1f69a0fd361, a5aca29a-7b72-4205-857d-ecb222fd0a92, a5ad6b9d-9ee4-48ad-964d-c6359de3d549, a5fb9950-6ab5-4e7b-a16d-560cdd2decc8, a61b5c23-4386-4b55-9b69-fe44e4085049, a639f99d-39ff-4f39-8367-b0693897dd41, a63fe12d-13cc-4276-a6e4-378dcc7fddb8, a683dfdf-6763-4b91-a4bc-6029675847fb, a6a12e0c-25a0-4df8-965b-94ed99c483f1, a6a54c67-1924-4b6a-8e1d-1b765b1fd137, a6abe1c5-232b-404c-93a1-1af00dd7acee, a6ad871f-d67c-4f26-82fb-7faf6ce50cc4, a6b6b155-725d-4db3-a5cf-55fec903a9a1, a71013c6-5c1b-4d21-9d43-4bf22b3b289d, a71fb104-3925-407f-95e0-71fa618f1e7e, a73b1f9b-4d3b-4341-95bb-dadd093bddc3, a742906e-9a92-4a1c-bb93-ca2354abbd3b, a75a648c-f519-416d-b71b-d71231a2ceec, a75d945d-55c0-474b-8a0b-3183d13951eb, a76cccfc-8df8-49b2-90f6-e53829372d24, a7778b34-345a-4911-98e6-594a285d633b, a79a155a-d407-4528-a0b4-137428644e51, a7c1d474-0a65-42e8-8dad-5451b5ababcc, a85b4f8e-a86c-49eb-9389-6aca7c6d25e6, a877da23-401b-42db-b208-92b27e2fc0c6, a88c0262-9814-4e7a-9492-db9e65bcd7c2, a8a8d944-bbb9-4dbc-9447-68097eaf2dab, a8d34c38-c650-4be2-a397-3eb8085ce80a, a8f85520-8fd1-4951-8114-373cc914c776, a9189cb8-824c-43a3-b3b9-54c3897c5a0f, a91ebaea-3e48-4dc8-bf8e-fe6a5a2cecc2, a92ab613-468f-450b-9bd5-e98ef265d1ea, a935bcb0-0b9f-40b5-9135-d9e293ddf8ff, a937fea3-f868-4703-bb4a-4f32b8f630b9, a96803a6-8a53-40d8-b1b0-a1339e1fba50, a976d5e2-593d-413e-aaee-0cd3be0e253d, a98c0f7d-12c5-4a60-9a0e-6ca734d001c2, a9ae2378-4c49-40cc-9f14-8d960a873c34, a9b41c04-873a-4b18-824b-ebb0fa921f19, a9d84acb-09c7-49bc-b552-969f4214f0f3, a9dac559-a580-4964-adf2-41bbb45657b8, a9e73613-f2f1-4002-948a-885c1ffe865c, aa0196ed-4459-45b6-b639-85b7cae6da40, aa03a692-5cb8-46d8-b52c-d312abd0a54e, aa33fdbd-3e41-4265-b865-d5f60f559b43, aa34c79c-2d30-4b1c-b71e-7a05ff69d4ab, aa371df2-b6ed-4862-8d2b-6c235c726fbf, aa39d95a-8ac5-48e2-9297-8b69b02a54a3, aa5a5893-013f-45c4-90c6-8141ef52b2e1, aa5aa264-365c-4e37-a379-ee40df9d86c3, aa62eded-b52d-4e74-b7e5-143a4ce3efa4, aa96197c-866b-4ded-bb7d-4d394bd9bc5a, aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433, aabc920e-18a1-4c22-b5a3-c225f68b6e09, aac4ac8f-aab6-4f48-a4ed-80e0e94d2ab3, aac8f39f-0e4a-4916-b373-d6034036ff81, aacb4912-c0a6-40c3-9205-a41f9ef08e88, aad1a630-657e-4987-a35a-3753ab057885, aaee49fe-0047-4f7e-9eff-c11a41d4b12f, aaf03fc8-1443-4c6e-8939-e1e33013807b, ab20067b-df03-4ce0-8c9d-4ead51984855, ab3d2617-f4a0-45e1-b3cf-2eb0692b6784, ab81f79f-916f-4562-8959-33b6c65262e9, ab85b19a-3198-4f7f-b62f-c48289cd2286, ab8f4636-ebb7-4679-b401-e5a283f29a40, ab9b2ebb-7d4c-4e01-ac96-cfc0fc998bf8, abbe2c9d-257d-44a2-b0b3-c7885cdf35fb, abe07310-8edd-48a9-bc97-9354ee21817a, ac902f3c-e6fa-488b-8db1-6a7b225df209, ac9e3594-2d85-401d-a42d-8aba6848bf5c, acc9c514-c401-4144-b0d4-78399ea62c39, accb6b5e-1ff8-4f8c-87fd-77225f3bd562, acced0f6-a7ab-4ad3-bfa8-1a338583d437, acd7bb15-1eb7-4745-9c3a-104dc0f42864, ace358d7-2ab2-4467-b34f-a1842e9eb60b, acec3ec5-d006-4252-b8c7-1823033ae3cf, acf873d3-eddb-4cab-9bd6-934c9e6558ee, ad00fe6f-9a55-481e-b246-12fc69208cb3, ad01dffb-3e99-4bbc-aaf8-f272bbdceb48, ad0fc302-e555-4dbd-a795-71cd4b49797e, ad21c8fd-8d1e-4620-9cdc-8b693e09e1be, ad270f5a-5875-4578-a215-7f469655ae1b, ad3521c0-955a-44b3-b21b-b8231af9ac57, ad4c72fe-28b3-4e98-b9c0-24e45a8841e7, ad4ccd3f-1484-4cc5-9994-c96cb53907cc, ad6eb4f8-ec40-48f0-baf9-008dab924ef8, ad739e13-c535-46d8-8b60-3d19404341a2, ad904b9a-bcab-4b21-92e4-f4eb72aaaed4, adc336bf-b8a8-4c88-b3ed-78dbd892e7da, ade8f278-7250-40cb-8b47-8f4e8e003f53, ae0268e3-8d4f-44f3-91b6-0d106ef64c02, ae33190a-b97a-4961-8d74-042f65da0b04, ae71fbec-3802-4958-8be1-99e9511ca45a, ae898a3a-27a7-42fd-879a-7507224e0263, ae94e72f-1064-4f60-b057-da873a3637d6, aecca2c8-433d-4c40-9a2e-4bbeb88ae3bf, aefccb6d-4795-464a-a4cb-769f7832ccda, af10a365-153e-40d0-96f0-23511d0e61e6, af213363-e014-4bd3-b443-265813482d80, af25bc20-4521-4c63-8ece-d71626599070, af2c84cb-40a4-4a80-8003-25a18d69731e, af63f033-9c59-48a5-9a5c-4451d579894e, af7703c5-2c0a-4f33-86e7-b66e38d2f8ba, af8bc072-354e-4e1e-8abd-5717ad09c83d, afbc3584-a0ce-468d-8db5-fa32cff33ac7, afcda84b-3b9b-4c99-b4b7-c9c53ec24454, afd12deb-fdf7-4430-808f-accd50e06490, afea1538-db00-4776-a58e-87e2758f0958, b020627e-165a-49d9-85c5-a66573aeaa97, b02c6009-9af8-4a81-a5ff-2e9148aef6b5, b0b2bf57-b165-4cbc-8d2e-e820b10593ff, b0d0747b-ce3c-445c-8b29-30b63bb0174e, b10243cd-e6f5-46ff-933b-d36fe328b62f, b11b5c7b-b266-4f95-a4e6-3b5739ef0def, b139d150-6626-40bb-b339-bfcfdd5842fe, b1af9984-9ea7-410b-985f-0882879b3f7a, b1d35841-b56d-4ad7-a170-3715068ea5c4, b212ce8c-0595-43f8-8211-4693d562f898, b21f8942-fc4d-4980-9d1f-187a14401c95, b229777f-cca3-44c9-9bb0-1f877ef8c640, b28cfd21-02d0-4c18-8343-c234f9327693, b2d2fe9c-3dae-473e-8b88-685cb15b2368, b2d54a33-cdf6-4d1b-a994-d85578447124, b302861f-2f45-497e-9b81-90c52da69912, b307cf15-9dd1-42cb-b3c6-fed98552fbc0, b31c406c-bffd-4179-bc29-a864aa730b62, b33c6331-da28-4eea-994a-7527d011fcbe, b3560a3e-8ebb-48a7-9fdd-761f47ef7671, b37fab5b-22c1-4a06-9a08-f8c2bcc42f42, b388d39a-81b6-490e-98bf-b2ab89d728c0, b38d1936-fe98-41c5-81cd-f71fdb1a4889, b3a590ae-107f-4a74-b740-65d854e83e44, b3abfa26-d387-436c-80a0-df2cf4af3ae5, b3d7b8a6-6a1a-423b-b50a-94f572d9374e, b3da74f4-81a2-4f2b-b696-f40559e2b437, b3e5752a-56ff-4db7-a936-e1b7746cb9e9, b400634d-8bef-4183-b052-6babed54eef3, b407f17a-6375-48b6-9834-529aaeef73bf, b422d736-a715-428c-b162-14027a21bb90, b497e7ae-4951-43af-a76d-83bdd161d452, b4a054b9-fe29-4689-8efc-2aed74b1ff58, b4ac13e1-0fca-4005-a761-75ccde14087c, b4ae0423-05bf-45b7-a76b-75e2220ff661, b4b0ce6f-c736-411b-94d8-9c11bd28f8bf, b4b875cc-eb6f-46fa-9af6-c7d9620703c4, b4cc1994-f649-4b50-9e99-3fc689123b6a, b5087a4a-a117-4e25-aad9-ca4aea8f3380, b525475c-4bf7-46e0-9d09-232b98b367cc, b529acf9-d289-4348-92ce-00eda3ab5739, b52d14c2-578e-4b34-9d27-e9dfe1426d51, b55d4575-51b6-4b1e-a885-436aa5a99574, b57081a3-1ff0-4a4a-9128-82202319775f, b58010ce-c0a6-4605-a264-a5b57df95615, b5d3a36b-a6fb-478f-8c23-f52eae024bb1, b5e333b5-02c6-4a43-b956-62dcbbfef1b3, b601eb42-0f73-4e2d-bc77-e59b6f71d5bb, b60314b8-f836-49e2-947a-244feda0c050, b612f2aa-3a65-43f6-a2e2-5b6ad0deb115, b6170009-7a7b-4c72-b8bf-94c08bd69db8, b61d9bc2-e306-4c34-92d0-5e23069c8715, b6294f02-fab6-47ea-8dbf-b9299085c3f4, b651b08b-73d9-4483-8f0c-4231499771c4, b6600cec-bf66-47e1-8923-0b25c305458c, b671860b-b229-4b08-a34f-2d9fbf18bf1a, b6c54855-1d76-414f-af85-476d1f9f990c, b6c8057c-7c04-41a8-92d7-3350d43eb70b, b6cb9913-c17f-4fb3-a0ad-fb446359516b, b6d6a35e-d5f1-49e9-8f01-427122cbf91d, b6f6fbd8-9db2-4a6d-9f0b-103f61dbc51e, b73b548f-dae7-4607-937a-12dc6a124d28, b743a317-c6eb-4788-a974-9f8c46337622, b74f5acb-89eb-456d-a0fc-08c005eae03d, b7661531-c141-44b8-ae8d-e714223faa32, b77107c8-653c-4067-8d4d-dff8c16c2e44, b77b7de2-87f7-4b25-8d8f-b99216fbe9df, b7d44e43-6176-46be-911c-3dd62751f631, b7f3a7fa-648b-4194-b31e-3f8b869875f9, b7ff6ac9-8220-4a00-8642-def3c885b087, b80ebad2-cc12-4a6c-80e2-540148995472, b8179149-a91c-4c37-a860-7b4d111adf95, b8197827-3fbd-4057-85e7-8912108bbf58, b8382e03-f609-43df-932b-bd89fe4597e1, b8410c12-c062-4649-9c38-89e7993a3350, b8810487-aeca-4ed5-aa10-034bd9fb3510, b8928bc2-588e-4738-8a5f-7126563de17c, b8b6b1b5-dd4b-440e-8017-ae8dde22d546, b8bce06b-1d0c-4527-bad1-49fd09220215, b8d2d1fc-8370-4d9b-b0ba-ffafdc269770, b8d7f4a7-6c6a-4b72-9e71-2b09cc544839, b928b44b-d4f4-47f5-9355-62313ce032ac, b93be72e-ce95-4b5a-bba8-bac635c36b3c, b94ccf55-1303-43ce-b246-06572a30f33c, b94f376c-8c3b-4992-a9b8-bd6add5c0a9f, b95bbe64-5799-47cb-a010-50b3002ed63f, b9840700-7500-4b18-bf48-348e33bcc7b6, b9ac885b-31fb-4219-a860-3198a6dfc990, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, b9c84a1a-55ff-4328-ab0b-d372734ef48e, b9ee538c-2a61-4e98-90f3-37086a67202d, ba085885-94ef-4e6b-9b49-57fd638ed56d, ba15990e-2f26-43c9-81d4-060abcb9b50a, ba1609aa-8ed6-4706-aaf2-6811b8d9be05, ba1adf40-93d0-4930-b1c3-f3b09dee0b09, ba1c69d8-6f4a-4ba1-b277-a48be89375fc, ba39055f-d334-48c9-8a8c-049bf4794c64, ba7cb0c3-f45f-497f-a6ab-257a92baf5d7, ba907dd3-9c40-42f9-9294-4c39982cbc63, baa13b5f-ac3d-4a8d-bc5e-115e65391db6, babc4279-c7f8-4247-a824-3f1909f86c57, bad04760-d860-418d-975c-e82638475e8e, bb16c45e-e5d7-4c6d-9fa2-51cb3e635477, bb2d04fb-c174-4018-9395-285044e3cbd5, bb58b1b1-5ccc-47ae-8588-9bf39a6914a1, bb72eb8c-015f-42e5-9204-f3c93ee8ce0c, bb7421ae-7a7c-448c-84fd-d922c4bd98be, bb807df7-5a69-4bbf-bea1-a7ac3ab75f38, bbbe45af-47cc-4db3-b79c-76552064c66b, bbcb0878-28bf-4c98-ac57-fbe5fb4ad7f7, bc407055-7c22-4230-ade8-7cbbb1633f66, bc457145-4192-4b24-bd7a-0f6b4fbf2490, bc575a55-418a-4029-83bf-b9f174ce4ff1, bc58c55f-ac01-4e18-8c9d-83181608c574, bc5ecf78-5629-409c-9009-7138ffeadab2, bc6cd166-4c91-4bb0-b958-89f3790a8325, bcc247a5-0e5c-4c06-8134-077cbd8cdf04, bcc334b6-ff5c-4e94-bd05-701136b11180, bce91baf-fdc3-46b7-952d-6b6c9d76398e, bd127472-5d1d-4c32-b6aa-1c9bc284d067, bd301b22-2d6e-4bbe-9640-e5d522a82da2, bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130, bd465e8e-7798-4b34-b6ab-522893d35de6, bd4bcb66-b836-4ca1-88b4-d3184961f664, bd8d04b1-fb37-407c-a771-26756824fc7f, bda3305b-cf86-441b-b72f-fe74ad066e66, bddf44ea-8698-45fb-9247-c1b06c1cc24f, be082738-aa22-48ba-8ef7-a63ec89cf734, be5d2ee7-8a31-4274-ad9b-3a0c6bef5c5a, be98643d-ab9b-499f-8a43-9b496d303eb3, be9acb4f-f71d-4abf-ac5b-8c405c5b597e, becce519-affe-476d-b9f5-075dd7da4c39, bf04abc1-ce2f-49fb-8c28-6dd784232aae, bf04f91b-d930-4920-a8be-f7ffdba0dba1, bf52f2f8-e685-4036-87af-0096bfb176bc, bfa118c9-c942-4d0c-a881-f6457df48463, bfdf04de-4cec-4df6-94c9-0639747e2347, bfe34ee3-d75c-4edd-814e-874d462fbd9c, bfe4d4c4-8bd7-4e02-b53c-ff61ddcebe3f, c023367b-96f5-4dda-8520-cdb6f17a1343, c02dc259-9531-4248-adaf-aa425ffd839c, c03699e5-58e2-48c8-9bca-0bb7a1981ce1, c05c7cc6-9071-4309-8e35-1e0a86ed35b5, c05febe0-3a18-4bc0-8cab-f799281ed263, c071a710-df95-478e-8e22-c00c05251aab, c07c48c7-13aa-44f7-b16d-d0c1064edc9b, c07df9e5-865c-42a1-a826-ba5470ac389a, c085e14f-5e58-437f-8f4f-d2bae35c1d95, c09ddb73-9bb7-42b6-8bba-98c64a2e1256, c0a6e938-c8d0-4a8c-bcc9-ca7d78bbc852, c130d410-9a77-41ed-b478-d168e3a1a593, c13736f1-a5aa-40a4-b155-138153bc9855, c1634deb-452a-4f0e-808f-485d8d4161a4, c176df90-b455-41ac-8bac-9ed97a534790, c18bc42a-bd19-402c-b5fd-545b06a72b11, c19b241c-cb28-43b2-850c-a81897c5c0a7, c19ba9b2-1b1d-4276-94f7-1870c649a0b1, c1a6211e-958a-4018-a856-022206d39712, c1c309f6-0929-4f07-8fa0-4e5f6ff78d26, c2060336-5cb6-428b-b98c-367e0a82d844, c20716ea-8175-4fe7-9efc-cf87cccbbe07, c214fc74-b25e-4013-97c4-2f0b22076b8e, c271f1c6-a8ef-40f0-8ed7-8422c19730da, c27581a4-c1ba-43ef-8843-2776ed4e26d5, c28f93a2-d77b-4ced-92dd-398d0e13546b, c2b9371f-13f9-43cb-bf26-c0a1befc9862, c2e55b29-0ab5-4c1f-8dd2-ec78dced4311, c2ea4660-b43d-4ff2-beb1-e5e9d1096709, c2f7e62e-fdf5-48cb-9daf-ac09ffa4a354, c302846e-3879-4106-a4eb-a0259561213d, c33cfed1-a693-4d8a-b442-48abdb5e5b36, c3a1a7a8-7918-4d34-9a19-2b89d62b61ae, c3c99043-a62f-4b4b-ac8b-0f2cdef7797a, c3f0925c-0210-4d55-b78c-013740610dc5, c4018919-3267-409c-a379-5c798e0bbb3f, c464f978-d5ae-4fd7-b9a4-467ae0acb772, c5184097-741b-4ae3-920e-2814cdeed15d, c5697cd9-18a3-4971-9724-036d2ca7b0ce, c572c2c9-b05e-4c68-b1e4-e6d41378b6f9, c5937ad3-376c-45a6-8a57-ce68354f18ef, c5b08bce-c325-417e-8a15-3753a1001d6a, c5b531f5-539a-4f42-b351-f52bc1fda321, c5bea8e5-2a14-4a98-a7ee-823e2dbeef7b, c5c195ca-5d2b-4108-bd93-fd0c0bd8f508, c5e5b112-b16f-4ac3-8aa4-91c663835e74, c5edf70b-db99-44ed-b97b-937fd8dd058f, c640d22b-05ef-4796-8ad8-016752febdfb, c6bfbda9-1d08-4d2b-ac29-49034adb3ed7, c6e951ca-17e2-44ac-82df-33391b4db275, c6f4d4e6-8d86-4480-8802-42e977024c20, c71a6e90-33f3-46fb-aac5-9ce0d00da25f, c736e459-cd89-4131-83c6-f9827c7ddcae, c761cc5f-327c-4eff-aa97-bd4d0bb90f73, c77ef689-1e1f-4a4f-a1c3-f7f5911ab1b4, c78a30af-6499-4687-a1f3-82d0e8534d78, c78b4fe7-f9d3-47ee-8a44-39af4b20f014, c7914510-4c32-481a-a99c-798ba55a4784, c7a3f5f0-e311-4b6f-ac5e-f7e9222514af, c7a97440-c0e6-457d-b039-1468ed1a1eea, c7c310cc-42e7-4592-b2ff-9ba8525ffc37, c7e3e965-0998-4b00-9caf-bf15f6511e65, c7fcb1e0-9b99-4796-bcd9-099842d3793d, c82243a6-a966-4cfa-b0ca-b1407b048925, c85d1176-14a5-458e-8926-97605f7c6bb5, c860ad0d-72c4-4796-8a28-df24f3d6ed6a, c87d04fd-b261-48c4-8486-a1ed118348c6, c8a9f5dd-32b5-4272-8ba8-79772a2fb247, c8c952d9-afb3-4e76-9e27-6fbdffe5a0fd, c8e6b28e-8160-4b77-aa99-711b64ece34b, c8f4ca95-283c-4e85-b02b-7e32587713c2, c904d8fe-746f-42db-9731-dbc2f2c95dd0, c9af6a6f-01f6-4bcb-a3bb-800b63e94973, c9be89c4-7a3f-4639-905e-798b8748005a, c9cca5f1-749a-43b0-a3ec-77608b7cc93b, c9de73d2-d8eb-4ff8-88ce-db998ed06612, c9f396c6-59f5-4913-ab20-561537dffc55, ca06168e-1133-4268-af40-2cc24071d024, ca19c316-b204-4af8-9ee5-7ba8e4980bb7, ca1b7929-720f-4213-920f-aa63a5e8ba74, ca2c5cf1-85d0-410d-9485-ab80ee8a9c4f, ca59aa5f-4874-40cf-83f8-720daa833d05, ca5d9b2b-ea59-43e9-b22d-0f11dcd69eec, ca60dd4a-4c4c-4e12-b89e-f5748b98bc23, ca8320c9-f26e-4332-8e78-6bfcfe646448, ca97b4bb-eda8-4abb-bd66-e0a5d69bd962, caa2bc61-8a9a-434f-b353-fb72303b4408, caa74106-b596-4c58-ac25-ad85fc2533bc, caafe42b-7128-477c-a941-cbebe1855871, cac13dc1-1768-47f2-af6b-5fe08c8bd380, cacc76cf-388a-4f37-9dbf-1cd92b5b6998, cad4b8be-2bf5-4fe4-8acb-51c704c4a2f5, cae41967-896f-42f2-8368-0c113ba1de75, caec75ca-50af-4847-9919-ba21568b3448, cb177648-ff4e-484a-87cc-be96a5df945e, cb52e3c4-2da0-4dbb-a312-a74c55bdaff6, cb80e615-f651-4283-b6e7-ad83ab557cb1, cb85959d-af5c-4f85-b2b4-77b3f7b77adf, cba2102f-ac32-4248-9ded-8a2743f3f30e, cba7aac0-7bba-4707-8c40-c892562d7d94, cbccbab2-4e45-432b-bf9e-a8f292f451d5, cc125826-afd4-4317-b65d-9c2375ccc519, cc2accfe-756a-4ffd-8777-c25ec805fad2, cc2dc693-ab66-4812-b62a-31e8615b40eb, cc58c3b2-cee5-4e08-a2a1-7b15a916d33d, cc64a718-b2b3-4fe6-831f-dc7d2429d200, cc7f7c16-22ea-432f-863e-2d26c87bb1fa, cca85add-4217-42a2-8fe5-18310a91b566, ccc3dabd-fd57-49fe-a2b8-6810af1f4f02, cccd6ed5-7969-4c6a-800d-f0ebbba3f8bd, ccdd44ad-7c19-41ee-9989-7d95a90cf1dc, cd45fabf-e7b2-4276-8056-1ff05054ab36, cd470544-dbfa-4aee-9dc8-92e4bbe23967, cd53028b-b24d-45e0-b0bd-e41aa532462f, cd75cfc2-6292-4651-b562-dcf4ddfa2fa0, cd810824-5106-44b1-abfc-66e6fdc2e7b2, cd9a28e9-00af-4a8c-8bee-1aa5d5cf10a7, cdaf8aed-997a-45da-8ba6-3f621aa6a25c, cdb5756c-f09a-4a6b-9e10-d29ec8fdc2a5, cdc9d519-e12f-42a9-a171-0c16544585cb, cdd3a734-3f73-4419-ad9c-fb16001a6948, cde98da9-c3fa-4379-b181-ae6e3404c89e, cdebf058-4b66-4da2-8f84-174921fd04e8, cdf3601b-c3cf-47b0-b6b6-1bfbd47699f4, cdfeab83-8c20-4900-b16b-149689924625, ce07d233-621d-4ae5-964d-e697cdda7ce3, ce0aee41-ecc8-460c-8b85-2930421df353, ce2bd879-e7bd-42ef-96f7-9629ddf5b28f, ce628d5a-7c7f-4cef-8287-c98b4bcb268d, ce9a43fd-ae92-4084-b642-97dfe362a430, ce9d8957-2875-4287-803f-e465f58d8205, cec3af87-120b-4bf1-9505-12a338e9db32, cefa39ce-8ee6-455b-a207-512b9f669138, cefbae8b-f1b3-492a-8860-35ed273edc4c, cf07ffb0-c4f2-4e63-a904-05f442cf94ad, cf251623-6b00-4362-b7e2-5101efdc8a6c, cf305a53-499b-4a4f-b053-4e8845233d15, cf3b4344-548e-4363-8958-a210ca6217a1, cf518a8f-183e-4bcc-92e8-dbe995c3f46c, cf62e036-d10b-482f-a382-432b1a95d172, cf6a74a0-6edf-43c1-8570-8bc96cb4c49d, cf6eb548-fd32-459c-a1d3-78d461f36f1b, cf6fa2b6-c3f6-4f02-900c-2d2079ca64bc, cf790230-d751-43ba-b1e9-e7db8b739c7c, cf8d26e2-284e-4fbb-b1e2-81e8d42f71b1, cfd32d15-2021-41c4-8ead-5be38a28aa5d, cfe35222-2ec7-4391-b01e-9087804cf853, cfe6730e-58ac-4b2d-ab09-7539ad12abf2, cff49d34-7b23-4bcd-83e2-5b9a7e1790d7, d00bf8aa-57df-491b-97d7-ad6e40cc9adf, d013b0a8-a436-45de-92a8-87bef74cc5d0, d081c5b3-6a52-4506-aae0-78538560288d, d081ebe6-6068-4e66-bec0-9c4ac58d3b62, d08a6381-0eed-40fe-bad5-a5f4aaeb70c6, d0abb152-1230-41ea-a0a0-bdcb29c04e73, d0ac79e4-0923-419c-b6fa-0192d1e9373c, d0d5126b-594d-46ee-b665-1c9e371e9b27, d1235a06-4a54-4f8b-bf79-85737d749d51, d126977d-6ce0-4d77-a70c-8b5605609a67, d145e314-4e34-4916-8b80-f4c680ca3c65, d1c336e8-58f8-47e6-8504-db9012ddf377, d1e357d8-0d59-45e8-8cda-866b5fca7bd0, d1e88c78-08ac-4342-a8e1-8bfdd26ebb5c, d1e94cdd-94f8-4b9f-81b3-d032d777a040, d24a8f19-cf02-4fb2-a0e6-7e2b6028dcb7, d25284c9-bf22-4208-a9c7-2eb39791ea6b, d259fa8a-9f8c-4277-a0ed-83bab836edeb, d284bff9-2309-496e-a951-8db42ebda163, d2a6bffa-eb09-47d8-b764-bb3c343d6dff, d2b69400-f132-465f-95a9-1707dc869b50, d2f83651-097a-4149-afe8-fd18b05d203e, d30b51da-7a0f-4ea6-87fb-faf42e174c8c, d347cd3a-b22c-4376-b95e-7473a3bc9937, d348ad4d-af62-40bf-b5f7-8593b5e44621, d34bbd33-3b2e-4efc-8178-c8b044a5ef37, d354a730-87e1-441c-b35f-0f4665e00f11, d3749c15-060a-4954-9930-5049faf581be, d377f6e8-6b7f-488a-8ac7-f979068b303e, d3a2c3b3-2937-4a89-b291-ead3cb711ebf, d3b0b17c-d4ac-4f48-a3fe-aa869b803fc4, d3bc2099-5bb2-47ba-840e-9eab15852e6d, d3ce61b7-df28-4bd1-89e5-c53e1c24b176, d3d7a71a-ec67-4f06-870b-11bb2468e23f, d3e3556a-7ea4-42f4-9eed-a49244d52e59, d40204eb-cd4b-48ff-a535-6f8a8299a67e, d429ae15-5fac-45bd-8c2d-19d1dd47ad52, d42a1699-be26-4cee-9149-497dc0db1a01, d42dfa49-d5d7-464c-aa5f-18549fba4b78, d45569aa-5093-4494-bdb0-278f57989624, d4571f68-7366-4f3c-ac48-9de0f3f51d23, d4628484-3f75-4ec0-aee7-f8e0c8c9569b, d47d933d-ae63-4c4f-be48-b8fb40358410, d47f59d5-3bcb-42e4-acad-3b021be48820, d48ef2e7-a338-4e6d-9ce9-b45d4f1173e2, d4c532e1-582d-4f9a-abab-9ed6127d6890, d4fda43b-0bd5-4603-9f04-ec87f9f1a156, d52600fc-5562-424e-b085-71833a11a7ed, d54c5d18-93bb-4dcd-8bce-eca53539063b, d5691b8a-79ca-437e-a1f7-fba988748fd0, d5c3f89e-7084-4e7c-9554-ef18af5a29e3, d5efd0a5-e256-4cdd-be53-e99b84a4b7b0, d6627b03-a543-4946-a14e-3417d439c09c, d679fe33-26da-4ea9-b192-2745158ca546, d67a3e71-a4a9-4ac7-9bf7-c22aa610bf19, d693088e-97e0-4d43-a434-1b1ba04efb89, d6c97880-d7ad-49e7-a1ac-844989358cc7, d6d27709-cc28-48f0-aa31-05df6aac730d, d6e76de3-dca1-4969-86f6-83e2d5243405, d6f4aa52-6086-4e31-9c16-9f23f624bc4d, d714c100-204f-4a21-aede-1cc6f51f9e82, d71c6739-805e-4e52-bdcc-49426c80401a, d731c19c-f9dc-4980-8908-b2584c4c4f50, d73d8fe8-98c5-49be-a032-a9bb9e532269, d74419a1-5093-41f5-8b7a-63a1a8ce9ba6, d74737ff-269d-456f-8d3f-93d7fda7da6d, d74d9a41-c354-487e-9cdc-b0dedad139ff, d7632354-45e9-49e1-a7aa-f7580890729d, d774d687-849c-45d5-8f3b-a0dd7ba95d47, d794f6f2-7593-430c-ae4b-74171178bfd0, d7b87b04-d19c-4bed-9d3c-115c07257649, d7c7dde2-d9e7-42d0-a64c-0fe378cf7849, d7e03635-8d07-4e35-950b-9cca6df67db7, d7e23e27-5fc1-4306-a92c-0b179d13a2e8, d7e5170e-b447-4c84-bcf7-d6ad04345412, d80ba240-cde8-47e5-b422-fbefb85199f2, d80c0d64-d239-4376-b100-da4df33c88b7, d8196652-4881-4e68-85a8-f8747718c9cd, d81b7cd8-d85a-4694-9943-1a79a5309bea, d81e9275-d9d0-42de-8710-dfbfdc2f30bd, d823a4c9-49dd-49b3-afb4-bc10e3c7490e, d8733dba-6592-41f4-a6f5-8d38503dc7b4, d8760525-d4a7-461d-962d-243a195bf9c2, d892c211-5bdd-4cf5-9c01-c56a6ca294bf, d8aa8f2b-f508-433b-9db8-bae992950707, d8b3be4f-cb11-448e-b926-77bce272fcb5, d8cb24f8-df8f-4f7d-8c5e-298d1970958e, d8f1a0f5-4d3c-40a0-875b-783b6dc6a79a, d906890c-b2bf-4927-ba9b-fb991559473c, d928b49f-448d-4022-8a0a-adbfe479f1e9, d9440b42-8ddb-4406-846a-021b44bead1d, d961ac49-6b24-44fc-bca4-8e6857df97ab, d96ecdeb-212b-4188-8513-c3c143459072, d97b6735-4a9d-4a01-8ab6-dbe02edb8290, d9c97377-b491-48e3-8211-4428232aef00, d9ecf28c-078b-4f9f-b47e-8407297a277b, da35256e-970b-4b2d-9e81-5c4f735ede70, daa7278d-811b-4549-9d4e-a4b09256ccba, dab41f2c-88f2-40f4-9a3e-b1b72435e412, dadbcc5d-2797-45a3-9fb4-9113d9a69402, dae65a5b-1748-4dbe-95cd-9ae041f79514, daf050de-ee2d-4353-bfca-b619e265c2a8, daf72778-1dab-43e5-8db3-b11641ecc0ed, dafa4a74-c640-46c2-bd2a-b0a699b706d2, db1107fa-7e24-49f5-9565-29348e643061, db4322da-f7c1-429f-b4f8-673851366c25, db492503-7038-4787-a831-423e3cde1a1e, db583511-4a43-45b2-bc4c-9b98bfce7356, db6d727b-50c2-47bd-85c7-ea38b0ae2f77, db76f8a5-1fca-4aac-b664-8fbf24d0090e, dba5be8f-ebda-40ed-80c0-21c1ee10cb6b, dbd67bca-a9d3-40e4-8009-10f9899bd9eb, dc0b3a52-a8fd-4109-a43d-4f0a5109edfb, dc2d1d3f-d984-4ed7-8b38-74a65f0b9a3d, dc975e63-fddc-4c7e-b453-9515e53e6f1c, dcc046f2-6627-489d-a770-c5af96d7ed5f, dcd0fda5-f92a-400f-8cf9-1c0e8cf44a00, dcd925df-e87c-477a-b2f0-41f67769b1e5, dcea32e6-d872-48ef-8ed7-e90913df19cd, dd7cbb36-a266-4a6e-a091-355e6c25e96b, ddb8188d-7702-4d67-b6f4-1247299e03de, ddce9f05-a2be-452d-89ba-466d56dd250c, ddf02c0b-a0a1-44a3-a5a2-e51d0e5be176, ddfaef5a-d252-49e1-88b2-54eb2bacaca9, de27fd4c-42d3-4f90-ac35-adf511c1386a, de404977-0882-4fb5-8b71-e9a7648dfa93, de4d754a-e465-41bb-afc1-ad9d5bec5ef3, de6e2c3c-b1c7-45ea-87cc-0e5506b9703c, de740234-1219-46e7-85bd-4e2646892862, de7d1fac-6e27-4641-8983-b81af8163c0c, debc6e39-8a76-48c6-a11f-aca84568d3b3, debd1910-f9b8-47c4-837d-1bf5f292f6e9, deed9643-c339-40e5-a770-6ff3ce173afd, def88d57-e8b2-4ee9-8fd9-8782c3b26e26, df21121c-c644-4144-b79b-547ac5a3312f, df39a4a6-f70c-4c90-b6a6-5f554e75fff4, df530883-0a08-4db0-9c2d-a62c9c39ad4d, df5f491b-f171-4261-8455-0ee9d2078073, df61188c-4bef-4746-a5a5-cd43f39056bc, df78eab9-377f-41de-a3b3-7a6e8239a4f7, dfa02a11-8721-475b-be5b-727ec1eb6686, dfa9b258-fa91-4d01-a4af-299e2e555119, dfb194d4-e73f-46cd-a279-b8701d62b7e6, dfb78319-ff19-4f3b-8c86-ec21acbf8e55, dfcc815d-346f-4e5e-88ce-ff9d0a0cc168, dfd013de-7115-40e3-b7e5-c3d253a1e4e9, e02a3cc9-4b04-4c6c-bf08-32f61796c30c, e02f2dbe-72a1-4ab2-940d-698789c750e3, e0374898-c9bf-442f-b4db-0ca0cede33b8, e04551ea-35aa-4c61-90aa-ca5fe90998ab, e049f767-0877-4e25-b290-b760991a9b6e, e0afd7fb-04fb-4504-94f6-4852964722c8, e0b0751a-f840-4a33-88e6-5fe5c279fc77, e0b892ab-0cb4-456e-a585-c1f9c9b10065, e0e42e86-843f-4946-9423-f90972a04e52, e0f2ca2f-abbe-45ff-a54b-6229b11910e6, e1071a9a-90b4-47c0-88d0-3f564e848eba, e135e4db-d897-4a03-9eeb-017793c04d6f, e1508066-0bb0-4965-8f2d-b762bdaf2f42, e15270e0-8d5e-4026-9dbe-c5c227913097, e16733bb-2cf4-439f-81db-85686dd3b786, e1739994-6ae2-4ae8-8b1a-4e54d183f406, e17f6a99-f39d-4761-ab03-e7f316718336, e18e0cbb-8e20-431e-ab64-c26140f5d275, e19856dd-c15a-407b-b2f1-792e213cb5a1, e1b16df9-f536-4193-bbd8-3cd9fb26794a, e1eb9f06-d9ee-4cf2-9ff7-17913d8876d9, e1f8f7f7-d893-4af5-bb2a-c14575272dbb, e207a6e4-2c51-4a27-8919-4a7c8f63d38f, e221afe9-9dce-44fe-83da-3418eb176c2c, e22b0c47-afbd-49c0-9ce2-36344e30cc7d, e23d1702-0f53-4944-ad90-953d0ceadcbe, e27bd3d1-01fa-4acb-a2db-7adb940f058c, e28a9f25-670a-469c-90fa-c560f0f4141c, e2c4de85-86da-4de8-88b5-d1fbbecd4f65, e2d83edd-de89-4fec-8fc0-5bfa8d2e1ac5, e2dd4af2-986e-4b91-ab13-bbfb8edd245e, e326874f-0cdb-4185-80bd-7709d67e5d31, e334c356-3ea4-418b-bdf4-ea057b871445, e362b189-ef58-428a-a5e5-b3e33778427b, e3aa2c85-1599-4cc6-b645-eaf016131aea, e3c160c8-d1c8-40bf-a805-dd7276486eb5, e3dde182-c553-4145-a2f9-92ac7c1607cc, e3e49ced-4c18-4c22-9502-c4309a847eda, e413d4c1-0d92-4e12-82fc-754281f758f9, e42ba5e7-024e-4020-987b-1c693abe07a5, e438e16f-4206-48bc-a7d4-7fc31a72b249, e44f7a12-57d6-4efa-b698-6a1cd12f22d0, e48cbf66-eb6c-4025-bf2a-6003030aa080, e491cbb1-dc0c-42bc-8193-f01453ca620b, e49c7d3a-ce2f-4663-af69-b377f7facff1, e4e7d4cf-0996-45f9-a4dc-2e96302f5fb4, e4f5d2df-c52d-4eb6-8e98-b28c961b5992, e4fb7eff-96a5-4dc3-ab8c-867a829e4480, e512448c-464d-4d66-9027-69891f541f4b, e53b9d7e-f6ac-449b-9aac-f6b75c1fd001, e54a6190-9c7f-4500-8940-a7b79bccf923, e56254af-2110-4213-ae12-b4a72c2ec718, e577d018-cc72-4f69-8814-71343aafde90, e579e1e6-178a-4814-bb11-1732c027952c, e58cdd5a-9150-4374-9dde-f633e5d88911, e59bb23b-9fa8-4e82-931c-85ff68ecdcf4, e5aa58ef-d2bf-4869-9039-a5efc3ad9a63, e5abc1b8-d741-474b-9136-cfa01b8a3e70, e5c7119e-4ef9-4cd3-9244-cb0a10e2646c, e5e12b68-0925-49d6-8cb7-9ed83a978483, e5e251d9-3c56-4072-9580-5d97fcb49879, e623cee6-40d9-4b95-8f07-bba35a918c69, e6302743-6255-474b-9af0-5f1ed69000c8, e6371f02-1dfc-4e2f-8a6e-4f6f1ade5e5f, e649ca40-36f7-4965-9dee-2048680c2cc5, e649fe2c-2982-40ea-870d-195e5059dc3c, e64fb373-7ca1-4216-b450-fdaeef5dde07, e651e9a6-5a79-477b-ab6f-afff311d0ef8, e68d940b-fc01-46cc-bb83-be72523307d6, e6951d22-9b90-442f-b6ff-6450eef71b20, e696a0c7-37bc-4520-af2d-7d600048b871, e6b05fa1-411d-447e-90ab-ee13e24654fc, e6b25d39-c17a-4570-ad4d-bff42a6bf83c, e6c82c40-7758-4e55-b409-8957c4ededf5, e6cb7fa6-efa5-4ebf-a668-7ecd890be5f0, e6e4882c-94fd-4ccb-9817-821f264a3898, e73cb19b-7f2e-45d0-933a-17a776b9e214, e7a4c591-dff9-473c-aa24-56795e95916d, e7a85949-9664-438f-a83a-45d2045706aa, e7fb54f8-25e3-4809-8981-7e5ef4d3463b, e801243f-01d7-4fdd-9819-b5ce530b96e6, e8315f56-1f5f-4191-989c-c3b0f64ffe7f, e8355945-47c1-45ff-93c4-a3b09852ec6f, e866f094-74d8-40cb-8136-a12116d40321, e87e7a5b-1504-4c8c-9f33-95d8c1e9f220, e8805518-8756-4db1-a63c-c827b2134ab7, e88dd3a7-7b0c-4651-ba3b-0cf7a5e1556d, e89a86e5-95e1-435e-91af-3e9d653dad15, e8a26b59-6e74-431e-9e96-8e7644a3ef37, e8a65cef-6d44-43bc-aea0-53dab0efb675, e8afe6ca-f3c2-40e6-a5ec-94b95c9f8bd8, e8bfa697-44cc-45d5-aaac-8a96fad34dd3, e8f6c4cc-7aa6-4d3c-b3d4-fd52384aa40f, e8f7d3c5-5983-450d-963f-28b5e292d2fb, e903c872-9dd2-4acf-a419-0bb3fd2c9747, e9157952-f032-4f5f-a986-8af201aac701, e92abe21-ba67-475b-825b-560edb92a0e9, e9fb2d1a-9065-4cf2-9123-c10090785b1d, e9fe7c16-cdba-4084-a007-48bff5aee6cd, ea37e3a1-38fb-4e8d-96bf-80ac37c40b39, ea478ec7-0c59-428c-b6d6-57209b0b0dce, ea5b6aaa-3f11-4e7c-8c8a-adb26b9a5bfe, ea7a3b25-50a7-4faf-8e41-b9a3f4b0185e, ea84bb13-6151-47f9-a162-08395f5e44cb, ea8ca829-1a3b-4115-9862-f73085a1187e, ea9cea20-1e96-4564-aa13-6d85d3ee4776, eb002ee0-9f41-4916-830d-9392dd388867, eb8a8993-c953-4905-94c2-1d2fc07e98c6, eb8aaa94-8401-4e93-9bdc-5d5b18ba6926, eba0373e-c062-4280-906a-ae5cb826e26c, ebc26b38-b9f5-42c4-9b19-021b3678e0c9, ec02336e-f89c-492d-83db-31c052f80c09, ec0464f2-2c45-4f06-88a0-7b1fd5d8972f, ec12b639-3857-40e2-89b8-d764344bbbf3, ec1bce37-76d2-4f17-b471-9913d0e0f02b, ec1c4445-fac6-42f3-bcf4-2e961899d0f2, ec250d4b-7602-472c-8bad-5913bf2ce703, ec7a7b6b-dfd2-43c8-830c-1a3d7ee73720, eccd8c53-36cc-4aa6-ac75-367ef9a2f236, ecf1e856-88e9-45b7-b24b-a075f00c58ea, ed181100-252d-4d9f-af26-101f0b8ec9bd, ed29c17f-e9fe-4faf-b986-b4040a969812, ed3083be-e22e-49c6-b415-ddd898b4eb20, ed59ada4-a4a5-4006-8672-112c050c17d7, ed776ee4-cf5c-4d9a-9de6-32bdb75e845f, ed7bb004-0927-4535-8e15-05d5a92b6126, ed85ea69-b0cc-4a07-b8f8-1032a1655e55, edaa4293-cb41-48fb-bda5-bc6e3c590c47, edb2aabc-3f5a-4ef9-8349-8ff22f5af3be, edcdeac0-fee7-4a93-8d39-a6a517ffd21c, ede0da13-dbfa-4dc5-ba66-2c66b8f6770b, ede69993-ab33-42fe-8b10-3072d5d7ca9d, edf98e49-1d9d-4088-bd14-bb2ed8a988b1, ee004829-987f-4bf6-853f-53e0d12dcc4e, ee16e75b-b764-40d0-a255-144edafce358, ee68bd86-da1a-4f18-bd22-fe2544741329, eeb8d545-82a0-4667-91f8-fbbe6e6bd21c, eeb9c87a-f1db-4d46-8b29-74a5507a026a, eed5ca37-fd8b-4470-8e57-8ddc5b735cf2, eefd16c9-3b69-42cc-bdf9-9900acea7db0, ef14834f-d5d6-4c24-a11b-805e7ce23741, ef246c45-7f8e-4e4d-9300-0f53797da379, ef7c2b11-c939-4db5-a17a-4d0242bb59d8, efab77c1-4226-462d-8551-ad2e2f84ef62, efc3d680-7642-4ab5-bdfb-dd32554689e9, efc522ba-d977-4a2c-8e7f-8607d5a9b4e5, efd76d2a-2e6f-462a-b48f-af49421a5637, eff082f6-784a-4423-80be-04bfc8c38986, f01a866a-c80d-4eb9-9924-a0c4786560ea, f0305def-1173-45d9-acaf-d652dba81f8c, f07eccc5-6190-495b-b9d0-8714a89519a7, f0b214f9-bb87-4447-9174-5f84cd16be5d, f0bc1602-8e04-492e-8084-f97e619154a3, f101960f-e242-4f1c-b68c-57304394283c, f131ffdf-10a5-4dee-9749-d5d2a93530ea, f1c9416c-9b75-470f-a7d4-eb709c2b94f8, f1dfdddf-cb4f-4016-8ea2-be11f8690f8e, f1efb742-f840-4bdf-a357-6d77cbacdc03, f25da476-e868-4212-96be-b07c27674a4b, f27f6e06-d187-4a49-abf0-4a9623593081, f287d107-e6e1-4e4c-9a8a-a6a1e7ec8243, f292139c-f239-412e-8814-6c98fe7e5291, f295cc5b-f343-4a13-9803-29069dd6d191, f2c37d5e-bd26-466f-b8ac-59d22a3ad963, f34c76e2-d14e-4565-96e1-f301b9d6bdd3, f34ff366-7938-498d-9b91-b6104e0e5313, f350b650-117b-4928-8a2c-880663dba031, f39ceca3-1e63-4011-bf8b-bd31add99096, f3b69e4e-7ac6-4ee4-a329-7f6241e39bd2, f3de2e88-ebfb-41db-9af1-21092859a3fb, f4183841-f7b5-461d-a348-9751d6aa656e, f42b4e80-c9f0-4220-9348-10c453ea1082, f42c5da7-d32f-4b1b-9e77-df5920906ca5, f4426192-04a6-490b-954a-a125b4acfe22, f48bc073-43bb-445d-b242-f0d3f1ae489b, f49065e8-0e7a-4d73-8e85-b13d1f6d4069, f4a0c5af-a02f-49f8-8134-e414b9584297, f4ab12ae-58dd-4cbc-889a-d25616781336, f4c00000-5227-42cb-aec5-30a0148a5853, f4c97cae-f998-44da-9f00-972778cfbf35, f4cbad13-691e-4e22-aff7-7184f9af5a97, f4ddfbc1-719e-48c0-8cf9-7250c2703de7, f4e06974-067f-4575-b902-ccb3ab2ea1a6, f4f4e8ee-48f4-418c-8a15-3eded535b503, f525795d-60dd-424d-86f7-9ef46f9d3c9f, f5471941-975e-4411-aa7f-50358779253d, f59c806a-3598-413e-afcc-aecfe84ff2f3, f5aff3e6-b7c9-457f-87a4-cd55176ef75e, f5b12bd4-0444-43fc-a20e-4b86a4d5f81b, f5b6318e-504d-4228-9bb0-31821010f93c, f5c37329-c6cc-458f-9025-9e7c67df74df, f5ce12e3-f173-497d-a7c9-b1d517d0edb7, f5eaed2e-6d57-4938-b8ab-bfa3e858ee9e, f5ec49bf-4ec3-4d32-a424-b26f33f2c57d, f6198e63-d491-42c5-bcdf-7f10a7a0e63b, f62d6264-4caa-488d-b1e0-2a9d30bb731c, f653e178-9865-449f-a3ff-3e1814312df2, f69c3d7c-c627-48ac-9265-0a6853ef8c75, f6afebf6-9cde-47ab-8109-995825e43e21, f6b81da5-33c5-48bc-bc08-88bd4895efa9, f6b9cd55-b435-4e2d-8b9d-0b8899ded979, f6ca1084-fd5e-4ee0-8800-1980f5c22f83, f6d9c0ca-cc6f-489d-ac32-15896ce99bfe, f6e0cb3c-1a9b-4c7c-be0e-618ae1005a3b, f709f630-5bbb-43da-a987-e97916b3a32f, f7115581-8a64-405d-b5ef-29b9672894c1, f72b3a9d-1052-4756-a0be-bbf73f10cb92, f74f4304-eabe-46a1-8b38-69245d188446, f764802f-e362-40f6-a211-6fdc918f5dd9, f766c3f3-e528-4281-a84f-9b849c03babe, f7793c53-bd71-4d43-9ad5-91e1602875af, f77a1f88-c4fb-4018-a4fc-9be1a4b7eecc, f7b79ed5-a9d5-4ea4-aebf-fd0b0658f68d, f7ded52a-ddcb-4ab4-9d32-553ccc98d210, f8010b77-f697-4335-a14f-4d0a16adfb98, f85d30ba-9c15-4e7d-a776-6a5927f8aeb1, f8625ff5-584b-4741-8df3-774997be976b, f8ee50dc-c4cb-4a8b-b02c-a02332b97b89, f9074e49-1435-479c-b032-67f6a21bf100, f9434a17-48b0-4b43-8598-30e1b66fd68c, f94e93f8-184b-4a30-a62d-8c9e19082178, f9739964-716b-4b96-9144-59cc171696d5, f973d222-cdb4-4c3c-91fc-720266978738, f98755cc-3154-41a8-acf6-7792772d8396, f988f7f7-6e5b-46e7-9279-9aaaadd3047b, f990ed56-4c99-4a31-8cae-6e780e53e8c3, f993bfb9-f589-4f10-ab8f-1064f23efc99, f9a9d6d1-c05a-47b4-89c7-6235a71d4390, f9bde4cb-0b5e-45fa-9210-86b8b471f811, f9cab4dc-ee48-4247-bf3b-59262f8aaf10, f9eb2c5e-b3d0-495c-bce6-d2a1bad08fd0, fa00ec0f-514d-4937-9110-c105e18adab0, fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f, fa1af5c3-8060-4f9a-8cd0-579078c0868e, fa31d647-e883-464e-80a3-f0da23f58d42, fa391e82-4012-4ce6-9fb9-4ea974190f40, fa55d11d-696f-4a2b-87d3-efd25c01191c, fa7a4a1a-3c4e-4d7c-b9ae-bb9b63058065, fa7b9008-0246-4573-90a9-92c48a01bcef, fa826b8c-cda5-4376-886a-e9752acd35c7, fab3969f-d0fe-4bda-a3cc-9ec9078ddcee, faca49c4-b7e5-4d2c-922e-ffc0abfb2d20, face1943-94d4-40bd-94ff-bcc0bd403c11, faf4f3f7-22d4-4ba1-b993-218c11aea0cf, fb36800e-b01d-4f94-aeb3-0c12820a49b6, fb4be846-3bf8-4a8f-b747-a4b2cadd8fe9, fb6d46e7-57e6-4a55-80f1-2a56f74c8450, fb8d9b62-7097-4fa8-950e-e8ff629ac3ba, fb9c1401-15ac-49e8-ac4a-39c2a322becc, fb9cfcb8-0196-4d1a-8c8c-b2b4a54ded4d, fb9db24a-849f-458b-9a46-0d3820e60570, fbabeb2e-6168-4b9f-8f3c-a38a782ae5d0, fbc4e8dc-0389-4216-bdc3-1dc21d7a9cb8, fbe1c4ac-c56b-4916-aa22-6924c16f7d09, fbf90350-a101-498e-b408-8d397be82e69, fc0608f7-4060-4c09-90b7-7d886d21fe66, fc1aabc8-c74a-4655-9f70-d41dc7d5d9a9, fcad6b44-d6b4-436b-bc37-9adead98e368, fce7c112-bc25-413f-998a-bb09fb578707, fcf8d3d0-fc03-4b7f-bb33-726333c357cd, fd1bfcea-a89b-499c-b378-73133bbd1dc0, fd3311f2-ab9f-46c4-93b3-557459eac8fc, fd42721d-8e52-403b-a6bb-a3a92b6f1c03, fd5940c7-3435-4253-a981-6ba8b67513f5, fd5e0bff-5f3f-48e9-81ae-9e35937389a9, fe133187-3018-4c62-a21b-247a9aa64171, fe1deca4-9f03-4fd4-8491-b304a0b32428, fe219f63-0ae8-4eca-a355-18a071ec6aa3, fe3f49ae-8ad7-4a50-8ca7-f4551f4c0f02, fe420e96-dead-4ca9-8574-2a0bc2e4b718, fe57d10a-84e5-473e-90ea-c53d755cf00c, fe60fe36-387f-4ccb-8b94-e655d9794743, fe62ce8d-7f75-4af1-b00a-60a773c4c467, fe8020c8-eed1-428d-b663-c518aa8fd02e, fe83ad99-9a00-44f1-9997-e65374217a55, fe879141-cbb5-4f50-93be-7140bbf95541, fe9f3d39-1331-42b6-bff5-92003892c9f6, feb4727d-aed7-4654-81ce-440de5a51367, febf4207-f581-4cd4-8ed7-85267da71794, fef0a505-2c06-4140-be0a-f3bdff963752, fef665d1-458a-4289-a8d4-5dfe32677382, ff1daf6e-f27f-4f14-ab0e-004d06193048, ff2d4bbb-6f35-49e0-bd75-5e091d2b32fa, ff2f98fe-df94-475c-9f17-a2e0e0ea131d, ff3f1adb-60a8-4177-8c1d-b1e52cb53505, ff521b79-b098-43a2-b640-4202d6fa468c, ff5c4642-96c8-4b1a-b876-11580a9ca129, ff5c6b93-0ee9-4e10-9b7b-605e020a6e13, ff73d5f4-f7a5-4e30-b7d4-1e63cde35abb, ffc0ddd6-0a75-459f-b699-1b264a8ce69f, ffddaf7a-39f0-4ff6-a070-46f812d3cd2d, fff248b1-04d6-42f4-89d1-c51ecfbefd70, fffef8ef-b7d2-43b5-afaa-7b521f95db2f, fffff56a-99ec-499c-ab16-a668477b63d2) and `date` <= 2026-08-24 group by `account_id`) {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select `account_id`, SUM(CASE WHEN type = 'Debit' THEN amount ELSE 0 END) as total_debit_fcy, SUM(CASE WHEN type = 'Credit' THEN amount ELSE 0 END) as total_credit_fcy, SUM(CASE WHEN type = 'Debit' THEN lcy_amount ELSE 0 END) as total_debit_lcy, SUM(CASE WHEN type = 'Credit' THEN lcy_amount ELSE 0 END) as total_credit_lcy from `journals` where `status` = Posted and `deleted_at` is null and `account_id` in (0000737c-1042-4f83-9f2b-5615fe20787d, 00204d0d-8c4e-4226-969a-b92eab8255e5, 0028d65b-3ead-4253-ba57-857e0c1456c1, 0037f9a2-9aae-4cd5-aaf9-46e89a4673f9, 005643d7-10b4-4a46-b4d9-cbdc98401f5c, 007a4a11-3f96-4e56-a0e4-58b3b0be344f, 00913845-37b7-45b2-807f-50ee789125b1, 00a0d394-7cb4-4d4b-b83e-b6ebb08ab22d, 00a95d50-5f7a-4859-8f44-1c404791f2bb, 010854a0-92c4-4ea9-ba59-df8bc32c4a4b, 010f9af8-19c2-4d59-9209-7e65b63a5e43, 0116be5c-eac7-478f-8391-7773770287f1, 012dbdf4-d282-4a74-86b0-65e498020d62, 013ac07d-7388-4fc8-b074-ccbbaa27f25d, 01797436-caa8-4f83-8e2e-b2aea61b5d1b, 01bc1e28-4747-4e86-89d6-cbeb79d4ae88, 01c0bcb8-8d2a-403d-b0c5-6b3463bc483f, 01d95e07-ca25-4061-add8-0cdd69c53885, 01dca4e9-e6ac-4574-b42e-41201c80d41b, 01e08d3a-bc8e-4447-a226-b7ac9fba355c, 020c33c7-4754-4cb1-9784-f33ab9f1cd44, 020e989b-a157-48d1-ab92-53c353206b9c, 02207e62-10e4-42de-993a-dd76a7d663bd, 0230d602-eb17-41c0-9fae-c45be1868ad0, 02352afa-e21a-4a8d-9fc9-f32167ab21ac, 023f251a-1202-4784-aa38-6b8901a48b3c, 024f9359-f1db-4346-8e99-fef59345b6d0, 027f47f1-3ded-444f-bf2c-edbf53792b10, 02821648-1da2-467d-af2f-d8f6f59ce17e, 02c0ee0e-9b7a-452d-83b2-5c9ce02bd050, 02c39ec7-40cd-4856-b648-46112e71ff21, 02cfab92-1a30-4841-a553-5e18ffd30a41, 02f3e45c-12f2-40a2-be96-b4e05eb0bc6c, 02fb6af5-1714-49a8-9e8b-70340edab195, 03168a01-20d9-4981-ac8f-0b16399563ee, 0316e4fb-1a41-45b4-8e14-ebc0c5cf845c, 039b5021-314f-48f8-aa34-a5e57727047c, 03ab2885-7b88-4d7c-83a8-9de11d5a4784, 03b05baf-2faa-4bfd-b9ba-6fddf0b25174, 03c27bc0-3fbf-466d-9065-2317274ea507, 03cbb011-a2cd-4dea-92cd-62b42bbc79eb, 03e6efc7-9c1f-48c1-aaea-9f01e6e6e63d, 043b892b-5680-4c3d-bb9d-f488926595f6, 04505765-61e8-494f-8164-ae924d2cc5a4, 046e7a88-ce01-46a3-b5fb-d55aa357937e, 046e7c79-bc09-4e4e-9384-19bea5bf3226, 049fb20f-3139-4158-96f4-357a56dc9af3, 04c14f74-73df-4c6a-b4d8-e644b6a7126e, 04d45260-df7f-4d01-a43c-9335d2100e15, 04db0e4a-109d-4541-bf7b-3cc29d6a9338, 04e15225-ae4b-463c-9cb5-6727117140aa, 04e1c95f-f6fd-4163-a401-f60f8e7056a8, 050f3ac2-4bd3-469c-bed3-b48db88f6b61, 0542ee19-4431-466e-9def-a3e6b189b50d, 0560f649-bba9-427e-8a9f-ab83a229f08b, 05696a96-94bf-4977-a621-88513b74b834, 05714188-ccc5-4b0f-8be4-f93985c6bae7, 0592a720-110a-465d-a716-ebe813dde7a2, 05f6e05e-d1ef-4ea5-8ec6-e643564e1a9c, 06224155-fe51-4c3c-a5b6-563e8c184bce, 062bdaa1-9038-482c-8914-ca89ae31727f, 0648e502-6b79-4ce1-8b4d-7dc67afbbfac, 065e2d35-436c-4496-9f2c-6cfb5a67b278, 0665107a-8873-47e5-aeed-35af381c32c0, 067e15c1-b99f-4811-97cc-bb44666b2ded, 0699469e-b99e-4554-9c4e-b544806f29a2, 06c4f0e6-2c52-42db-90a9-697f46d00ad2, 06c88813-7b68-41f8-8d5b-a43611ae1078, 0741de71-b084-4309-ad92-1c6623b19f11, 075402f6-b9b9-4331-9bb9-c8b4d9d9b051, 075d4207-3434-4c50-8f4e-fca403ac8703, 07b0d180-ed0d-4944-8a2d-046a7d22f4f1, 07d88ea8-382c-4c00-9349-662adcf27d41, 07de0bb7-05ea-47d1-a3a1-1aa1d5da1c89, 07e5b6c3-d225-40fc-8bb5-adfa370075e2, 080fdf8a-d4ae-4908-be47-6c0fcb4e8717, 0855ed3a-a12d-4248-b1fa-9ec8b9f69fd1, 0855ed41-0174-4369-b60f-f63ef3b0a357, 08568190-3174-43ca-991a-6e735b5c7031, 08592a87-d571-438f-9f30-a8563f4a873f, 0863d404-857e-4401-8ad3-8f6533151779, 088446fa-e76d-4eb2-83c2-320f107c627b, 08cd4d14-26e9-4111-ae9c-7d44cd2ff74f, 08d3d427-ff39-4482-9300-a66ac3d55663, 08fd7e93-5895-4611-aafa-99af4039b630, 09037bde-d591-44ff-a9dd-6dc58c2ad8c9, 09103a54-4409-4a72-8cd6-27e9c6839d88, 09246978-fc98-4d2d-837e-120c285a00f5, 09306806-05a4-4d92-95fb-8eddbcf96c02, 095cac2b-682a-421f-8baf-28031c8d695e, 0982d9e1-79ae-45af-9ac5-c5eb55151035, 098832ae-540a-43e7-a72b-416287ec7b18, 09a52fa7-21a3-4caf-aacd-dbb0c87e9c8d, 09d7c999-bc90-4557-b0f9-ba923a77ca20, 09d83a23-9fa1-40f8-92a0-6aef503e4c72, 09e63483-c350-4ccb-96b6-651212f77b09, 09e88e11-72f0-43f5-8ebb-54ce5d83de80, 0a1c88d4-f9b5-4da2-8fb4-0300bcfa4773, 0a1ed650-999b-49fc-89ab-b8f7d98fd83f, 0a5962e1-33e8-4bc4-bad3-2738abc46da9, 0a6588db-ca15-42ea-92b6-07eb0c330cda, 0a7a9d85-9e36-471d-b09b-89101f864f64, 0a8bee43-7e2d-47e7-9ea4-10cb43b7dd09, 0a8f7dce-afe4-470c-902d-2d359675d756, 0acaa53a-1d6d-4bce-9a65-36c43b6e7123, 0b00153e-1781-442d-9a41-2adc2a33ff42, 0b0a02e6-a41a-40a4-b656-ea7976430864, 0b3b4b77-6eaf-4361-a0d1-db10416162ed, 0b62fc3a-d49c-4260-961f-c82c5bfe4940, 0b88864c-baa1-44cb-8ef9-4f2dfe5114ef, 0b8d9f48-e273-4ed3-b1f5-736e617f0a10, 0b920063-60ab-4341-b41e-bc0c01a74cd3, 0ba01456-ed10-4f44-a00d-e42f4504f433, 0bb0b7b9-2cb4-4323-814d-39b59206d04a, 0bc96932-49b6-484b-8968-afbd7901a1bb, 0bcb4ecd-c93d-455f-94db-c766233be598, 0bd7e1ad-129f-4ac7-aae7-12014f08f830, 0c3fddd3-d9bb-4aa4-93bd-f0471d449558, 0c65cf5c-305b-4295-b9bf-19ca0d4a69d0, 0c6b38ff-a377-4402-a214-bbdb9c1f101d, 0ceec352-9e02-4a14-9166-5196a49f0415, 0d2148b3-c691-4ab3-8479-c5ce6dc8214f, 0d69ff09-f632-4f3b-a1f2-9c35a8b40521, 0d74e8f4-cebb-4364-bfd2-613ca389d9cb, 0d87c3f4-4c0e-47dc-8f4d-6487b28e40aa, 0d9c679f-de91-4da6-a2f2-13b2a16d5672, 0d9fafde-5427-4f9b-a424-b020748999d7, 0da90522-d407-402b-b954-dc5ce5f232e7, 0dc6555c-3f5c-44fe-a795-199ff9f956e2, 0dfcbb0f-bcbd-4822-908c-2a7110a192f1, 0e018ea5-a88f-473b-9d3b-15385deb2d8e, 0e150cf4-5b36-4ef4-b426-89e50ee6775a, 0e2b0413-23d8-46bd-8091-3c86a1f4f763, 0e35299c-a5f7-41a6-8b3b-9396449e988c, 0e5f3c25-6a49-4a0a-8e47-38b0cb586484, 0e737227-b041-4e85-9581-5d374d0e5a4b, 0e779117-2449-4816-9566-271d57fada22, 0e9b8288-aac5-44d9-8e60-1e2ba0c37fef, 0ed82a3b-b090-4e28-b5b9-934a6170c099, 0ed9e421-9a5e-4dc5-a54b-2b28ba80c6e2, 0ee3d6cd-6ee9-47ba-81ab-406d9105edea, 0ee47edc-953f-44df-9af1-57ae19393330, 0eed1bf2-c494-44ac-8bf7-351aa4f5924c, 0ef2e0f4-32fa-41f8-a633-fead8a88120d, 0ef8addf-e23b-488e-8d44-280fcfd411ca, 0f16532d-5f07-4fc0-9dd8-c884f9d5d2c6, 0f5adfd0-b07a-4f71-aba6-cb39bacad8d8, 0fa74ff2-e027-4a09-9646-bee8fad1602c, 0fb5af10-bbed-4298-856d-b5178f247d33, 0fc8fa5f-2dbd-4165-9a13-06d43df6dc0a, 0fda0c45-4f60-4df2-bdcf-ba578152062d, 0ff73414-b0d5-468a-9fb0-e80d0a6de6f1, 101faadd-2f9e-4f9f-a520-421558dfb1c8, 103792b7-4673-4d9b-ae8d-32edee102195, 1045a241-de9a-4d6c-83ac-efbcc038367f, 109f98a8-79e8-497d-a0ac-44c47c5c4328, 10adb4ec-f2d8-4420-81b6-8462fcd0508b, 1104e180-aae7-456b-ad56-a8f597e442f9, 1141e7f4-feab-464c-aa3f-a23cb7fe3705, 1187b604-0928-4d28-ade4-67edf3ec0015, 11a0b0d4-3095-4bf7-9752-0700fe5dac68, 11b16879-5f39-4e7a-9371-2457d63f3b99, 11f29168-11e6-4929-8a27-5ab3d5ff4b9b, 1226affc-52f7-4153-b747-27a5feff64b1, 12660ce8-24f2-49a0-8201-2b8bdf8706a9, 12795967-535f-46ef-a042-7080f832eb73, 127fb62c-8334-4955-8f40-741674a3b686, 12ad44ec-b559-46e7-b917-b892f980ef0a, 12b939b1-8aa8-4347-a1a3-c08ebc657574, 12e04a1d-dbff-4a01-87fa-9d779df26dcc, 12eb506d-bb2c-4256-97ef-8f32661f72cb, 12ffc8b7-4c87-4dc7-a36e-ceb79138e149, 1313ac00-3ec9-441f-850d-2b69e420a952, 1325a45b-db2c-47ac-9336-c33550a949a0, 1381f2a5-2e71-486a-8ee6-7d15b8a315b4, 139a5f2b-ac74-45d8-b6a1-25408780f2cb, 139f76ae-7c8d-4dfa-95de-23940ca0c4b4, 13f81b52-af3e-4263-9f06-1b8c59c0480a, 140d9730-e1e5-4401-9dc2-3bd9e5e66829, 1413b75f-f288-4dfa-ae0e-65eda5267f3e, 1421730e-02bf-4088-96df-321d875d938e, 1433be94-4a32-43a0-bf81-5899c7aebd00, 144726d7-aabb-4bd2-ac75-ffae5a61c725, 14946c83-62f6-465d-a97b-640a803ad902, 149b939d-0c48-4327-99c1-0a513d3d6e67, 14a4a036-6c1c-4156-9e9a-09e6c06dc887, 14ddc99b-8143-4c58-a9da-85b4e34efa3f, 14ffad59-de49-43d2-8bf0-9c9e75572057, 15000508-f6bf-4eac-9133-ef116dfad7fc, 1528f4fb-86b3-4825-969a-f16e3494cb71, 152d7bf4-4f5c-48b4-ade3-3eea7e3d7065, 1568b122-c0da-4801-a3ec-5bb9d1acf6ff, 15898911-496e-4f58-ad63-9635203f05f4, 159f8a02-ce0b-4f95-a4c4-6fe737ffae44, 15a3f1b7-4f2b-430a-9d76-29a663500f4f, 15b105fd-2e1e-4da5-9bae-9dae8a2c1784, 15b2123c-2d77-4d6f-bc5e-125a4803fe55, 163368b8-664c-453d-8722-d603b8e1aa6b, 165d98b5-0094-421b-94c7-18bacfd7c825, 165dc5e5-7e8d-4740-afdd-087696fa20d0, 16617dcb-8839-4f4e-8007-70d16c4765f9, 167134de-4357-4e3d-aad4-a6146792a91d, 168f709e-3170-4313-a2bb-91e882228951, 16abee0b-1890-4443-b76e-6f451ebb9a38, 16be1918-68cf-4b49-9db5-7d955be90d95, 16d3e2af-d07f-4159-a155-0dd5dffeb5d1, 16d6f945-7246-49f3-9cc0-d6e0d020f27d, 1710b223-bf7f-40eb-b9ef-2f465feaf66a, 17181861-1cf5-42b4-a732-50d660ae6cc7, 1721c853-d955-416f-a57c-da41340ea16e, 1743b9a6-d795-4c98-a872-cc628367b039, 175f0660-5b5a-4eb0-a9c0-72efd37fbd86, 1779db7b-c257-4865-a07d-ef1aaa9e5452, 17949039-164a-4208-a5f7-1f688c60349a, 17ad9372-6e97-4aab-bc0d-95e11bd90026, 17ae585e-5845-4271-a816-71eeeb652f4e, 17b4340c-057b-4b8c-95ab-955302a5f1d5, 17cf4bdd-97ca-4ce2-b9d6-ecee3750f74a, 17f9a6ee-3c9d-40cd-a49d-25f2e2180e8c, 17ff9b05-4267-4546-8879-3e5387b790c0, 182a746f-f052-4eb3-ab74-c5ff811aac95, 18433824-f9b5-446c-903b-bbbc119e12c3, 187d848c-29d9-42bd-bdb2-d44d862e8571, 1897a86b-e3a4-4d28-86a7-429d2338602a, 18c0f853-0c3b-42a1-be54-0016a2197c27, 18cffbc9-6953-49ee-a061-dc3936a7bea2, 19420c69-d704-4256-b54f-9b3f8b2ad608, 195c00d7-1320-4025-99ef-1de2b9fdbc12, 19629634-b4af-4564-8e89-ff3e91a559c6, 1962d07f-2ca6-44a5-91c6-34de16acb235, 1965d68d-28c1-4375-8173-baca475e75a4, 198ee447-0899-444b-aa48-5d6650b1fa93, 19a71345-74c2-4b85-b46f-37cdf9746e5b, 19a83612-b46e-4195-adc4-8df18fd817d5, 19ae416f-68a1-4d61-a665-d63f4aa14716, 19d2fefa-7bcb-43c1-ad18-1d0201108a8d, 19e2269a-8777-426f-bff7-d974439c84b9, 1a55f498-0ca9-41b7-95d9-d0ceb184dfeb, 1a57c183-b564-4c80-9fa5-0d6eeaf49ae6, 1a639480-556a-4479-a499-7e475b9ddc3c, 1aa71467-5122-493f-8109-04ddc96c21ee, 1ac911ff-2615-4bdd-b58d-5d322ddac4d5, 1ad32c73-a758-446e-9adf-b89c9bb6259e, 1ae423d3-c4bb-4cc5-a57c-cc70e0367c9b, 1af6e5cb-7bcd-457a-9b24-0dd2ac8e65fb, 1b10c6b2-3a38-4581-b8cc-e6da34f50f46, 1b3305b0-68d2-40b4-b4e9-ae0d0604f7b5, 1b77337a-0a19-4cfe-a99a-9566e5411a22, 1bc03e70-5fca-4521-8dd8-7a442687dee3, 1be35088-a8c2-4ded-94ee-72219bd126e6, 1c0b4c1d-c644-4642-a86d-5a09f5b28d10, 1c2f78c2-c841-4489-aff8-5dce49d387c2, 1c37099b-6711-40f7-9297-fadf46bc8e55, 1c3cd530-ee13-4757-be0f-e57bdf6778be, 1c4f30dd-c2e6-4b4b-8332-0fe8cf15a1eb, 1c6dcdcd-d48b-4176-b777-9673e1ee6c76, 1c6ed6b4-12fd-4803-b071-9cdc42320670, 1c7e1242-83ca-4972-9e8e-2e7b9e067681, 1cb77245-8d0b-408c-9b7b-cab297c78f0e, 1cbfab55-4c38-4df1-993b-c184c72a24e3, 1cd649b2-2046-43ea-bdc7-8601204af275, 1cecf81e-256f-490d-9a80-f496d7117950, 1cfe40e0-34e1-42f4-96f9-d556a62a7ac8, 1d0dc3b5-f312-4249-9138-007f7eaa6e90, 1d4e090b-931b-485c-b790-034807356a08, 1d6be7e4-c36f-41ed-be5a-01722685909f, 1daf7510-ebc8-45a0-ac88-fffb33cd1dec, 1db7ac24-a9c9-4d1e-9f0b-5064456d017c, 1dcc14d6-b38f-4f9d-b612-b19db3e8c824, 1de68eef-da86-40d1-9be6-a0dce8c435e3, 1dff2260-44ee-4586-a4ad-d2267d068859, 1e0cb56b-da63-44c0-9f5f-8e2b07af7aa7, 1e11feac-6e01-4478-bc9d-9384c97fd0a6, 1e14c2fd-9cbf-4149-a28f-0e3b9fb4b710, 1e47f64b-8705-444c-b868-1d99365e7c4d, 1e58ec39-561b-4128-ab55-acd83788a838, 1e7ad13d-5921-42ce-9a3d-8d6b827ed54c, 1e884556-021d-448b-9845-19ee117902c8, 1eb070c4-9244-46d5-b1ec-5bfe008ab046, 1f18d0ca-b59c-4f06-81aa-03c83251fa04, 1f3429e0-60c0-40e9-839e-2759c784b03f, 1f493a08-6e67-42eb-a7d2-9f3b92dbb118, 1f4a9c3d-e015-4b24-a587-cf1f493cfe79, 1f5518f2-f584-40e9-a4f3-5da886816aad, 1f5c3144-ea77-49e0-9d02-ab307c047bb8, 1f902069-0e94-4d0c-bed5-d488a95dfc24, 1fc0305b-4d25-4b97-bea1-e3961083f79b, 1fc251f6-416a-4a8d-9015-213f8d406e2a, 1fd1c8a8-c13b-4285-ac8f-29935972fcd0, 1fe0034b-8829-48cf-964a-f45334b1a504, 1fe214b5-7fd4-4f7e-acc4-02a5fb5bbadc, 1fea9fc3-63f3-4af3-ba65-83f0abc901dd, 1ff9b8c6-ce75-4fa4-9b15-7f0e7535f93f, 2004bba5-c4b3-4b94-b3ab-136f9d5d03d1, 20242aad-e729-45b6-ad06-8fd82aa0eb29, 203d3493-b4ba-486d-bd37-aeff3a53ad32, 205349c3-037d-4fbc-b86e-7e5ab790fc9b, 20702e1a-a5ea-4cca-bbe5-3c5934d83dd2, 207b64c1-3b29-4ab0-873b-435b42b8cb25, 20891214-19d0-474a-8ea9-447c4a47f7d4, 208bcca4-48c9-4ed0-8484-deca080a11a7, 20903861-c0ec-4cc7-81f3-43dfe307e460, 20a7004f-0c06-4dcd-9769-3401aaa855ab, 20b00baa-7a6f-4675-8fd3-b1d0818a30bf, 20f6188a-6279-4cae-8596-9f6362554381, 21060a41-aa8a-49f5-ba8f-7b5ac73c3de6, 21364a1a-416a-4bfa-aed6-bd2ad1a58c57, 213a0168-9ec1-40a6-ba42-6417aeaef8fd, 213b8940-92b9-41e3-821b-677439eaab8e, 2158dce9-9b4d-4ccf-bbb4-bdc008a4a17a, 21a569f4-d7b2-45bb-8d65-bd7ef0237cf8, 21b6eb70-52e4-42b0-93d1-8e2351e3c301, 21cd5529-15e6-44bc-add9-5e8c92ddea82, 21f3c546-09d5-40f8-ab59-b8c73c5b8c02, 22417d4b-32a1-4352-8dc6-97bc181b9a9a, 227c0af3-04c9-41e2-9372-86e212c4102c, 22976607-725f-4ba7-9f3c-d9a01bce8e0f, 22ef4cb6-b410-4775-8244-926e5b767e95, 2303a7aa-4c1a-4df8-9065-2c1aec742fbd, 231461cb-19f8-492f-b3cc-4af8a5fdd100, 231fd9e9-6f5d-4be1-b297-b80db8e36550, 233bdd5d-9e78-48c5-8073-2e5ab946ecb5, 234db756-d0c4-40f7-8696-6ddf080d9caa, 23832c8b-231e-4ca9-a5e0-afee4daa9a01, 238955ed-dbf2-4a2c-97b2-12e20996cfc2, 2399b31b-cf62-4f80-86bd-83ea191b549a, 23be7290-674a-4dc3-8613-6cdbbd80ff60, 24027ae6-9826-4678-8b24-1df1b75ddda0, 2407d5e1-2588-4c1c-8f62-5005f161aaf0, 240a985a-159a-48dc-b39e-7167bfedff0d, 241f2bb1-af25-4f82-b516-2326f1aefd60, 2422420c-b7c9-4c0b-87fd-ed082c752752, 2428eb72-6787-49d3-aaaa-e4d45063283a, 24296d88-a551-43b3-8128-257f5bcd6ce7, 24336f12-88eb-49a8-a508-e0ac1be922cc, 24840244-bf5a-464c-b25c-1382f31449ee, 24b8b5be-bc1d-4716-bd9c-5e65b297c61e, 24c9cacf-73a4-4c88-abc8-dbf595186c5a, 24ca1a5f-8e13-4d74-b695-43798edb93a2, 24e5ed94-d8ad-4e33-9d31-0bb5d494503d, 251dfc8d-5df7-44b7-baca-0e2331997eb6, 255ab491-7e15-4b6d-8c36-cf8a8046cba5, 25b9b1aa-79db-4c1f-9d91-a850b8275573, 25deddd9-f36e-4642-99b8-dc28a845cc34, 25f08433-b5fb-4051-91b4-7b0aa7390a41, 2620aa7a-3b68-4bc3-b2d6-92c1f468be17, 262f78cc-73b2-4ba2-9c4e-a763a430b86f, 265e577a-9508-4ed4-aad4-80d6f8137639, 26950343-5f53-4c03-a425-f242c5cfe2fe, 26d5afdc-4aaf-49b9-81f7-420f69c559b1, 26f45b5e-bb17-422e-acc7-e259d5944fae, 271132c2-c076-4a5a-ad88-41e639edf357, 276322d0-dfad-4895-bc8c-4b0371d35a4a, 276637a8-4f7c-4188-931e-699610b55f31, 279085da-e4ca-4bbb-ab5c-585f158bfc72, 28157a23-bef2-4c90-8796-e876a8d09140, 28192a2a-74fb-4bf8-8711-035f578862d8, 2828dff9-c4f8-4c53-997a-c3077b959e4c, 28472eb0-9297-4884-85c2-32410379d5f9, 286bafba-1f1e-4a1d-aa55-03c9809dc285, 28828f18-10c3-4f12-99d0-d104a77ddaa5, 28833dce-1427-4624-b09b-46dde075a0b4, 28c6c5e8-13ef-49b9-b0c1-bd2495e32bd4, 28d0b366-5217-4501-822b-dc60d22f51ae, 28e981ba-b1eb-42c6-b7c1-46b086e631bf, 28ea59b3-9e94-47d7-98bc-0772d5931efb, 2916e582-0367-4961-b13e-4cba133e2818, 2931e3bd-4656-4420-8fa3-602dcaa64f97, 297c4f2f-1c9f-48ad-bd06-ee75b4f8cd18, 29c69b74-03e2-4068-b9d7-e6d6e2e95809, 29d1c432-1b1d-4b32-b9f8-3a1c009a97b9, 29da081f-c328-4957-a04d-c1a7583943fd, 2a06b7ea-3fcc-498c-8086-e372eb9fef80, 2a0c9933-5d1d-4ac9-9501-54cc4e8d960a, 2a15a2be-a89d-4995-9ec7-f5148a3745f1, 2a27e7ea-a439-42d8-87d2-47403c776006, 2a32d78f-4e73-40de-ae22-334fd106c763, 2a4774c1-aa4d-4207-9f87-0dfb40d901b3, 2a4c7b44-e1e7-4d21-b276-b734b8ec490a, 2a618da0-2a38-4c8a-9c76-54934434b7fc, 2a6f8b0e-c2c9-4718-b837-4126b11e8c3d, 2ab80ba0-593e-427b-aecf-dedf2a738658, 2acd6f97-7d9e-4860-8fc3-aaa67f0fccb4, 2aefe27e-c4f9-4882-82ac-13ba3b659ec8, 2b067a4a-91a5-412c-a6b6-9c0cdfc0cd21, 2b5b6683-7c81-4e56-8221-747519bdbdb2, 2b7657e8-d072-4d7d-9bd6-6016769b5321, 2b8adca3-eb46-4529-a8f2-a30ea6e4a10c, 2b8c7422-48f7-4fd4-80e3-f739d7079864, 2ba7641f-861b-4fd2-9afd-c511f3fb6a36, 2c106f60-f45f-4414-beae-4a3300680d54, 2c187f00-5f73-4239-b5e9-343705cf62ca, 2c23e531-b276-4da1-b443-83cea2830ecb, 2c3d4fdf-61c1-479a-9af2-9d8b24597935, 2c8610a9-3521-4af1-9050-37f331762d6c, 2ca2f3ff-b0a1-474f-a69d-63626a6f00c0, 2cb9497b-81f0-4682-8a63-8f94dca7b0c5, 2cfad729-886d-4072-a3c6-19d38e13ace1, 2d3d1bb1-76ed-469c-89ed-ff23a560c786, 2dddf48d-e4b7-400f-86d1-5e5ddb0132e5, 2dde2ec2-82ee-483b-8163-43a2d7f49793, 2e0ddc16-818b-4692-8a45-769c3fb54f56, 2e24a8c3-7e53-4bc8-ae6f-7e8921f78cf2, 2e60a2b4-3ce1-40d5-9967-4a1b3b9abea3, 2e7887da-d0ca-4300-9fb0-e2b86edca7f8, 2e897a9e-3e2e-411a-9f9c-c29dc59888b2, 2e8d9c0a-d556-4854-b9e3-72ed81c9dfa3, 2e9a5367-31a3-44b0-9b51-ee6ef031ee43, 2ea155b6-211c-4b01-bdd4-df6068a3fc46, 2eaba2b8-4cb1-4ce6-bb61-2909cac588db, 2ed79ba0-1fd9-4ee1-9640-c9b04ccecb57, 2f32389d-aa2f-4e54-b3b5-99075113d0a5, 2f4fa8e4-768e-4c89-bab6-4a6cfc089a60, 2f689062-da64-449e-b300-3d071f9c2127, 2f9518be-3ee4-4bc9-ab95-e9d24e89740d, 2fa9a3ad-7940-47c9-add7-723cf776179d, 2fd0984e-1553-4c01-9206-cce94e6a9823, 2fd989fd-d9e5-4c1a-a220-347060ae9ea2, 2fe5d52d-7fe3-49cc-a369-7eeb3dfe19b0, 2fec79bb-d419-42c8-bec9-204307b0acdf, 300c5b1b-fb05-4bfd-8a87-46a6d66846e7, 302d54c2-ebf6-4be5-95c7-5ec2913b26bd, 303f2f24-f8cb-458b-9538-c2d77051ae17, 3083b175-1eee-4f52-8156-466f1ac12fef, 30865b88-ecfe-416f-a7f1-b9aebb1061a9, 309e71fa-412c-40b1-9083-aea4cb4e85f1, 30a26c5a-45b9-4060-a191-151b0a8625f3, 30b69181-e72c-4adb-81ca-7d1a3a0b7898, 30b97838-04b6-46ee-b9f7-3d6fc2f5ea59, 30d5bc68-24d4-4515-8b09-8f7837f94613, 30eb245d-09ce-435d-967c-3840dc5a6630, 31cc8003-028a-4cab-974d-6bcb2a490d88, 31dfc6a6-3f41-4f82-b546-fbecd81480f6, 31ec5025-fd11-4b4f-8f3f-bf1f7a44036a, 3203bf63-be4d-439b-bb96-d3e09c881b6c, 32191590-94b9-4b5e-a118-7a912a3d6695, 32347ded-1087-412a-a584-6fce1446c317, 32626f76-17cb-40fd-a1a9-68842c601d23, 326cfe1c-b03c-4015-846a-e770127e0acb, 32a940c8-0555-4888-a34f-a727915fccc9, 32db4889-7dca-4243-ae02-d19a25fc0d29, 32e90d59-b0d9-4fe0-a72d-8898f08b8254, 32e9d5e0-ef9a-4b2a-bf7c-c68f743aab2f, 3305db13-537b-4834-9d8d-6395381eda78, 331b1dc2-102e-471d-b9d9-0456deabe3a3, 33b338d3-9ef1-4955-9882-e3c580ba1334, 33cd398f-9599-4c39-abc7-ba0605cf89df, 33d966d3-be1b-4532-a291-54fa4278f9b7, 340aff31-3e04-4ba2-8fd1-6d2bb6b9533b, 340c464c-a888-433c-9148-f6ddd5f9955f, 34568831-8282-4acc-8b0a-2d46e4c5d8e7, 3459e695-5daa-4bf6-bccd-03ed8981a958, 345ccf2c-a25e-4137-97bb-7055819ddc36, 346a7c77-d481-4352-bb6e-75ead3cd9837, 347fd1cb-664a-45ce-8544-0c45b530fc78, 348791a0-a9ac-4474-9971-d55893ac7223, 348a8287-c270-4450-8475-dff47b55e3fb, 34ac9d31-a331-424a-a8a6-3511c7346e87, 34f715fe-49e7-487f-832c-222f0bbc59df, 357716af-37b7-496d-b436-8cdcfae92678, 35baaf9f-2a18-49ef-849c-61bcf2cbf980, 35c71f0f-3776-42d3-8ecd-20b9da3ea43e, 35f81ac9-dcaa-4ac9-a08e-b0587599fc6f, 360e3ac2-608f-4e08-ae20-97f876683d0c, 36295f42-6631-4e28-812f-d6f3eda7fffb, 3632f0ad-4984-488c-9a30-3f933b509b84, 3658207b-8bbf-4d8e-9370-047bbaac9704, 365e04a0-9d69-4cb6-8bb3-4539e9e867e1, 3678b388-b03f-4e68-bc9e-5c87fa4c60b4, 36b68f94-abc9-4eaa-9337-d3c6c3872ce1, 36c32d95-7115-432a-b41c-d46275a0964d, 36ca0f0a-424b-4d0f-ad7a-5ef71a7d1893, 36d575d5-e010-4aed-8199-a6396230ab17, 36de656c-35a3-48e4-927d-acdd947911fe, 376924a7-cbfb-4358-824d-19b0325a1934, 37a862b6-ecf3-4892-9ca5-29a4188c18ad, 3805099d-b5c7-445f-985c-5506903023d8, 382a5eec-5cac-4024-9140-707a59fd11df, 38330af5-2fe3-495a-8c18-44c5d784e96e, 38486dee-d0e1-4e8c-a135-778241b1bcc1, 38536d2b-37ed-42b0-bcec-884b7f397f16, 38db9a56-6f7b-4b57-8b9c-80728f2ba892, 38e4393b-8503-4911-b45b-af5d0088f38d, 38e709f9-3063-44cd-bdd3-41053d43702b, 38f40550-5769-4a96-9736-667acdee5bb2, 38f7464c-2699-4cb0-b3b7-08e98be77bfa, 39083b05-c07d-42aa-82e3-33fc98582924, 392b0588-6363-434b-990f-1d7d05763c6e, 393d6ed0-f7fe-4e68-b087-a41adc0f5017, 394a96b0-e668-4926-814c-f9f38a98f97a, 396437b0-1c18-43f3-a6e7-181abf47d94e, 3970548f-c406-4eb6-ab4b-f4468f293a7e, 398b359c-6c80-46db-b4bc-7f2646cb1f04, 398e8bc7-8431-4720-8a15-b6cef21f6304, 39f48a5f-9c17-40f7-9fbc-bf8f0dda6f72, 3a1d4397-32fd-4aa4-aa17-c35ddd5dd471, 3a2058c6-4929-4028-8f46-2804ebf3a68b, 3a603024-c937-4749-953e-ad8c368b4499, 3a6c92d5-a83d-4f5c-a26f-1682f8bcaa4d, 3a824422-3306-4829-ac0c-f1bc03ca15ee, 3a93ccbf-9a8e-4f7e-9a57-bfc5bab3c36b, 3ab20457-9905-4b45-8c62-d31ae9ddd6ed, 3ac3450d-1c4c-40e9-912b-454887eccd35, 3b0edb1f-d77a-454b-8a5b-81a2a1822a16, 3b24c1d4-daeb-4073-9dc4-16a66146e375, 3b318856-b2b5-4262-b3ee-e0df552560c4, 3b3491c7-bd87-47cb-840e-2f24a804c7b8, 3bad989f-648b-476a-a2ab-8c1f44a624f5, 3bed98bd-ed6c-4a37-a545-f0cfe5fcab0d, 3c673a67-4f0e-4f79-8040-a6f03193d216, 3c9d4140-3890-4f82-946f-2e359a340749, 3d0e3c74-f9c1-48b8-b891-9e653cb3072f, 3d1abddd-17d4-4407-8a14-1a010e1dcfa9, 3d4d7162-1952-4ece-a6a8-d7935aa92994, 3d580044-cd8c-4166-8e92-da91f17d63dc, 3d860a53-609d-438f-8b7e-fc11588b691b, 3d925d13-e467-4003-a71e-4aac4ba057bb, 3d93db70-b444-4fde-9011-905a6e341177, 3d9b6b13-bd87-41cf-9801-f768c729e4e8, 3db45d22-441b-4e37-a819-02c3ee1c1d88, 3dd6807e-30d0-4d14-ae18-9bce207022a4, 3de62687-ec40-4bc5-867f-dfa3983079be, 3e06807d-d5b8-4bd9-93b5-08a4909960f3, 3e1a9c4d-c5df-4d6d-afd6-a4ddc0db5c10, 3e255f95-25e6-4f2b-bbfe-2a5ba260bc75, 3e4997d4-fcae-48b9-b94b-db5233824b28, 3e49cdd9-45a0-4c90-a5f8-fa238ab90746, 3e7e7ffe-8415-4583-88f8-104186ed5c49, 3e7fa056-84bc-4d83-8af2-c0755dbf7a7b, 3efe33ff-3bac-4f8f-95db-a5ca7f555fea, 3f18b8c0-226b-4793-a540-4e67dd0faa1a, 3f1da177-d5d5-4fdc-9607-ebba77820eaa, 3f7759ea-dced-4f62-b77f-453bb181b162, 3f9c047e-f01e-41f6-93f1-687ade67ae4a, 3fbe3abe-662b-4ff8-9ae8-54151db0e614, 3fbea298-8536-458d-9dbe-891530bb3553, 3fc5de89-1fed-4ee2-8451-64e01db32b4c, 3fdc73e2-4277-4626-b090-b8eae0491b72, 3fe29d52-592f-476c-84a0-84ede7b70487, 3ffb4fe9-661a-4f02-a6ee-da64f31d4620, 400b2941-6cd8-486c-af81-37a2f0138bd0, 40268111-759c-4470-a1b2-2a3e1851a1a9, 402fce4a-2bf2-4b02-a13e-59ec7e6b4eb7, 4035fe79-26e6-47cf-9a30-ebae0f9d3901, 403dfa14-7f14-41da-9f90-b38e7d2555a4, 40620b3e-5469-43e8-9f4f-ea1254797467, 408a2009-d099-4cd5-bc02-6246dbc28a26, 40bc7186-270f-4206-8116-a307ec2296f5, 40bc9072-edeb-4421-93d1-c53f309d4b21, 40c9bb14-308f-4e7f-93c3-a7bad7d5e131, 40d4dac5-dcaf-4179-a155-a10748479ae1, 40f002be-214e-4fe7-b4aa-911e61fec5a5, 411150db-94d8-4c02-a1ea-1459cf34e2b6, 4178caa8-80f7-47cc-afd7-e74c32534bfa, 418c7c63-0988-4634-adc2-44a51078060b, 41a2d67c-08c5-4ddf-a1bc-6634dc9a539d, 41ca6fb4-00ba-4162-b181-d9d616d82bde, 41f0baab-63b5-4cac-b14f-511ab1ee0a41, 41fe6ca6-249e-42bd-906e-eab36d20c2e7, 425b4c96-df17-448f-a3c0-302780954427, 425e73b8-ffbb-4740-9a52-9a586641aa23, 4268378f-03d4-4306-ab15-dab36d5820e9, 42912c0b-e304-4913-8f40-c035f5e673a9, 4293cbab-f65d-4f12-a297-9b7ae7590105, 42a23428-00eb-4ca7-b2bc-ee1d25523e1a, 42bee6a8-6469-44d3-be18-a381772bd3b1, 42c227e7-b088-4d2f-bed8-d792cf9d4b97, 42fcb4a2-2320-4ea0-991d-468d5898f87e, 431e7425-4df8-45ea-a0d9-fe4bac5297ec, 4372dcfd-658c-46f4-83b4-b94e0e309c83, 4392e48b-e86c-4ca5-b85b-00fc2fd5e52d, 4396d8eb-f9e2-4e7e-a589-2bced6cdf5d4, 439cda3f-a6b6-48b7-8999-c11eb3620cf6, 441877f4-c2b5-4177-a389-3cb3f53fa7e2, 4441179e-7ff0-41c6-9c4b-3a6d9ce7fd43, 444a732b-8ba7-4e89-b92a-d95769b20b2d, 4478aa10-1c40-48a6-9783-5af42a9f4281, 4487e0b0-533e-4ec4-a541-3d18b81bdb9d, 449bbc39-12d5-484f-8838-85d5ee50e522, 44b7d402-37fd-450c-9085-76e5557ca0f3, 44be086c-181a-4edf-aecd-6c60fd66dcbc, 44e488ea-d558-41ae-a8ea-59be6fd5df83, 451d2ff4-77c8-45b0-9cad-9820685ef04a, 45232504-0fa1-44ce-8e2c-de90290efda2, 455efe55-0850-45ca-bb14-e7c46325e646, 45693ff8-6d30-492f-832b-bed6bfe5761e, 4586b602-ee31-44c2-8886-a4230d0494e0, 4588477e-2c1a-43b0-b351-68ff82cc3fef, 458aaca8-8883-4f6b-b916-5395d11de383, 459f8a16-4c34-42bb-84c8-e3e85de54047, 45e2f0e6-35f7-4422-99a1-923225889739, 460d461b-7853-4f3a-8152-12419aadb570, 46105154-aacd-492f-81b7-60bad4e1c185, 461e1cfe-5844-428e-9e4f-8582a10445dc, 461fa7b3-b203-4331-9499-2237d5d1830c, 46230d47-4a8c-4d65-b62c-6a26078c5f54, 4624e5d5-d62e-46c3-a3b9-9c9e308081fc, 462c559c-fee1-469a-a78e-23e456c70206, 462f3736-3f34-4538-aa04-b74638cb320e, 4657d790-8035-47b0-ac35-c7f0920a07db, 46591d21-2e22-4723-8bd4-912561835eaf, 4673aaa4-93c4-4fcd-abcb-d9ca136fe7c0, 46767e09-7289-41d9-bd97-34630dc2bfc7, 468e7a9e-8535-482d-92b8-bfddb30ba7df, 46b3833d-4950-4216-9ba6-aa8d15a4d5e1, 46bb578a-ce8d-4202-8772-58cc9661d75b, 47022651-b511-4531-9900-c77784a56342, 4727bd73-5be7-43a2-a5bf-2a0ae78d7ed5, 47a41865-a2a0-459a-94aa-66ffaa84750a, 47cea34d-4acf-49af-9a80-5aefc7a791ac, 48056b65-a6cf-4942-be63-ee7e5ada9301, 48099fbd-f834-4a30-abaa-4bec7512e997, 483f1585-93d9-489b-9f97-46a0e994b264, 48419e81-a18e-4c41-8b7d-54841ffcbc6d, 485a2ba0-0d8a-4db1-8fbd-cca6f583d119, 485c3b51-0d27-4353-b1e8-8a396c443158, 48768604-b29b-4b5d-ab89-18ab0f3234c0, 487efeac-c2bb-4712-81a8-1b6f353ce090, 489b1d25-b92e-4402-a151-629d600f705c, 48af637d-7a35-4e6a-9fa5-bf41b98ee460, 48c0e9e0-328d-4db9-931b-502aa003a4cf, 48d727fd-baad-43fe-b642-d380f7fa901f, 48fe4fdd-0bf7-425b-b0a2-ccb008b5ab14, 4939cbf5-cb54-4d46-9c45-500c91311d91, 496eedb1-81e3-42d1-bf90-bd269f6505df, 49736c62-f289-4ade-b514-81a58d61a78b, 49865bf6-08ce-4fe2-ab42-1cb958b5705e, 49a187f9-c442-4f7b-8806-0ff5fb2be6ed, 49a1e948-7c02-4f14-ac8a-d8fa8e2fadb9, 49c354f8-1c44-4573-a431-52450688bb4b, 49e7dd7d-0259-4203-8a8b-25753da87659, 4a3f0237-5706-40e5-a64c-f2d98d27b2f4, 4a4d1185-2ed4-4aec-94d7-d5e3ca4ef5ce, 4a65ed5b-02ba-4ad1-a620-8d0bc3897b8d, 4a753c48-01c9-4e28-8382-28738a8754d1, 4a7b9f32-21b9-49ba-88d3-018be7738b90, 4aae9e02-c4ed-4376-b487-e6f49f19e088, 4ab75136-6835-45f9-a534-ca9258cbff02, 4acedd66-e6da-4891-a606-5ed4ff690e0b, 4ad198a1-e770-448f-86a6-e0be0f32986e, 4ad45611-9657-40af-b36d-8e28d812367e, 4b198a8b-6a57-4fed-8658-44436d075387, 4b343808-8149-45c9-bcac-c9f4ba6774a8, 4b68b225-82dd-4954-a39a-31be87d8c2e1, 4b76fc6c-cefb-4308-9907-9b1c59750ab3, 4b842947-8a41-4bf0-ae45-4252b049dd2b, 4b94616f-9ddf-4ead-8160-fb57aea90544, 4ba8d991-e01c-4f01-90ad-8e4bf3b7ef58, 4bc498ba-10a1-4704-8d91-5000ea148fbf, 4bda64bf-01be-46f2-be0d-e190f59c551f, 4c2a2c2a-dafa-4487-8b19-06791cadced3, 4c2e87aa-4eb8-4a6e-a9ec-3cbff9d3add4, 4c8c0115-c68c-4c5d-9ebf-87af5c62b4e1, 4ca4e5ad-7e4c-4d21-acba-b7d05efb22cc, 4cb17fae-f09c-43aa-bd7d-f3c18bb43622, 4d26bff3-56b7-49c5-bd12-c0acd613c30e, 4d57170d-4cb9-4be7-8570-38559f542bdd, 4d64e64d-33d0-4a27-b458-27807062c53c, 4d7238c0-0471-48e5-b1c1-087dd5e5ad0f, 4dbfaf3c-6f87-4774-bdbb-c938d9b42793, 4df1cf6b-6f8b-4028-9d7b-fcfd9b5aa980, 4df520a6-6dda-4c31-82e6-550648b4cc34, 4e0449a5-aee1-4aab-8f4e-0f2053c7abad, 4e186e5e-843e-44ef-9b48-44ce07ecaf86, 4e548f73-66b3-4f97-8bf9-34fcdc0b12e5, 4e7187aa-81d1-40a7-9b07-d63f09188e12, 4e727a75-9f16-474b-8de3-e41e6bcddebe, 4e759b0e-0386-42a3-a940-b07d5bf26adf, 4ea6eec2-7fb4-4253-977e-56e1b66cfc6a, 4ea9108c-7a32-4fb3-99f6-43915454b2c1, 4f026ef1-1532-48f5-a941-f62d1c946061, 4f104a6b-72b3-442a-9548-cf468dc6c664, 4f1c7298-5816-41c4-8547-196b2f4d8113, 4f2ca3c5-9f46-4e28-b10e-f5ae39987297, 4f402e4c-2b36-4388-8e78-a411a69b1823, 4f42db86-e22c-4ae6-8504-607ba31f6114, 4f45254c-130f-4b2e-9d7d-bbb8f8c3f275, 4f56df72-c028-4f06-b393-3356e5066015, 4f80dea4-6bc0-4804-9b91-6b098ee4857d, 4f98ec05-b534-4175-a972-09af33116a81, 4f9afa9d-625e-4bc6-bf6e-402bef2b63d4, 4f9ea452-884e-4b16-acd9-332047ccbab8, 4fb716ae-1960-49f1-ae41-f5565e0eb7cf, 4fba276a-1fb4-4811-a146-eb0ef97a1910, 4fd2f0a7-fd00-425f-b59a-684bcb32b864, 4fe01cc3-8c68-4e27-afdf-e8df223f736b, 504a2400-327b-41af-affd-90bbf22f4b36, 505fda64-a1cb-470a-b2e8-6c4141bfb2bc, 5061fca7-b431-44bc-bfae-98f1d524b0b7, 50732894-e397-4614-8b4c-acb04b10426d, 5077759a-8987-449b-94f9-82f515033359, 50c48c48-5e8f-4b7b-9636-85795f903321, 50e3da32-721c-4d46-8118-73117446ffe5, 50e6e3ac-b228-4690-9bc7-3c08ad05ebd0, 51255de9-e1de-442a-a5c7-549e46c2a719, 515c109b-cfd2-418c-b3f9-26ea8f1bf64d, 516b7ba8-42f2-4bec-a599-0c94709af153, 51749d4b-3fc6-4bf4-93d0-b88909f78c09, 517f52b4-6750-474c-8fe3-ae854111defb, 518df9c0-a571-48f0-af67-41093195bf5f, 51977818-6429-44bd-a476-22466e95daa2, 519fec0e-0e22-424b-981f-c7f21d0fcb0d, 51a615e3-7488-4901-8d87-d6ad51648185, 51d60b18-4942-43ec-8987-936bbee77105, 5219e5f9-75eb-4d02-84fa-e1432abd1893, 52308bcb-435e-44e7-a671-eeb56931376f, 52497f5b-e4e2-4b68-baa0-422adb27a107, 525a2e63-9c09-4da7-a9b4-b848c10e7218, 52b33316-5ba0-40da-b0b3-bd0a14c967c1, 52dc33e8-188e-484e-9c10-d38fc21d0a24, 5301e8b3-3970-48dd-8a76-2cb851bc0f50, 53218a94-18ec-4f82-ba96-7b0a6bf174a5, 5356ce91-550c-43de-81c6-7c846f994143, 538bf023-3a23-4f70-bff2-63ecd6817bb4, 539f2f6b-c098-4249-8397-eb4536ac0f7f, 53b322a2-2419-4b9f-a1d6-7966f2dd9b74, 53cb9bc0-119f-4472-a742-2a4345733d4a, 53d7698c-78af-437a-a93b-0b9f91fc7605, 53e2eca1-fbad-4fa2-945b-98f9e2458e2b, 54109ade-99aa-4e0a-aea7-f89419335f8f, 54153171-8b56-4769-a190-f9904ea88af6, 54187002-354e-4880-8e7f-e0c102ca78b4, 5464f061-95fa-4826-8e70-318c91e92f09, 546aff97-0a48-4881-9b9f-15e67b55191d, 548ba0a9-771a-42df-8245-f01b7e52c3f3, 54912a96-320f-4158-93e8-71522358097f, 54c039d9-90cc-4418-81b5-1f77da361cbc, 5500f4f9-c2ef-4e2a-9cd5-a6a8f72a14e5, 551675b1-4aa5-4825-9b8d-91e48cec8225, 551e622c-5b48-45b1-bec1-808d54c41d39, 551f5233-2c56-4fb5-93cc-e7dc4565211e, 5538fb20-b125-4906-99ce-ee44ec5f7c30, 554d9500-abc9-4fe0-8b89-5ef88075374e, 5561890c-7b39-473c-a484-036a13c1af3d, 556d510e-f925-4acb-b59f-2a46874d541b, 556ed94b-62fc-462f-a945-bacd58929b85, 556f2e9e-94e8-415c-a1c9-05588da872d5, 558a9eb7-8813-48b8-a0f9-32bac6c7b436, 558fc6a8-1afd-4d79-9bb5-7e253d878208, 55ca4b20-9ad4-40d7-8451-81a58c2b1c6d, 55d9c882-dca0-4c1d-b246-d46c06ba70b1, 55ea36c9-dabb-4203-9526-99c417f67722, 55edb439-219a-4c21-b905-44024eb9dbae, 560ae975-dc73-41c0-9761-0fce13bf10fe, 561b586f-1019-459b-ab55-c1d45417a248, 562890e7-706d-4061-bc7b-01d028845367, 56579b3d-978f-4827-85ec-b895554b3d11, 5696187e-b738-454b-b642-a672081515a6, 569dc9b6-ffc7-4a0b-833f-de0022ad3cfd, 56d455a4-72d1-4a88-bf35-bef87fa40664, 56f4a536-6fcc-4f23-b1bc-f325df8bec9a, 571a0b1c-bdbf-4a64-b2b4-a047fbe7a0a2, 5730acd4-fb8e-440f-837d-7bd6222f55c3, 574641c0-c748-4bad-a8a4-6a4a6128de71, 574fb854-ab0c-4690-b9ef-6b7181765195, 57501d3e-5011-4e21-869f-befb91ae327a, 57611137-99ae-4dde-acad-bbac6d174367, 577b0dfd-6990-4735-96ae-c15bd773155a, 578885bc-779f-4c3a-9f3c-78733d7ce41d, 578b2d15-7833-431a-8b34-fffa87fea29b, 57a4feeb-0fbd-4cf4-be3c-d46fce9d345a, 57d76d4d-c22c-401f-9c4c-a6c53ec02a90, 5847a58a-5197-45d9-9d12-26ccc40e161a, 5862e0d3-366f-499c-ab6d-60edfda8874e, 58702e15-2a78-4de8-9c3c-79ae46aa120e, 58c2483c-d930-41ac-b11d-be3f601a45bd, 58c7387f-fc48-4193-9c55-b83e3f2bea64, 590268f5-e4be-4867-b854-f8fbbd76d9ed, 59073b92-53a4-477c-8f51-beba7cb4479c, 597151c1-6774-465f-8037-65a1c638f34e, 597c2683-45bb-440e-95c2-1bd71002c391, 599e2de4-76e8-43e8-b633-0776a3434943, 59a113c9-e4f9-4c2a-825a-77f090db3ef8, 59d99ed8-be09-48fc-88ce-3815bd1c75d3, 59e03974-c1de-45b3-8436-25a9e12e8af6, 5a16d431-dc70-4cc8-82de-6ff699005363, 5a8201e9-d034-4d70-ab5d-e64f3f37e8d6, 5a8fd5ea-5f32-491a-bbb0-6c830d8ac5ec, 5a9afb4e-48fe-40b2-97b3-3db701a25856, 5aa9f368-2311-459b-9478-8bc21a5e94ab, 5adb2ba3-5c4d-49ef-b387-1d0153eb26b1, 5ae2aa08-d101-4db9-8b94-586da2307b4d, 5ae4fa4a-310c-404a-aadf-e2132290ea06, 5b2031b2-fd4c-4111-8136-a1231b60f0ab, 5b2839c5-8684-4baf-bfc6-e6d7297c8a10, 5b891096-3c2b-4561-b278-ab2f9511ee5f, 5ba2c3df-0318-42cf-b666-00044bfd735f, 5bba855f-16d5-4638-8964-8573fd312ffc, 5be08264-8a60-46c8-be49-25f661422d52, 5be90c7c-e6d2-4a2c-b503-bc587d6094fe, 5c29e11d-fe25-4310-93df-b56d02268ac5, 5c37a113-38c1-4941-8207-329b27f41bde, 5c500592-4196-44f6-9000-7837c2f2ed52, 5c73d742-6ee7-48cb-a42d-c69f5294ea03, 5c76479e-bb83-4c3f-9815-863b86ae3d58, 5c7b8fb4-e271-4136-bd4e-0d66ace10fcb, 5c7cba7d-66d1-4526-a41a-ab20929e8fd3, 5cab0a7e-45f9-4cb5-8b64-c5389e36b887, 5cb014f5-ed6d-44f2-aa4d-f06ab2f59a2a, 5cd63610-4e3c-4a4a-b84b-bc0e79624141, 5cfcec78-257a-42fc-9158-a80393f2cae7, 5d1df941-1717-424b-af58-c785b6da7ebd, 5d1f5055-6300-4e94-a002-763646f826b1, 5d4c20fe-1644-44a7-986c-2d80a65efada, 5d51e6d9-65cf-4a4f-97f8-7ca6efcb1c65, 5d665938-3549-481c-a0c9-a3f98dbd795f, 5d8a72c2-84ec-4911-9c79-812d566f6704, 5d97397a-902c-446c-a61d-ce173e62f79a, 5d9f98b0-d8a4-4b3d-b796-b5237578cbec, 5db8fa2c-f104-483d-9574-759d80de227b, 5dce3a9f-8773-4ee4-9264-d81b171aab4e, 5dcf6548-69d0-42a2-8d39-de70b2f4ff6d, 5deba1cb-ff8e-4007-87b2-d0640add4e99, 5e2835d6-67c1-44d0-8a4f-dbd9d3b687c7, 5e36c5b7-4e7e-42e8-b0de-797fec9710fe, 5e447bf2-c83a-4c5a-b286-f6d270c29332, 5e696fcc-7009-4658-ad16-d7a236010258, 5e7e89cf-0cb6-45cf-a85c-408431720c43, 5e876dee-7bb1-48bd-b91c-8a6bab7a6553, 5e93a738-d78c-42a0-9183-d516838e37f9, 5e98d14e-0581-4de7-9df0-5dd679a46483, 5ef10049-58c1-4386-b7df-65cdea387e27, 5f1ff378-ef4d-4331-a2d8-877f204230be, 5f284253-9dab-4e41-bb07-121827397f9f, 5f28d901-a7a4-4366-b039-1982c7a5ba13, 5f3fe9c2-02d5-4ccc-a8da-1fa4e878090e, 5f7e5094-434c-4bde-8277-0b74b064af0c, 5f93fa66-b8cb-421c-853c-ede60262f93e, 5fbf80d5-a580-4cba-8a97-df39d8f5f63f, 5ff9b235-815e-4d87-947b-a51bc7e45bc7, 5ffb7c1e-8266-4617-96f4-310e398c16ed, 6003f922-0df8-4eb4-877a-cb270ef225cb, 60077864-0d49-4033-9fe9-223e83abf25c, 601cbb39-d95d-407c-8515-1924b45b7c2e, 602acd21-3305-4fea-986a-b0f0e9f70af9, 605d4cb3-ac88-48aa-abaf-963595cf901b, 605e51a0-6181-4950-9074-b010430107bd, 6070f8ca-15fe-4041-959e-f8aafc081da8, 607fd761-9122-4073-96dc-8e0637f79f22, 608e518a-ce5b-4ab6-b32e-866c1ba610e2, 6092de48-ab0c-47b6-a785-d32ea1edc356, 60939566-9459-445e-a479-470804fac820, 60a60b78-5792-4fc5-9655-69cf20741569, 60aab776-a9ac-4c2c-8a5f-0e2436ac07a9, 60b74feb-8d78-4b3b-862f-06c4ad41f860, 60db5172-2e1d-4a2b-9c3b-23234f74454b, 60eaac2b-3950-40bf-bf67-70c6568860f8, 61285f03-fcc3-4ef5-9f28-fa9ba9d438f5, 612be5a0-376f-4b03-bc7d-142f0741cdce, 6143a9b4-d83a-4742-808c-07f6a4b967cd, 617e889f-31b0-411e-8636-6bc585c6f36d, 6198aaf1-dafc-4f54-bc5e-f7e6b131e701, 61c24cf2-fa37-408c-87a9-1732952a4b65, 61ce8d6c-b8da-48b7-92a6-ff28d033d7fe, 61f24f9a-8b0f-4c17-8000-8dee880f780e, 62273270-86fc-4556-9c12-0c0e59c07949, 62287c8b-dbb9-4a89-b31b-d59656204ca8, 62541eed-e3d1-4a30-b25b-242d6eb009ef, 6287ed42-8150-4114-a0d8-4c96f660c049, 6293f026-164d-413a-ba50-444e3c06f20d, 6294136d-2213-4f43-8801-a4901d9658b3, 629bff18-5ad5-4804-abe7-ffe455c84075, 62b2f81f-f433-4deb-85d2-9f16329d7477, 62c15ea0-59a7-40f2-b6cd-13b6c684dea6, 62c9226b-99e5-4487-9fef-494fd0cb5d03, 62daef80-d172-491b-a948-212d6dfd628d, 62e208c4-16ef-475d-9244-99b592de0c1f, 62f4a6f9-7b9e-410d-bf90-dc032848003e, 63167e72-7ec4-4f54-9f1d-2d59845b2db9, 631e7bb1-9f58-4d2f-9263-630c69defd12, 63336c91-33cc-478a-90e3-62c96facfa7d, 636a974c-9a05-414f-a7a0-7b47db66ccca, 63748fe4-40e8-4c55-9255-5223b8c4495d, 6380ec41-0bf9-4b5b-9ddf-b4b400929104, 63847106-4f3d-462d-8875-f2e572c9323d, 63a67114-875e-431f-8e6d-32b283f3882f, 63cdfbe3-2d4a-4f41-b9df-99d92c17aa55, 63e87d94-345a-4586-a80c-c5417a8bb615, 63f90620-99df-4fb1-80d2-6139e74706be, 63fe9af8-7b7b-4420-b202-6b17415ec4c9, 64ac2864-f53b-4118-8f00-2b7bb1bbd2d8, 64ee6c7e-a967-460d-a8a2-9337b9e45257, 64f1ce62-4e2c-46fd-b94b-a2b0970872ec, 650700fe-b9d4-4355-a85a-c9ba58443307, 6557a85d-25b4-4b72-b5b4-5da5cb600be7, 65787ea6-42b8-473c-b5e0-4755b994eff7, 657bd56d-b03c-42fd-b051-1771edc80f73, 6581b1d8-95d1-4f42-b4e2-e7a4167c5080, 65c1fb23-88d2-4778-be0a-87b59565d0cb, 65f182d2-fc9d-4492-9156-ca915d1c54ae, 65fc8787-2e07-4a5c-a531-70bc7f795db1, 6623f8eb-1fa2-4d51-a025-49a2b0f66310, 6658746f-15fd-4882-bbab-331cdb512125, 666bef70-6cde-4e84-8aff-b3389d764eac, 666dce25-166b-4dfe-92ed-69cf896be18e, 66b979e9-7a62-4c04-ba60-6cca1d71f4a0, 66f3c35d-2eeb-4c9f-b948-00853b1e4967, 66f433fb-f4d2-4c48-b1a2-2beafd9c7549, 679c0ca4-2ee6-4497-ba3e-568ab40af43f, 67a19147-c264-4968-bae1-06413167e299, 67ac3662-a214-44d7-9fba-cbc49eb1ade3, 67ae1d65-3edb-457b-91fd-07fffbca595b, 67af6ded-8ae6-4192-9baa-aa7279613e95, 6830fe9b-7f81-492a-9d97-0a03d2833350, 683ca0df-4d6b-4df8-83a8-99eee5e369da, 68c41164-dfe2-45dd-b01c-518e74d6f8ba, 68c55273-a123-4f32-82b8-658fe29885bd, 68daa125-88f6-4690-8824-3279824aadfb, 68de1f75-922c-4d28-bccc-c04f3b670160, 68e2a5b6-f79b-41ee-ad20-87f931695f12, 691cc85a-341d-4483-80b2-cd11c18963ba, 6920b81e-5db8-4e19-8bd4-ec4d578c35d7, 69466264-7db4-475d-9e2e-ebb61719806d, 6947213c-468c-4bff-ba0b-529a75c61edd, 69792f95-c738-4385-84aa-48a848ee0a9b, 69a8b6ac-6fac-4f5d-9631-b8cfb470db88, 69d3fc9d-5c5e-4615-aa38-68989180116d, 69db1117-fedd-4185-aebe-fb13128d8aaf, 6a020c88-7444-4697-81a9-121fa6c9ae21, 6a14e085-539e-4388-b19b-0a61f157b14e, 6a373aef-8ee9-4878-b814-09b43ff4955d, 6a7a2a16-ac8c-46b2-9de7-446bf2d8bc58, 6a89e417-170d-4ec7-bd7a-34833627c057, 6aac39cd-179f-4a63-9a7a-972f21d11465, 6aba17dd-e973-4c24-9628-b5cf88ce98e5, 6abbcb41-8fd7-4c0e-9193-7117a9f1dbfb, 6ad72a5e-ced1-40ca-8f52-ba16ae6de01c, 6b17d99a-4541-4292-8b38-dd7fc9888c3b, 6b2b6338-155e-48d7-898d-22c38a7d9da6, 6b37d7b4-0faa-48dd-beac-4dbcf5ebdbcc, 6b3cc3b6-c4df-41c0-9b7f-38d97e510dca, 6b4d351e-932a-437f-931b-edd22e1df194, 6b776fae-758f-4674-b406-e1e015c306a2, 6b951a0e-693f-4aa6-afd4-7d3f42d1e829, 6ba8734c-f321-42cf-a936-32bcc73a54fc, 6c265594-b3e0-4535-8440-ebaac12299ca, 6c5c6acd-f372-40f8-910c-5e7d84e83530, 6c6d871a-43da-4223-9011-9e61cc6722ad, 6c71b0f0-aaa2-4fae-854a-6877b10579e6, 6c7cc72d-1689-4b1d-b395-771b66d36bb8, 6c97af13-f295-4749-b7a8-3892facfeba0, 6ca3795c-22e2-4c8f-a3bc-d0aec8ae75a5, 6cb7dda4-c496-4179-aa5b-a1189ef9571a, 6cb83722-28a7-4787-b42a-cc73246d6ed7, 6ce4dbd4-0ae8-40a0-8752-e3b27b700687, 6ce6cc45-448a-4873-a506-e601041c28c0, 6d153731-a49a-47b5-b9c6-df58b487c582, 6d173a07-3d6b-48ee-acca-5fe4fb67cf16, 6d34042f-81ea-41e0-a79b-b919cbf88375, 6d7fe1dc-da81-49a0-b6e0-ed608fbbb2be, 6d8293ef-4ade-4a90-a2de-75f3cb5b7715, 6db1a185-c3e8-4484-8f26-662aa45d84b2, 6db9d4bb-3406-479b-8e7f-a88565c7c582, 6df0977e-5797-4ebc-8fe5-5cbf6db0e212, 6df1e1a6-4748-4975-adf0-d67b30e2e0fa, 6df86483-c29c-4305-9387-a5a84faecb50, 6e27a571-ad70-44d2-8482-9f993d431d8a, 6e4caa03-a600-45fd-a388-f532010ec982, 6e737c99-d255-49cd-8ff0-bd4ef49ccd3f, 6eac6ba6-976f-46a4-961c-e3a3b71f1b17, 6eb9a32b-d7db-476a-b57e-d7e6104f605a, 6eec0f31-de70-4022-82be-0d4646bdfb17, 6efc6789-a8a0-48dc-8989-6c9f7f736153, 6f740dcc-2893-491a-b608-7729fd538528, 6f7c4c4a-0be9-4358-a73a-a3c14bca10d4, 6fb4d4ac-4f71-4c61-8d5e-22247673da08, 6fd31564-159f-4ce4-9c23-2f182c9d49d7, 6ff19ae1-4703-49eb-b153-efe5e62cb4cb, 7008a225-a59e-4b34-88c3-e2398c189d4d, 70208158-a9d2-4c38-ba58-6a383406d287, 703e12da-32aa-4779-a1ef-f470bb185ff8, 707161cc-e81a-4a1f-8196-775d5ddd034c, 70a47261-c2c8-4f23-b93b-bd73336f01d6, 70ab52b2-2686-49ce-b578-64c4cd9d971c, 70ccb0be-2d6f-4324-ae6d-2cd8793678b2, 70dc128e-cd36-40ae-b552-f65e46e8d2e9, 714814de-0c10-4ef8-9581-92d13fd3250e, 7156b0c0-66dc-4c93-b8b7-61df0fb15f63, 71584cf5-419d-456b-8ee5-e61dc9a86427, 7171544c-5be0-4ff0-b7f2-881a71391f2a, 71752eca-c3b6-4402-8b6b-8775411cb3f1, 7178f819-192b-41b6-b015-fdb2e373a04a, 718c23b3-3118-4d2f-a95a-e96043ca6fb7, 7199e1fa-b2f4-4273-b43e-4371bfe0c998, 71a9e27a-6d4e-4e2e-b0e6-479919d483b4, 71fb7831-df11-49c0-9f24-016d38b50e1b, 72100fa0-a44c-458d-844c-76aa96a52c3b, 7249b5bc-f89e-49eb-a9f2-dda6fdd32644, 725fba72-2756-4c48-b942-910742a42ef8, 72717be3-0071-4ecd-be94-b10d38d10171, 7280941e-7331-48ff-9faf-7ec2cdd2744c, 7294bb7d-12de-44e8-be90-34db1f051d5b, 72a3dc0a-0180-4b2f-a45d-e4c0ab1cd281, 72c91faa-1dfe-4e6b-b2b4-ebd720fae86b, 72d66b37-b7cf-4c36-b27f-79f4a644c919, 72f4b758-3d74-4cba-b94d-e4bd86afa2e5, 72f57d2f-f9a9-4fce-b6c4-50fbd90fcb1c, 72f9d41c-0408-4d96-8e36-b4d5cb4146dd, 7303b119-a703-43a4-9733-3d3b238be900, 73093275-56ab-4335-ac86-ebdd27fafbdf, 735e51f1-5c9d-4ab9-a2af-4e18fe484ea9, 736fd89f-61d0-437e-aed8-6070eb1b2629, 737290cf-9ea3-4f57-b7ec-c00e53182eac, 73c8dacf-ddea-4f7c-9d49-69435be313f8, 73e214e8-553b-495b-b022-04b2f0050917, 73e382a9-2da3-46d2-9d7f-dc854305a857, 73edb47b-4ffa-45f5-bc4d-92252d12fdb3, 7409cf6c-6ce4-42a9-bf0b-afad66011c22, 74298405-1fc8-41fd-95a9-89ded48812e2, 747e4c54-e876-4cce-adf0-70055c6940b0, 74851916-6da2-42f4-8511-c7e8b1e9757b, 749a9508-0068-400b-abd6-91b0786d37d6, 74a328f7-5bc1-4429-befb-c3b6c48341f6, 74a6e773-363b-481d-bf2f-3f594a56c835, 74b8ab42-4b70-4531-93d6-aeebe34600ea, 74ddd332-2557-4ae6-9229-0704286d195b, 751ebcab-ed0c-435b-a81e-a630cbdf52b1, 752bc25d-bb32-42e6-8e9a-0f6d384251e0, 7594e87a-c600-4f83-88cc-11c5156e3091, 75bc0115-7dd7-4d63-aa84-e9b45e5f7731, 75e88381-a070-4b2c-b165-0c964fe64027, 760bf08a-bf3b-4ce5-9c2f-f9316c2f3d12, 7626a290-3806-40c3-82f4-f15ad365f04a, 7627417e-d68e-4176-af58-3dd38b0d12ea, 768f28f8-c980-442b-a24d-f906dc5c1ea8, 76a226d2-8681-4109-a570-822d011ba4f8, 76ae3bf9-583a-430f-af6a-75c855479d35, 76c53183-48c3-4511-ae3f-c0b66040f38c, 76d5cbfd-d771-4280-b039-e1011891dc2e, 76ed9c49-98e2-4233-af45-0d8b796e3729, 771214b9-30d7-46bb-b076-4e56f2bbd791, 77215dfc-8976-4acd-bfb1-e741a626503e, 7749899f-8723-4045-bd71-353750719c70, 7750d874-ff7b-4edc-a2f3-2f7a9fd08656, 777fee37-ef2e-4277-9202-2e19982f5475, 77960496-4440-4870-84cb-926006c85d9f, 77972077-e246-4700-9329-02386ad1c809, 7798cc96-0f1d-4fdf-8756-aa0ac0827428, 77c5319b-8b13-4d2c-9f25-36f9c846c399, 77d999fd-4d19-4c28-9df0-22c10b8c1346, 7803c807-d305-4190-a210-1487210570bf, 7820c40a-9426-4e4f-b2e3-92c02661b567, 7878348a-3eba-4685-bdbf-691607bd990e, 787a33c8-f742-4079-8765-aeafd9989aa1, 7886edc6-02dc-4fda-b000-f2303f0627ec, 78be23d0-3d6d-4b47-9042-78d9ecd76feb, 78fd92df-fcbf-4531-a711-1aeb9637953f, 78feaf14-50ee-4646-bc2b-202d4ecb2cfb, 79036d9a-4083-4e2e-8c1b-e316d8397109, 791e2899-bdc4-4cc7-b42f-fbc1d1ae13a7, 79261f46-0f58-4d67-8da3-4f19bdb02bc4, 792f429d-4c90-4ed0-8457-b116b9172500, 793d9ef8-b785-46c9-bbf0-df1b4693b2b3, 79547b46-d65f-4c36-9da1-c4fe0189f450, 797635c2-bd68-47ce-b41d-c1e127e52d8b, 797b6de3-fe59-4acf-9519-13766ca5a7a4, 798fdec5-7437-4330-b362-ff6a50f2a8e7, 7996d130-674f-4047-b1ae-dad3de151588, 79c1a707-5065-41fc-88fd-4224be3ee426, 79cfd693-9062-4f2d-9f49-722a7b01ecad, 79ea9a37-8f2d-4cee-a27a-ec0c5279f54c, 79f8bd31-6f7d-4f81-a1a5-b6e7cd24558c, 7a45deb8-4616-42dc-90a9-f77768e49781, 7a507c5d-a561-485d-a32a-153e72887f88, 7a6b7e09-4330-4110-86a4-5be5285ebe69, 7a9f62d2-7f4d-45fe-9858-1cc080648691, 7a9f9d96-58b3-4330-a950-bef0fde06562, 7abed478-81c0-403f-8ff4-f67ce0fe2ca4, 7aec6868-8aea-4e39-8457-8a4676cd89d2, 7af6075f-ba84-4ce9-8a7d-efd1d9ff7f22, 7b08b0be-fb92-4723-8231-53401dbc0684, 7b5b5c96-7507-4682-ba23-76c65c71566b, 7b994995-3dab-4c2a-9392-932b0e4f8aad, 7baaa4a4-1e14-4029-8343-d4e2e96faff2, 7bd50779-2858-489e-9542-4b8bed42977b, 7bdc0c9e-061b-441c-8b8c-99a8aaf66c0a, 7c2d97b7-8164-4562-a056-00d0bb9f51ff, 7c42f653-694d-4b6c-a41e-515fcbbd6dc3, 7c90ce77-5924-4c91-9867-9fd270bc8b5c, 7cabe3e3-9655-4c6a-95c1-f527375e7ef9, 7cb5f82a-d296-4287-baf4-c687276f27c2, 7cd17b18-b7e3-4456-b2e2-8125b2808c75, 7cdb0315-16df-4d17-8c12-55a00fdaefc4, 7d1813e2-a728-4a51-a899-153b605995c6, 7d20d5a1-032e-48a3-a0f4-ebe2dec1cc47, 7d41f654-e94f-48af-a799-09a19c5d4469, 7d4c9626-2caf-4249-b704-137bec0525a8, 7d695681-c78a-4c37-9079-d773b6ad4219, 7d99321a-d97d-4dbe-a016-b72913d50bc4, 7da4f96d-dfc3-44b9-92be-f75d583926dd, 7daffee8-7fe6-4179-8f5c-6f6df570400f, 7de59f55-20a9-4794-b06f-92dd9edae043, 7dfe75a2-fd0d-4840-9da0-368870c4b2cf, 7e2b25a7-0dd5-46c3-813b-030cdd7dd7e3, 7e3c66c5-38df-4781-91c7-b70f75af8df1, 7e3d3473-ce0e-469c-887a-38f51e2ae9c6, 7e3e3110-149c-41da-947c-a84176b90ddf, 7e4e1e6e-9e42-40a0-b737-359871142484, 7e7f18d0-e23a-499a-b5c9-5fe93efc0764, 7e9a1660-6052-49c4-bd03-a844467874e4, 7ea3f36c-bfb1-4583-8e69-c7fe5850d57e, 7eac1112-42cb-4145-8582-610ac1906668, 7f357580-2b79-47c3-a7ae-079c68fbd3c0, 7f46ee65-4799-49d4-bad5-92bfb3a5b978, 7f89a601-984e-4809-a060-0d880eaaae8d, 7f9ebb2f-969c-47d7-8ab1-73b455ebe68b, 7f9fb071-6a9a-48c2-b66b-83c45e96c0f0, 7fabb106-2972-4291-995b-f8adc6704e89, 7fb133d8-7f43-444b-a2f7-ced7b76230a6, 7fe8d8ba-bdcc-49de-abbe-0e3c4cf97976, 7feb718f-f5d3-4d4f-b84b-a56461ba7d5c, 8001be26-4535-4f25-be91-486dd396cddf, 801508b1-c050-44b6-8d4a-a9410e422f25, 801a5cdd-74d7-490f-8615-efe7fb5fa115, 801d4057-9a1c-488b-a54e-63e1ca21cea6, 80299237-b654-48a4-b1ae-1bcf20b494ce, 8044d616-1b9c-4fff-be51-1b56f05bf9ba, 80684e9c-2301-4972-895e-99b82d2ef44e, 80a4d546-3f18-4934-afdd-33c059fa4960, 80af1c04-6fbe-49f4-87dc-aca813a89d83, 80b4f595-1e29-427d-ba45-9e1773588d95, 80e02659-983a-4cf1-88ac-300eb0be6923, 80eed146-b366-4530-a624-1de60057287f, 81175400-aea6-4446-a603-ef66f4142899, 8157f474-1a9a-4765-ae13-67d03789048a, 818a7f6d-12df-4900-93db-43a69cea226a, 81ab595d-ae7b-4b53-8b65-cb8989465204, 81b56cd7-ea5b-49e2-96fd-97e5ed34b48b, 81fe1ed3-f2cd-44c9-b2b8-1c1557812a95, 820d44e9-2315-4a41-8861-9bf9f435325a, 821d8fb9-8703-4562-b71d-c0fa8b943adf, 8236092c-b22c-4040-92fe-6b6f4e2f0838, 82376e3f-c49d-4045-921a-b2d72a5b7d61, 8258872e-f813-42d7-a653-8c2ed8307fca, 825c701a-07c2-4692-8e40-a5c603c5cb5f, 8292cd7a-9d4d-4f31-b890-7b4527034c28, 829c802f-423a-4244-b10f-0eaf2b9dac3e, 82d1bf4b-3873-451c-aec2-c432f49a0b22, 82fa4629-6f99-463d-b71b-131a259d8425, 8301d3b5-b4ea-44c9-a30b-f42372a3e91b, 8329a842-c0ee-4ba3-b8ca-60955486d4a4, 832f684f-147e-4ed3-bb29-80d086b0d02c, 83e6a749-2fca-4122-8db1-3fa19bd1eb6b, 83f21991-9088-413f-bef0-0be70442e819, 840464b1-a287-4911-97f6-0291f5d9f08e, 840a822d-d619-4f09-86ca-bee373435eef, 841a9101-219d-438e-ad74-28fff4983982, 845cdf10-5f8a-459f-93cf-ab3cd74321d6, 846e7a70-dff7-4cf5-bc60-52d61de7b47f, 848fc4bb-954a-43ec-be43-95145f7784e0, 84bee40c-7ed4-4446-a1bc-c8c3fa697b55, 84c2f863-4cf2-4a17-a71f-5d553e45c17c, 853abeed-0379-4376-9062-bd2e079fb6b4, 857ecc6d-4b81-4435-bfc0-3aebae65241d, 858a52c3-56dd-4c3b-a94c-90669f6282dc, 85d8d4fe-377e-4006-a38c-1395a7f4f7bc, 85f7efad-7444-40d2-a436-c33a364dd5ce, 85fc9175-c391-425f-9723-e665fc191665, 8641107c-96d0-4152-9143-a53d3eb17e40, 8685b562-165f-4409-9e92-e4ce9ccdb9be, 8691f837-340f-4c52-a275-0d3db8121e7a, 86943c3c-cf91-4237-82ff-6aec2c79fbbe, 86b67c3b-c9f6-429d-a073-7b03390c81c9, 86c3a1e3-9d0f-40fc-a3b3-e79cec0f223b, 86ccaf0f-47da-4c47-b163-a1959f60598d, 8711d6ab-17ec-4b90-b666-00f151a935b8, 8717f4c7-7cc6-4645-bb85-34d50965bf52, 8758e1d4-46e4-46bb-a816-bda0b3bb7ba3, 87a140f1-6f6b-4638-a6d6-a158841364ee, 87ae336c-b11c-4c08-aaaa-0665de83b571, 87b92a17-0d88-4103-8e40-508c50c0ad2f, 87c03828-0d86-4536-8f36-d2b12a5c7cf2, 87c346b1-56cc-4f03-826f-4caf836c9506, 881d4787-b7e0-4816-9ec4-4c7f34c73eab, 88226c42-d22f-44aa-9606-9eb9ce608753, 8829e4a8-1b26-4891-81a9-6445f576a288, 883fbf86-ea46-46b2-a655-d3571bb8510c, 88485427-1603-4d6d-9dcc-9d8913a39ea9, 887c9995-6bf9-4387-99f4-269bcfe53394, 88b54025-53bf-4cac-b863-d3b22e60097e, 88bdaede-239f-41c3-9e03-950317045e3b, 89180468-8883-4531-9eec-39ee10700e9f, 89319bd1-d925-40db-a3c1-0db5afb7ef67, 89337d62-ab4a-4117-840d-e7a9ab244615, 89388d04-221c-4f5c-8586-b7aeef674349, 896b222c-4ffa-4366-bd81-7c900fc8d6c9, 8999af9b-7d36-4011-b4b6-71946468c939, 89b2f8ad-f54b-40fa-add3-ca738dcf6af4, 89d5cfcd-a666-4120-9af0-c7f4d01d90ff, 89d67469-c6d1-4e88-9973-ea7cd0687b55, 89d876b2-12f4-437f-8210-64a012e4208f, 89e6b6d3-fb42-4671-8f9f-e062184e196d, 89fee8ad-00fc-4359-9181-5839b5183089, 8a0ca361-8541-4c77-8e62-1f3287d65e5c, 8a68e442-ecff-446f-ad1f-a9dd82eb567c, 8ac4fb41-518a-43e1-836f-5d2d7f10f8db, 8b3099bf-d0df-4f06-ab43-b6300affc3d1, 8b36d1c1-0880-456a-bee3-15ba816dec0b, 8b7ada39-1570-4933-bc60-9bedbf3e2d99, 8b8425cf-c576-4ba8-ba26-1225258cc21f, 8b9eb3ff-ab01-4874-a95d-7eac12510b6a, 8bb706e4-7383-4b2f-b938-94c17fd1d191, 8bbb54f0-7d05-4212-885c-a7d47159aea5, 8bc257b8-31ed-48c2-b56d-71328c193176, 8c1d94da-21db-4bd2-adb8-b759f5c247a8, 8c2e43eb-6095-4fa3-a644-0b6aeb8fea1b, 8c3e747b-8895-4019-b305-74c80cb94569, 8c58f289-5f84-46e4-896d-3471e159f63e, 8c67b7bd-1196-47d3-bed5-b29a0d014de7, 8c681ab9-cea5-45bf-bdf7-d8153d8b8cf3, 8c84bc59-d283-445e-82dc-1848de0f414b, 8cb75369-0520-4968-a871-1c246a8e7bc8, 8cc4dfe5-3ec0-420f-bef6-6119007ef742, 8ccd6925-d6b1-4633-94bd-1ad8f09db5bd, 8cd07c5a-871d-4aaf-92bb-a4c6b1a4ae1f, 8ce1eca7-c3c2-45c0-9b54-e22355edb7c3, 8d06bf5b-5c3d-42c5-a132-6a3987fcb4bc, 8d0e157c-b634-4dd9-a3a8-ae9f7df10907, 8d132d2c-ac8b-4ff3-baf1-44436e8b6ad3, 8d1d0b68-25d1-44b5-9ba1-84ddfe748315, 8d211247-50ea-4cee-9a2b-b3d1a60464cc, 8d73e8cf-c5de-4cc4-8a36-17103058c58c, 8da33b3e-32fd-439d-9f66-13c58ca29154, 8dbdd921-aecf-42e3-a523-1f75412af5f8, 8dcfb7ff-d73d-48c5-9e1b-10d648db2b79, 8ddfb90b-c004-4ee9-8d0d-3957882a2483, 8de16d35-cc98-4517-bd7c-f33b0b12ab60, 8df29516-125f-421a-9545-6cf63ea60c7c, 8e01d1a7-e8e2-4656-8753-61d7fd5e3587, 8e4ff962-0961-4ff3-b3c1-274f962f6407, 8e698c24-fd81-4ef3-83ac-59ef5da44df7, 8e8be00b-a62a-4d2e-a517-3b2ad34e5640, 8e90df64-b733-4287-8ac7-c7c1461b67bf, 8ec53ba2-f8e8-4442-95c6-ae8122816873, 8ec8861c-bb10-4d95-8009-9c497d9bffec, 8eca0418-d6a5-4e2d-bfd0-6f0b4f3ab7dc, 8ed00a0f-73da-4d8f-ad2f-d9e8a96d258c, 8f7e48e9-4f08-4c31-bdba-e4a749253934, 8f7e9104-5473-46ed-92b2-216e642cd104, 8f7ec973-e405-4185-9c2f-dd702b62fb83, 8fe5c3ef-d57f-4f13-89c9-eb350f21eaa9, 9037f1c2-29c2-41e8-a761-68b6b46830a3, 90416b11-ef51-445d-b4e7-1b01ee45fc12, 90794da3-b217-4cd0-bc0e-884082baf485, 907f5a7d-d784-42bf-96aa-4f5236cf3cc2, 90ddfabe-d829-4112-9ddc-6ba9d8d509cb, 90eab2c0-f69c-4a1f-b1c8-cf8cd412558e, 910e0564-96b1-4f92-8fe9-6df2caca8259, 9140e1b1-d288-48fd-b845-ce0f91a9ec60, 914aa919-6fd7-4e38-a480-4584bd41a1ae, 915dc64b-c0da-48e3-a434-22e3d54e7373, 918c3283-e900-4be8-9c78-4987c02a1dfc, 91a69b70-fb80-4d77-ab84-08e3600dbe1b, 91a808d0-e337-4cea-af8b-facef5a1567e, 91b09548-b920-4bc8-a337-4518511bb6d3, 91cac958-0366-4bbb-89d9-c12cd38eee26, 91cc21b0-7bbf-419d-b3a0-77844894f48d, 91d01571-6689-472f-b5b7-fb7e8d9d7632, 91d045e2-788f-4ff3-bfd7-2084deb3e8b5, 91d73345-4967-4ae7-ad48-a682f7747693, 91fa7ce6-9fa1-4c8d-8549-01e8d5d99124, 92146b76-2b2a-4d09-93ee-3aedf0b20863, 921730a4-5198-46b6-9543-2a27e13655f1, 923de3b6-d91d-4089-9479-e4175dee9587, 9246d878-3ac2-450e-9fdf-2e3bb5964149, 9246f3a0-7e96-4a05-b99f-b45284b1cf23, 92495834-d7a2-4656-8fc4-fd0e6a4b05b1, 92928b73-46ff-43ac-9568-602116c564b1, 92ad00e7-cbd1-4d9b-8a1d-1a8f38f7e9f1, 92ad58f3-8f5d-4742-835b-910d7171b769, 92b3fb53-a3b4-44df-bb31-fa0644ff609e, 92ba7cfc-ae74-43c5-af1d-a2c7c3bfa7e6, 92cb3e88-a149-456a-aa24-e3f26b204169, 92cfa89b-baff-49d8-9537-10317cad8468, 92ec4c41-05f8-4056-9da7-5d6fcee37b7f, 92fba4d1-6d37-4608-bd95-987b3b4b9687, 92fc65eb-6c17-40fb-a8a3-8978d5ec980c, 930503d9-f358-4371-8a68-8f529aeb904f, 930e1381-052f-4ffb-a22a-7c577e27e803, 930f4eca-6cb0-490a-8dcd-4f5952f5016e, 9328f72a-eb9d-4da0-a2c7-7f9c0587a0fd, 9361452b-eae0-4965-a546-f1e5edb08ac2, 936264fe-412f-4237-8cb8-9336bf5d040b, 938e8cdd-f481-4533-9b3a-0dcdee324077, 93c3e51b-a069-4679-be31-d62046645068, 93c8cfcd-b09d-4122-b0e1-ce91d7475aa9, 93f9374d-37c9-4dad-8bab-a92a530bfa6b, 93fb2901-77fe-4a14-8bde-ed25d68a8523, 94000f25-b7af-4da0-bec7-a020a0517ce8, 9407beb9-916a-4cad-8974-740c86f11fcb, 94378829-dcd1-49ac-aeae-f2d9190f82e6, 943e0cf2-1379-4886-9dad-dcb9c7b43d8d, 9461b804-6504-428c-bcae-5b9d0573f698, 949167bf-6867-439b-b773-4fa479f7d340, 949ce54e-2861-423a-856c-a91794a19081, 94c8ae01-9468-428f-a391-7d7e4acd37eb, 94cbbd4f-1261-4e7a-863f-65869b7f435d, 94ea7ded-0980-4d2a-a942-721117a09714, 94ed675a-8884-42ae-9583-22d06af1b1c8, 9521293e-44ac-40b4-8307-79c485764a52, 953d2a0e-77a1-4e45-a411-a8a52e9ad4ee, 9559c6e6-8cb8-4205-83e5-6c07f2af4daf, 9560c907-800b-43b7-b662-4504fd8ccdaa, 957bb1d9-f877-438c-b7e3-d028484774d1, 9589f265-e65b-4f1e-bef6-e3e14532e7d5, 958ee667-7168-476b-96ba-54dc74590384, 960cf5ca-f208-4230-8c65-0e941041e3c1, 96200043-63b4-42f3-9c42-7bd4b10d14a3, 9638946a-10a8-4680-949f-faef1674582a, 96618be9-e3ef-4e62-bef5-e9afd7751aa3, 968f53f6-8fb9-48d5-b0ee-fa08b06e02b4, 969431e3-0423-4352-9b4c-770d56cb1262, 969f7581-78c2-4143-8331-1bc04a3aa7f7, 96bb8e60-e3da-4832-97fb-0f642ae2fa2f, 96d11a7c-d922-4ee7-a094-8e31a3499ca5, 96d89514-815e-4eee-837a-2288bc9c3843, 96eda532-eb89-4414-a73c-b278485205a6, 96f75c4c-f307-4ec0-aaa2-71051d67b396, 970a26a2-8a85-4157-be1a-a0d2d6e63829, 975daf38-4cc3-44ff-b527-bc40f7f3386b, 976ca9fc-38c2-4a53-a0d3-5347b5c6bdaf, 977542db-f295-4408-a637-3829e9215d3f, 97babec5-d2e2-41cb-b4c7-a4027214199f, 97c23f0e-3b73-4b71-9d71-4cfb347b4557, 980161ec-73a1-4ebc-a932-376e9eb7bb7f, 98366444-5b12-49a8-818c-7859b3c6763b, 983f60a1-1255-4c92-8aef-02ac7ea09f89, 98a519a0-1e65-4ff4-9d07-639ff328a362, 98c98ef0-fcaa-47f7-aafd-37a264823c25, 98d12e2b-465f-4165-a969-9aa3faab37bb, 98db3c30-e3fc-47ae-bd3d-183f60e0f5c0, 98e95fc3-0265-44cf-98a6-ac9fbd89827a, 990320c9-2bb8-4bc8-8184-6062c75fb297, 990b84df-a55e-443e-a106-9d9e1ec3b9d4, 99226736-d959-43e3-9516-714735660da5, 9942078a-fa1a-4297-9680-11e657900784, 996da7aa-367b-4c88-b549-68bd2318f8e1, 996e057d-d2e9-4f4c-8ff5-19ae5f18870a, 9975d54f-6bd5-44a9-9d9c-d6e5b2dc49bd, 997e687c-e378-4824-859f-60f936c36f1f, 99913f93-c205-4e6a-93d5-ad889cefacd7, 999ce075-e10e-441a-b967-383512ddbae1, 99b378fe-ddda-43ab-a488-a9ee712526b9, 99b9021b-8614-4e72-8b9e-9245e9f721dc, 99dc7044-fe96-401f-914e-ca6acdb7ef94, 99e734d1-f525-4f6e-83d5-b635dd1e4609, 99f80e20-55f5-42b3-ae85-d492de709806, 9a0ffcca-7ed6-4808-ad84-6efe4a4ab513, 9a3a1284-8659-4ead-bfeb-7bdc1cdcbbe2, 9a5f108b-ec59-4eb8-b814-e355f58afab0, 9a64df87-a296-4e8c-887e-0e34f7f71bf6, 9ab6e01d-bd1e-487c-9616-b16f8c9a1ecd, 9ad05da3-346d-49c7-ab15-e7f6f24b35e8, 9ada1a52-1e5e-43c5-934b-0df38fc50f40, 9aee8c8e-5b96-4451-9833-c73b2aec7325, 9b72b370-793b-4851-a48c-3062657e240e, 9b79d278-6f8e-479b-93b0-bc89e4db2037, 9b7bf899-5f12-47a4-8794-07072b5a3735, 9bfea164-d363-4b0d-bac7-7b78ed683701, 9c28e7cd-73eb-428e-9ae7-bd91e4ecd974, 9c32c6af-598a-4f36-9b05-66adf06630f8, 9c3e4c06-625c-414b-bca5-443fa54470ba, 9caa2734-b1ca-4dff-87af-03aa68fdec9f, 9cbafadd-1d72-4448-bbd8-837128dbf879, 9cbc745c-e8d7-4582-ad44-11e843b5e773, 9cce522a-a7ab-413b-9a91-ca3b68da613a, 9cd7740e-874c-45b4-a35d-bb61262dd2e7, 9cde3f5c-b7b1-47fa-af6e-90bedf0cf283, 9cdfddfb-8764-43bf-a457-05cca0f24b69, 9cf1ad40-476d-4ab5-a50d-37cfc8e0379b, 9d29a51e-6508-4447-87f8-20c90bcb80e0, 9d3906d7-f1af-4902-9a37-f370fd3463e6, 9d4effe2-b8dc-4e60-9918-9ad0d8b1cd67, 9d6fe6d1-94aa-4f1a-afae-3e18bc3f9cab, 9da7c9f1-c2e3-4545-a22e-c736c75eab2a, 9e23d878-c7b5-4908-92da-995ac4836ef9, 9e3bdb4e-330b-4292-be32-6beb55bea0a1, 9e3eda16-f82b-4e09-b88f-1d63f1f7b317, 9e684cfd-2fd9-41b7-bf8c-df34fd67661e, 9e967268-7c48-449e-94e7-205aca85fcfd, 9eaf1e02-48d2-4be3-bee1-50d1a08e479a, 9f094c67-4644-4e40-b525-6937b7ed1f26, 9f18f040-9a45-44b3-b682-ac16c5652f74, 9f55d904-bed8-4b9a-9bfb-d7f8cda1ecef, 9f7c7cfc-992e-49f8-8bb6-ce37649daa87, 9f888ffe-0851-4de0-ac6e-610f190db661, 9f9d6497-d6d9-4cd3-8b5b-d091154155ba, 9fc08525-4b01-4052-8962-2dd62a945516, 9fc114d7-d01a-4f49-bf21-22fe122393ea, a026879a-0bb1-4aa3-96bd-c98cf329310f, a0302d3d-ddbb-49ca-a80c-c94e85155895, a04275c0-4990-47ec-90e1-d3a387ab617d, a05233ec-79d0-4f9d-ace5-ba236ad30eb1, a05c8ddc-5f98-415d-aa4c-cfdf38ba3ae6, a0775d4a-d45d-451f-9e97-d8246d1b8b53, a09f9a19-531b-4013-a0d3-25ad240f6cd2, a0a6e3e1-f54c-4d1c-97ec-f8d7fb012a15, a0bf6d54-20dd-4cdb-879a-f32bb6fafef8, a0fcb5f7-26b7-409f-b648-b097a44318b4, a1150db7-5e1b-420e-b515-b1864de4e59b, a146e026-3097-496f-b13b-11bc123d5d72, a179075b-056a-48d9-95c0-d159be32b2de, a18c04a9-e24b-4248-a4d8-772c9edbb92a, a1adbe62-0463-431f-93bd-5d65da7b1db4, a1c3b2a9-5511-4f8a-8eac-7ecc3fda0b90, a1dd46b1-a2a4-4fe4-b1c9-608bbb5eb259, a1deeb2d-9ae8-40d3-a150-6371b6f1c08a, a1f39856-cb43-4b47-b2e3-0e37aa354400, a219e62c-dda2-4287-a263-d802020a1317, a220e280-952a-4240-8251-b2e2a2fc3b7d, a23aa625-a837-451d-af8c-c4ed4e7dfd4e, a258ec22-24c1-4794-a1b8-432ec302f6b8, a259a35a-ad22-4757-9ce4-086c5345d9e1, a259d0cf-8d29-4e9c-b28b-ba95f2f697c0, a25e2353-13c9-4470-a61f-3b1f3c3b7af5, a26978dc-20c3-4268-acb9-6281e574fde1, a27fb391-9c5f-4820-b004-faf5359c29b5, a28afc38-859b-4f22-9bf4-1b0809adf602, a28da9c4-cee1-4af3-9ec2-cf5542cab7f1, a28ec841-b8af-4469-95ae-4fca8f4cd553, a28f8c22-6a28-42cc-ae89-6edf8b7585ac, a2911e26-e14f-4e8a-b789-424b8e77c37d, a2ca0257-fccd-46d8-a9ce-3c6ff2fc9025, a2e0d5a0-0dd4-4f55-9fda-2a17ca949904, a2e2d0f8-0781-43d8-9f5b-a7e9f22de613, a2ef9c19-e735-492f-bb98-cd1a1331a3d2, a317470b-9801-49d0-b857-de8dcec15473, a338930c-711c-4d69-a98f-86c1819fa0bc, a3a83257-3ca9-4318-aa57-25d318a8a5f9, a3d17f46-1386-417a-9407-0c6b42ed2f47, a3e3fcc3-d245-4ce0-82c6-b29286fa2b51, a3e99411-6c27-4f60-9030-d259f584f4a9, a40c3e2f-5139-4cd4-86e9-515f30a0c491, a42c1022-1611-48e4-b4a0-4ffcb8723d19, a440be08-7802-4f8f-a80b-9e19bf1e6b92, a4855ca2-cc54-4e3f-bd74-d6e6ea0a4f13, a4a0472a-af07-48cb-b4d3-ba195057750d, a4a47ccb-94eb-4352-9302-89f6212bde77, a4b5bce1-c7b9-4924-8bf3-939308282200, a50bf258-4c3b-494d-8558-7b87a89a2375, a50c5b00-72c2-4cfb-852f-9ad47c2d126c, a50e8ed0-9fe0-4dbd-8dd1-133f95c544b6, a545241d-1e31-4ae4-ae8b-14c608984a3c, a56310b8-fe0f-49d2-897a-536bdfb97469, a5857a12-1ce9-4857-aca0-ab2522cb2593, a585bb0c-bc31-4fa9-9fd8-425489d39b13, a5aa366e-0f3c-4043-bb59-c1f69a0fd361, a5aca29a-7b72-4205-857d-ecb222fd0a92, a5ad6b9d-9ee4-48ad-964d-c6359de3d549, a5fb9950-6ab5-4e7b-a16d-560cdd2decc8, a61b5c23-4386-4b55-9b69-fe44e4085049, a639f99d-39ff-4f39-8367-b0693897dd41, a63fe12d-13cc-4276-a6e4-378dcc7fddb8, a683dfdf-6763-4b91-a4bc-6029675847fb, a6a12e0c-25a0-4df8-965b-94ed99c483f1, a6a54c67-1924-4b6a-8e1d-1b765b1fd137, a6abe1c5-232b-404c-93a1-1af00dd7acee, a6ad871f-d67c-4f26-82fb-7faf6ce50cc4, a6b6b155-725d-4db3-a5cf-55fec903a9a1, a71013c6-5c1b-4d21-9d43-4bf22b3b289d, a71fb104-3925-407f-95e0-71fa618f1e7e, a73b1f9b-4d3b-4341-95bb-dadd093bddc3, a742906e-9a92-4a1c-bb93-ca2354abbd3b, a75a648c-f519-416d-b71b-d71231a2ceec, a75d945d-55c0-474b-8a0b-3183d13951eb, a76cccfc-8df8-49b2-90f6-e53829372d24, a7778b34-345a-4911-98e6-594a285d633b, a79a155a-d407-4528-a0b4-137428644e51, a7c1d474-0a65-42e8-8dad-5451b5ababcc, a85b4f8e-a86c-49eb-9389-6aca7c6d25e6, a877da23-401b-42db-b208-92b27e2fc0c6, a88c0262-9814-4e7a-9492-db9e65bcd7c2, a8a8d944-bbb9-4dbc-9447-68097eaf2dab, a8d34c38-c650-4be2-a397-3eb8085ce80a, a8f85520-8fd1-4951-8114-373cc914c776, a9189cb8-824c-43a3-b3b9-54c3897c5a0f, a91ebaea-3e48-4dc8-bf8e-fe6a5a2cecc2, a92ab613-468f-450b-9bd5-e98ef265d1ea, a935bcb0-0b9f-40b5-9135-d9e293ddf8ff, a937fea3-f868-4703-bb4a-4f32b8f630b9, a96803a6-8a53-40d8-b1b0-a1339e1fba50, a976d5e2-593d-413e-aaee-0cd3be0e253d, a98c0f7d-12c5-4a60-9a0e-6ca734d001c2, a9ae2378-4c49-40cc-9f14-8d960a873c34, a9b41c04-873a-4b18-824b-ebb0fa921f19, a9d84acb-09c7-49bc-b552-969f4214f0f3, a9dac559-a580-4964-adf2-41bbb45657b8, a9e73613-f2f1-4002-948a-885c1ffe865c, aa0196ed-4459-45b6-b639-85b7cae6da40, aa03a692-5cb8-46d8-b52c-d312abd0a54e, aa33fdbd-3e41-4265-b865-d5f60f559b43, aa34c79c-2d30-4b1c-b71e-7a05ff69d4ab, aa371df2-b6ed-4862-8d2b-6c235c726fbf, aa39d95a-8ac5-48e2-9297-8b69b02a54a3, aa5a5893-013f-45c4-90c6-8141ef52b2e1, aa5aa264-365c-4e37-a379-ee40df9d86c3, aa62eded-b52d-4e74-b7e5-143a4ce3efa4, aa96197c-866b-4ded-bb7d-4d394bd9bc5a, aaa49aa8-1e85-4ba4-ad5a-cc5b1a060433, aabc920e-18a1-4c22-b5a3-c225f68b6e09, aac4ac8f-aab6-4f48-a4ed-80e0e94d2ab3, aac8f39f-0e4a-4916-b373-d6034036ff81, aacb4912-c0a6-40c3-9205-a41f9ef08e88, aad1a630-657e-4987-a35a-3753ab057885, aaee49fe-0047-4f7e-9eff-c11a41d4b12f, aaf03fc8-1443-4c6e-8939-e1e33013807b, ab20067b-df03-4ce0-8c9d-4ead51984855, ab3d2617-f4a0-45e1-b3cf-2eb0692b6784, ab81f79f-916f-4562-8959-33b6c65262e9, ab85b19a-3198-4f7f-b62f-c48289cd2286, ab8f4636-ebb7-4679-b401-e5a283f29a40, ab9b2ebb-7d4c-4e01-ac96-cfc0fc998bf8, abbe2c9d-257d-44a2-b0b3-c7885cdf35fb, abe07310-8edd-48a9-bc97-9354ee21817a, ac902f3c-e6fa-488b-8db1-6a7b225df209, ac9e3594-2d85-401d-a42d-8aba6848bf5c, acc9c514-c401-4144-b0d4-78399ea62c39, accb6b5e-1ff8-4f8c-87fd-77225f3bd562, acced0f6-a7ab-4ad3-bfa8-1a338583d437, acd7bb15-1eb7-4745-9c3a-104dc0f42864, ace358d7-2ab2-4467-b34f-a1842e9eb60b, acec3ec5-d006-4252-b8c7-1823033ae3cf, acf873d3-eddb-4cab-9bd6-934c9e6558ee, ad00fe6f-9a55-481e-b246-12fc69208cb3, ad01dffb-3e99-4bbc-aaf8-f272bbdceb48, ad0fc302-e555-4dbd-a795-71cd4b49797e, ad21c8fd-8d1e-4620-9cdc-8b693e09e1be, ad270f5a-5875-4578-a215-7f469655ae1b, ad3521c0-955a-44b3-b21b-b8231af9ac57, ad4c72fe-28b3-4e98-b9c0-24e45a8841e7, ad4ccd3f-1484-4cc5-9994-c96cb53907cc, ad6eb4f8-ec40-48f0-baf9-008dab924ef8, ad739e13-c535-46d8-8b60-3d19404341a2, ad904b9a-bcab-4b21-92e4-f4eb72aaaed4, adc336bf-b8a8-4c88-b3ed-78dbd892e7da, ade8f278-7250-40cb-8b47-8f4e8e003f53, ae0268e3-8d4f-44f3-91b6-0d106ef64c02, ae33190a-b97a-4961-8d74-042f65da0b04, ae71fbec-3802-4958-8be1-99e9511ca45a, ae898a3a-27a7-42fd-879a-7507224e0263, ae94e72f-1064-4f60-b057-da873a3637d6, aecca2c8-433d-4c40-9a2e-4bbeb88ae3bf, aefccb6d-4795-464a-a4cb-769f7832ccda, af10a365-153e-40d0-96f0-23511d0e61e6, af213363-e014-4bd3-b443-265813482d80, af25bc20-4521-4c63-8ece-d71626599070, af2c84cb-40a4-4a80-8003-25a18d69731e, af63f033-9c59-48a5-9a5c-4451d579894e, af7703c5-2c0a-4f33-86e7-b66e38d2f8ba, af8bc072-354e-4e1e-8abd-5717ad09c83d, afbc3584-a0ce-468d-8db5-fa32cff33ac7, afcda84b-3b9b-4c99-b4b7-c9c53ec24454, afd12deb-fdf7-4430-808f-accd50e06490, afea1538-db00-4776-a58e-87e2758f0958, b020627e-165a-49d9-85c5-a66573aeaa97, b02c6009-9af8-4a81-a5ff-2e9148aef6b5, b0b2bf57-b165-4cbc-8d2e-e820b10593ff, b0d0747b-ce3c-445c-8b29-30b63bb0174e, b10243cd-e6f5-46ff-933b-d36fe328b62f, b11b5c7b-b266-4f95-a4e6-3b5739ef0def, b139d150-6626-40bb-b339-bfcfdd5842fe, b1af9984-9ea7-410b-985f-0882879b3f7a, b1d35841-b56d-4ad7-a170-3715068ea5c4, b212ce8c-0595-43f8-8211-4693d562f898, b21f8942-fc4d-4980-9d1f-187a14401c95, b229777f-cca3-44c9-9bb0-1f877ef8c640, b28cfd21-02d0-4c18-8343-c234f9327693, b2d2fe9c-3dae-473e-8b88-685cb15b2368, b2d54a33-cdf6-4d1b-a994-d85578447124, b302861f-2f45-497e-9b81-90c52da69912, b307cf15-9dd1-42cb-b3c6-fed98552fbc0, b31c406c-bffd-4179-bc29-a864aa730b62, b33c6331-da28-4eea-994a-7527d011fcbe, b3560a3e-8ebb-48a7-9fdd-761f47ef7671, b37fab5b-22c1-4a06-9a08-f8c2bcc42f42, b388d39a-81b6-490e-98bf-b2ab89d728c0, b38d1936-fe98-41c5-81cd-f71fdb1a4889, b3a590ae-107f-4a74-b740-65d854e83e44, b3abfa26-d387-436c-80a0-df2cf4af3ae5, b3d7b8a6-6a1a-423b-b50a-94f572d9374e, b3da74f4-81a2-4f2b-b696-f40559e2b437, b3e5752a-56ff-4db7-a936-e1b7746cb9e9, b400634d-8bef-4183-b052-6babed54eef3, b407f17a-6375-48b6-9834-529aaeef73bf, b422d736-a715-428c-b162-14027a21bb90, b497e7ae-4951-43af-a76d-83bdd161d452, b4a054b9-fe29-4689-8efc-2aed74b1ff58, b4ac13e1-0fca-4005-a761-75ccde14087c, b4ae0423-05bf-45b7-a76b-75e2220ff661, b4b0ce6f-c736-411b-94d8-9c11bd28f8bf, b4b875cc-eb6f-46fa-9af6-c7d9620703c4, b4cc1994-f649-4b50-9e99-3fc689123b6a, b5087a4a-a117-4e25-aad9-ca4aea8f3380, b525475c-4bf7-46e0-9d09-232b98b367cc, b529acf9-d289-4348-92ce-00eda3ab5739, b52d14c2-578e-4b34-9d27-e9dfe1426d51, b55d4575-51b6-4b1e-a885-436aa5a99574, b57081a3-1ff0-4a4a-9128-82202319775f, b58010ce-c0a6-4605-a264-a5b57df95615, b5d3a36b-a6fb-478f-8c23-f52eae024bb1, b5e333b5-02c6-4a43-b956-62dcbbfef1b3, b601eb42-0f73-4e2d-bc77-e59b6f71d5bb, b60314b8-f836-49e2-947a-244feda0c050, b612f2aa-3a65-43f6-a2e2-5b6ad0deb115, b6170009-7a7b-4c72-b8bf-94c08bd69db8, b61d9bc2-e306-4c34-92d0-5e23069c8715, b6294f02-fab6-47ea-8dbf-b9299085c3f4, b651b08b-73d9-4483-8f0c-4231499771c4, b6600cec-bf66-47e1-8923-0b25c305458c, b671860b-b229-4b08-a34f-2d9fbf18bf1a, b6c54855-1d76-414f-af85-476d1f9f990c, b6c8057c-7c04-41a8-92d7-3350d43eb70b, b6cb9913-c17f-4fb3-a0ad-fb446359516b, b6d6a35e-d5f1-49e9-8f01-427122cbf91d, b6f6fbd8-9db2-4a6d-9f0b-103f61dbc51e, b73b548f-dae7-4607-937a-12dc6a124d28, b743a317-c6eb-4788-a974-9f8c46337622, b74f5acb-89eb-456d-a0fc-08c005eae03d, b7661531-c141-44b8-ae8d-e714223faa32, b77107c8-653c-4067-8d4d-dff8c16c2e44, b77b7de2-87f7-4b25-8d8f-b99216fbe9df, b7d44e43-6176-46be-911c-3dd62751f631, b7f3a7fa-648b-4194-b31e-3f8b869875f9, b7ff6ac9-8220-4a00-8642-def3c885b087, b80ebad2-cc12-4a6c-80e2-540148995472, b8179149-a91c-4c37-a860-7b4d111adf95, b8197827-3fbd-4057-85e7-8912108bbf58, b8382e03-f609-43df-932b-bd89fe4597e1, b8410c12-c062-4649-9c38-89e7993a3350, b8810487-aeca-4ed5-aa10-034bd9fb3510, b8928bc2-588e-4738-8a5f-7126563de17c, b8b6b1b5-dd4b-440e-8017-ae8dde22d546, b8bce06b-1d0c-4527-bad1-49fd09220215, b8d2d1fc-8370-4d9b-b0ba-ffafdc269770, b8d7f4a7-6c6a-4b72-9e71-2b09cc544839, b928b44b-d4f4-47f5-9355-62313ce032ac, b93be72e-ce95-4b5a-bba8-bac635c36b3c, b94ccf55-1303-43ce-b246-06572a30f33c, b94f376c-8c3b-4992-a9b8-bd6add5c0a9f, b95bbe64-5799-47cb-a010-50b3002ed63f, b9840700-7500-4b18-bf48-348e33bcc7b6, b9ac885b-31fb-4219-a860-3198a6dfc990, b9c5c801-87be-4bc0-bbb8-00cdeca26df4, b9c84a1a-55ff-4328-ab0b-d372734ef48e, b9ee538c-2a61-4e98-90f3-37086a67202d, ba085885-94ef-4e6b-9b49-57fd638ed56d, ba15990e-2f26-43c9-81d4-060abcb9b50a, ba1609aa-8ed6-4706-aaf2-6811b8d9be05, ba1adf40-93d0-4930-b1c3-f3b09dee0b09, ba1c69d8-6f4a-4ba1-b277-a48be89375fc, ba39055f-d334-48c9-8a8c-049bf4794c64, ba7cb0c3-f45f-497f-a6ab-257a92baf5d7, ba907dd3-9c40-42f9-9294-4c39982cbc63, baa13b5f-ac3d-4a8d-bc5e-115e65391db6, babc4279-c7f8-4247-a824-3f1909f86c57, bad04760-d860-418d-975c-e82638475e8e, bb16c45e-e5d7-4c6d-9fa2-51cb3e635477, bb2d04fb-c174-4018-9395-285044e3cbd5, bb58b1b1-5ccc-47ae-8588-9bf39a6914a1, bb72eb8c-015f-42e5-9204-f3c93ee8ce0c, bb7421ae-7a7c-448c-84fd-d922c4bd98be, bb807df7-5a69-4bbf-bea1-a7ac3ab75f38, bbbe45af-47cc-4db3-b79c-76552064c66b, bbcb0878-28bf-4c98-ac57-fbe5fb4ad7f7, bc407055-7c22-4230-ade8-7cbbb1633f66, bc457145-4192-4b24-bd7a-0f6b4fbf2490, bc575a55-418a-4029-83bf-b9f174ce4ff1, bc58c55f-ac01-4e18-8c9d-83181608c574, bc5ecf78-5629-409c-9009-7138ffeadab2, bc6cd166-4c91-4bb0-b958-89f3790a8325, bcc247a5-0e5c-4c06-8134-077cbd8cdf04, bcc334b6-ff5c-4e94-bd05-701136b11180, bce91baf-fdc3-46b7-952d-6b6c9d76398e, bd127472-5d1d-4c32-b6aa-1c9bc284d067, bd301b22-2d6e-4bbe-9640-e5d522a82da2, bd3a67f1-0fc0-4bdd-8a7e-d38883b8b130, bd465e8e-7798-4b34-b6ab-522893d35de6, bd4bcb66-b836-4ca1-88b4-d3184961f664, bd8d04b1-fb37-407c-a771-26756824fc7f, bda3305b-cf86-441b-b72f-fe74ad066e66, bddf44ea-8698-45fb-9247-c1b06c1cc24f, be082738-aa22-48ba-8ef7-a63ec89cf734, be5d2ee7-8a31-4274-ad9b-3a0c6bef5c5a, be98643d-ab9b-499f-8a43-9b496d303eb3, be9acb4f-f71d-4abf-ac5b-8c405c5b597e, becce519-affe-476d-b9f5-075dd7da4c39, bf04abc1-ce2f-49fb-8c28-6dd784232aae, bf04f91b-d930-4920-a8be-f7ffdba0dba1, bf52f2f8-e685-4036-87af-0096bfb176bc, bfa118c9-c942-4d0c-a881-f6457df48463, bfdf04de-4cec-4df6-94c9-0639747e2347, bfe34ee3-d75c-4edd-814e-874d462fbd9c, bfe4d4c4-8bd7-4e02-b53c-ff61ddcebe3f, c023367b-96f5-4dda-8520-cdb6f17a1343, c02dc259-9531-4248-adaf-aa425ffd839c, c03699e5-58e2-48c8-9bca-0bb7a1981ce1, c05c7cc6-9071-4309-8e35-1e0a86ed35b5, c05febe0-3a18-4bc0-8cab-f799281ed263, c071a710-df95-478e-8e22-c00c05251aab, c07c48c7-13aa-44f7-b16d-d0c1064edc9b, c07df9e5-865c-42a1-a826-ba5470ac389a, c085e14f-5e58-437f-8f4f-d2bae35c1d95, c09ddb73-9bb7-42b6-8bba-98c64a2e1256, c0a6e938-c8d0-4a8c-bcc9-ca7d78bbc852, c130d410-9a77-41ed-b478-d168e3a1a593, c13736f1-a5aa-40a4-b155-138153bc9855, c1634deb-452a-4f0e-808f-485d8d4161a4, c176df90-b455-41ac-8bac-9ed97a534790, c18bc42a-bd19-402c-b5fd-545b06a72b11, c19b241c-cb28-43b2-850c-a81897c5c0a7, c19ba9b2-1b1d-4276-94f7-1870c649a0b1, c1a6211e-958a-4018-a856-022206d39712, c1c309f6-0929-4f07-8fa0-4e5f6ff78d26, c2060336-5cb6-428b-b98c-367e0a82d844, c20716ea-8175-4fe7-9efc-cf87cccbbe07, c214fc74-b25e-4013-97c4-2f0b22076b8e, c271f1c6-a8ef-40f0-8ed7-8422c19730da, c27581a4-c1ba-43ef-8843-2776ed4e26d5, c28f93a2-d77b-4ced-92dd-398d0e13546b, c2b9371f-13f9-43cb-bf26-c0a1befc9862, c2e55b29-0ab5-4c1f-8dd2-ec78dced4311, c2ea4660-b43d-4ff2-beb1-e5e9d1096709, c2f7e62e-fdf5-48cb-9daf-ac09ffa4a354, c302846e-3879-4106-a4eb-a0259561213d, c33cfed1-a693-4d8a-b442-48abdb5e5b36, c3a1a7a8-7918-4d34-9a19-2b89d62b61ae, c3c99043-a62f-4b4b-ac8b-0f2cdef7797a, c3f0925c-0210-4d55-b78c-013740610dc5, c4018919-3267-409c-a379-5c798e0bbb3f, c464f978-d5ae-4fd7-b9a4-467ae0acb772, c5184097-741b-4ae3-920e-2814cdeed15d, c5697cd9-18a3-4971-9724-036d2ca7b0ce, c572c2c9-b05e-4c68-b1e4-e6d41378b6f9, c5937ad3-376c-45a6-8a57-ce68354f18ef, c5b08bce-c325-417e-8a15-3753a1001d6a, c5b531f5-539a-4f42-b351-f52bc1fda321, c5bea8e5-2a14-4a98-a7ee-823e2dbeef7b, c5c195ca-5d2b-4108-bd93-fd0c0bd8f508, c5e5b112-b16f-4ac3-8aa4-91c663835e74, c5edf70b-db99-44ed-b97b-937fd8dd058f, c640d22b-05ef-4796-8ad8-016752febdfb, c6bfbda9-1d08-4d2b-ac29-49034adb3ed7, c6e951ca-17e2-44ac-82df-33391b4db275, c6f4d4e6-8d86-4480-8802-42e977024c20, c71a6e90-33f3-46fb-aac5-9ce0d00da25f, c736e459-cd89-4131-83c6-f9827c7ddcae, c761cc5f-327c-4eff-aa97-bd4d0bb90f73, c77ef689-1e1f-4a4f-a1c3-f7f5911ab1b4, c78a30af-6499-4687-a1f3-82d0e8534d78, c78b4fe7-f9d3-47ee-8a44-39af4b20f014, c7914510-4c32-481a-a99c-798ba55a4784, c7a3f5f0-e311-4b6f-ac5e-f7e9222514af, c7a97440-c0e6-457d-b039-1468ed1a1eea, c7c310cc-42e7-4592-b2ff-9ba8525ffc37, c7e3e965-0998-4b00-9caf-bf15f6511e65, c7fcb1e0-9b99-4796-bcd9-099842d3793d, c82243a6-a966-4cfa-b0ca-b1407b048925, c85d1176-14a5-458e-8926-97605f7c6bb5, c860ad0d-72c4-4796-8a28-df24f3d6ed6a, c87d04fd-b261-48c4-8486-a1ed118348c6, c8a9f5dd-32b5-4272-8ba8-79772a2fb247, c8c952d9-afb3-4e76-9e27-6fbdffe5a0fd, c8e6b28e-8160-4b77-aa99-711b64ece34b, c8f4ca95-283c-4e85-b02b-7e32587713c2, c904d8fe-746f-42db-9731-dbc2f2c95dd0, c9af6a6f-01f6-4bcb-a3bb-800b63e94973, c9be89c4-7a3f-4639-905e-798b8748005a, c9cca5f1-749a-43b0-a3ec-77608b7cc93b, c9de73d2-d8eb-4ff8-88ce-db998ed06612, c9f396c6-59f5-4913-ab20-561537dffc55, ca06168e-1133-4268-af40-2cc24071d024, ca19c316-b204-4af8-9ee5-7ba8e4980bb7, ca1b7929-720f-4213-920f-aa63a5e8ba74, ca2c5cf1-85d0-410d-9485-ab80ee8a9c4f, ca59aa5f-4874-40cf-83f8-720daa833d05, ca5d9b2b-ea59-43e9-b22d-0f11dcd69eec, ca60dd4a-4c4c-4e12-b89e-f5748b98bc23, ca8320c9-f26e-4332-8e78-6bfcfe646448, ca97b4bb-eda8-4abb-bd66-e0a5d69bd962, caa2bc61-8a9a-434f-b353-fb72303b4408, caa74106-b596-4c58-ac25-ad85fc2533bc, caafe42b-7128-477c-a941-cbebe1855871, cac13dc1-1768-47f2-af6b-5fe08c8bd380, cacc76cf-388a-4f37-9dbf-1cd92b5b6998, cad4b8be-2bf5-4fe4-8acb-51c704c4a2f5, cae41967-896f-42f2-8368-0c113ba1de75, caec75ca-50af-4847-9919-ba21568b3448, cb177648-ff4e-484a-87cc-be96a5df945e, cb52e3c4-2da0-4dbb-a312-a74c55bdaff6, cb80e615-f651-4283-b6e7-ad83ab557cb1, cb85959d-af5c-4f85-b2b4-77b3f7b77adf, cba2102f-ac32-4248-9ded-8a2743f3f30e, cba7aac0-7bba-4707-8c40-c892562d7d94, cbccbab2-4e45-432b-bf9e-a8f292f451d5, cc125826-afd4-4317-b65d-9c2375ccc519, cc2accfe-756a-4ffd-8777-c25ec805fad2, cc2dc693-ab66-4812-b62a-31e8615b40eb, cc58c3b2-cee5-4e08-a2a1-7b15a916d33d, cc64a718-b2b3-4fe6-831f-dc7d2429d200, cc7f7c16-22ea-432f-863e-2d26c87bb1fa, cca85add-4217-42a2-8fe5-18310a91b566, ccc3dabd-fd57-49fe-a2b8-6810af1f4f02, cccd6ed5-7969-4c6a-800d-f0ebbba3f8bd, ccdd44ad-7c19-41ee-9989-7d95a90cf1dc, cd45fabf-e7b2-4276-8056-1ff05054ab36, cd470544-dbfa-4aee-9dc8-92e4bbe23967, cd53028b-b24d-45e0-b0bd-e41aa532462f, cd75cfc2-6292-4651-b562-dcf4ddfa2fa0, cd810824-5106-44b1-abfc-66e6fdc2e7b2, cd9a28e9-00af-4a8c-8bee-1aa5d5cf10a7, cdaf8aed-997a-45da-8ba6-3f621aa6a25c, cdb5756c-f09a-4a6b-9e10-d29ec8fdc2a5, cdc9d519-e12f-42a9-a171-0c16544585cb, cdd3a734-3f73-4419-ad9c-fb16001a6948, cde98da9-c3fa-4379-b181-ae6e3404c89e, cdebf058-4b66-4da2-8f84-174921fd04e8, cdf3601b-c3cf-47b0-b6b6-1bfbd47699f4, cdfeab83-8c20-4900-b16b-149689924625, ce07d233-621d-4ae5-964d-e697cdda7ce3, ce0aee41-ecc8-460c-8b85-2930421df353, ce2bd879-e7bd-42ef-96f7-9629ddf5b28f, ce628d5a-7c7f-4cef-8287-c98b4bcb268d, ce9a43fd-ae92-4084-b642-97dfe362a430, ce9d8957-2875-4287-803f-e465f58d8205, cec3af87-120b-4bf1-9505-12a338e9db32, cefa39ce-8ee6-455b-a207-512b9f669138, cefbae8b-f1b3-492a-8860-35ed273edc4c, cf07ffb0-c4f2-4e63-a904-05f442cf94ad, cf251623-6b00-4362-b7e2-5101efdc8a6c, cf305a53-499b-4a4f-b053-4e8845233d15, cf3b4344-548e-4363-8958-a210ca6217a1, cf518a8f-183e-4bcc-92e8-dbe995c3f46c, cf62e036-d10b-482f-a382-432b1a95d172, cf6a74a0-6edf-43c1-8570-8bc96cb4c49d, cf6eb548-fd32-459c-a1d3-78d461f36f1b, cf6fa2b6-c3f6-4f02-900c-2d2079ca64bc, cf790230-d751-43ba-b1e9-e7db8b739c7c, cf8d26e2-284e-4fbb-b1e2-81e8d42f71b1, cfd32d15-2021-41c4-8ead-5be38a28aa5d, cfe35222-2ec7-4391-b01e-9087804cf853, cfe6730e-58ac-4b2d-ab09-7539ad12abf2, cff49d34-7b23-4bcd-83e2-5b9a7e1790d7, d00bf8aa-57df-491b-97d7-ad6e40cc9adf, d013b0a8-a436-45de-92a8-87bef74cc5d0, d081c5b3-6a52-4506-aae0-78538560288d, d081ebe6-6068-4e66-bec0-9c4ac58d3b62, d08a6381-0eed-40fe-bad5-a5f4aaeb70c6, d0abb152-1230-41ea-a0a0-bdcb29c04e73, d0ac79e4-0923-419c-b6fa-0192d1e9373c, d0d5126b-594d-46ee-b665-1c9e371e9b27, d1235a06-4a54-4f8b-bf79-85737d749d51, d126977d-6ce0-4d77-a70c-8b5605609a67, d145e314-4e34-4916-8b80-f4c680ca3c65, d1c336e8-58f8-47e6-8504-db9012ddf377, d1e357d8-0d59-45e8-8cda-866b5fca7bd0, d1e88c78-08ac-4342-a8e1-8bfdd26ebb5c, d1e94cdd-94f8-4b9f-81b3-d032d777a040, d24a8f19-cf02-4fb2-a0e6-7e2b6028dcb7, d25284c9-bf22-4208-a9c7-2eb39791ea6b, d259fa8a-9f8c-4277-a0ed-83bab836edeb, d284bff9-2309-496e-a951-8db42ebda163, d2a6bffa-eb09-47d8-b764-bb3c343d6dff, d2b69400-f132-465f-95a9-1707dc869b50, d2f83651-097a-4149-afe8-fd18b05d203e, d30b51da-7a0f-4ea6-87fb-faf42e174c8c, d347cd3a-b22c-4376-b95e-7473a3bc9937, d348ad4d-af62-40bf-b5f7-8593b5e44621, d34bbd33-3b2e-4efc-8178-c8b044a5ef37, d354a730-87e1-441c-b35f-0f4665e00f11, d3749c15-060a-4954-9930-5049faf581be, d377f6e8-6b7f-488a-8ac7-f979068b303e, d3a2c3b3-2937-4a89-b291-ead3cb711ebf, d3b0b17c-d4ac-4f48-a3fe-aa869b803fc4, d3bc2099-5bb2-47ba-840e-9eab15852e6d, d3ce61b7-df28-4bd1-89e5-c53e1c24b176, d3d7a71a-ec67-4f06-870b-11bb2468e23f, d3e3556a-7ea4-42f4-9eed-a49244d52e59, d40204eb-cd4b-48ff-a535-6f8a8299a67e, d429ae15-5fac-45bd-8c2d-19d1dd47ad52, d42a1699-be26-4cee-9149-497dc0db1a01, d42dfa49-d5d7-464c-aa5f-18549fba4b78, d45569aa-5093-4494-bdb0-278f57989624, d4571f68-7366-4f3c-ac48-9de0f3f51d23, d4628484-3f75-4ec0-aee7-f8e0c8c9569b, d47d933d-ae63-4c4f-be48-b8fb40358410, d47f59d5-3bcb-42e4-acad-3b021be48820, d48ef2e7-a338-4e6d-9ce9-b45d4f1173e2, d4c532e1-582d-4f9a-abab-9ed6127d6890, d4fda43b-0bd5-4603-9f04-ec87f9f1a156, d52600fc-5562-424e-b085-71833a11a7ed, d54c5d18-93bb-4dcd-8bce-eca53539063b, d5691b8a-79ca-437e-a1f7-fba988748fd0, d5c3f89e-7084-4e7c-9554-ef18af5a29e3, d5efd0a5-e256-4cdd-be53-e99b84a4b7b0, d6627b03-a543-4946-a14e-3417d439c09c, d679fe33-26da-4ea9-b192-2745158ca546, d67a3e71-a4a9-4ac7-9bf7-c22aa610bf19, d693088e-97e0-4d43-a434-1b1ba04efb89, d6c97880-d7ad-49e7-a1ac-844989358cc7, d6d27709-cc28-48f0-aa31-05df6aac730d, d6e76de3-dca1-4969-86f6-83e2d5243405, d6f4aa52-6086-4e31-9c16-9f23f624bc4d, d714c100-204f-4a21-aede-1cc6f51f9e82, d71c6739-805e-4e52-bdcc-49426c80401a, d731c19c-f9dc-4980-8908-b2584c4c4f50, d73d8fe8-98c5-49be-a032-a9bb9e532269, d74419a1-5093-41f5-8b7a-63a1a8ce9ba6, d74737ff-269d-456f-8d3f-93d7fda7da6d, d74d9a41-c354-487e-9cdc-b0dedad139ff, d7632354-45e9-49e1-a7aa-f7580890729d, d774d687-849c-45d5-8f3b-a0dd7ba95d47, d794f6f2-7593-430c-ae4b-74171178bfd0, d7b87b04-d19c-4bed-9d3c-115c07257649, d7c7dde2-d9e7-42d0-a64c-0fe378cf7849, d7e03635-8d07-4e35-950b-9cca6df67db7, d7e23e27-5fc1-4306-a92c-0b179d13a2e8, d7e5170e-b447-4c84-bcf7-d6ad04345412, d80ba240-cde8-47e5-b422-fbefb85199f2, d80c0d64-d239-4376-b100-da4df33c88b7, d8196652-4881-4e68-85a8-f8747718c9cd, d81b7cd8-d85a-4694-9943-1a79a5309bea, d81e9275-d9d0-42de-8710-dfbfdc2f30bd, d823a4c9-49dd-49b3-afb4-bc10e3c7490e, d8733dba-6592-41f4-a6f5-8d38503dc7b4, d8760525-d4a7-461d-962d-243a195bf9c2, d892c211-5bdd-4cf5-9c01-c56a6ca294bf, d8aa8f2b-f508-433b-9db8-bae992950707, d8b3be4f-cb11-448e-b926-77bce272fcb5, d8cb24f8-df8f-4f7d-8c5e-298d1970958e, d8f1a0f5-4d3c-40a0-875b-783b6dc6a79a, d906890c-b2bf-4927-ba9b-fb991559473c, d928b49f-448d-4022-8a0a-adbfe479f1e9, d9440b42-8ddb-4406-846a-021b44bead1d, d961ac49-6b24-44fc-bca4-8e6857df97ab, d96ecdeb-212b-4188-8513-c3c143459072, d97b6735-4a9d-4a01-8ab6-dbe02edb8290, d9c97377-b491-48e3-8211-4428232aef00, d9ecf28c-078b-4f9f-b47e-8407297a277b, da35256e-970b-4b2d-9e81-5c4f735ede70, daa7278d-811b-4549-9d4e-a4b09256ccba, dab41f2c-88f2-40f4-9a3e-b1b72435e412, dadbcc5d-2797-45a3-9fb4-9113d9a69402, dae65a5b-1748-4dbe-95cd-9ae041f79514, daf050de-ee2d-4353-bfca-b619e265c2a8, daf72778-1dab-43e5-8db3-b11641ecc0ed, dafa4a74-c640-46c2-bd2a-b0a699b706d2, db1107fa-7e24-49f5-9565-29348e643061, db4322da-f7c1-429f-b4f8-673851366c25, db492503-7038-4787-a831-423e3cde1a1e, db583511-4a43-45b2-bc4c-9b98bfce7356, db6d727b-50c2-47bd-85c7-ea38b0ae2f77, db76f8a5-1fca-4aac-b664-8fbf24d0090e, dba5be8f-ebda-40ed-80c0-21c1ee10cb6b, dbd67bca-a9d3-40e4-8009-10f9899bd9eb, dc0b3a52-a8fd-4109-a43d-4f0a5109edfb, dc2d1d3f-d984-4ed7-8b38-74a65f0b9a3d, dc975e63-fddc-4c7e-b453-9515e53e6f1c, dcc046f2-6627-489d-a770-c5af96d7ed5f, dcd0fda5-f92a-400f-8cf9-1c0e8cf44a00, dcd925df-e87c-477a-b2f0-41f67769b1e5, dcea32e6-d872-48ef-8ed7-e90913df19cd, dd7cbb36-a266-4a6e-a091-355e6c25e96b, ddb8188d-7702-4d67-b6f4-1247299e03de, ddce9f05-a2be-452d-89ba-466d56dd250c, ddf02c0b-a0a1-44a3-a5a2-e51d0e5be176, ddfaef5a-d252-49e1-88b2-54eb2bacaca9, de27fd4c-42d3-4f90-ac35-adf511c1386a, de404977-0882-4fb5-8b71-e9a7648dfa93, de4d754a-e465-41bb-afc1-ad9d5bec5ef3, de6e2c3c-b1c7-45ea-87cc-0e5506b9703c, de740234-1219-46e7-85bd-4e2646892862, de7d1fac-6e27-4641-8983-b81af8163c0c, debc6e39-8a76-48c6-a11f-aca84568d3b3, debd1910-f9b8-47c4-837d-1bf5f292f6e9, deed9643-c339-40e5-a770-6ff3ce173afd, def88d57-e8b2-4ee9-8fd9-8782c3b26e26, df21121c-c644-4144-b79b-547ac5a3312f, df39a4a6-f70c-4c90-b6a6-5f554e75fff4, df530883-0a08-4db0-9c2d-a62c9c39ad4d, df5f491b-f171-4261-8455-0ee9d2078073, df61188c-4bef-4746-a5a5-cd43f39056bc, df78eab9-377f-41de-a3b3-7a6e8239a4f7, dfa02a11-8721-475b-be5b-727ec1eb6686, dfa9b258-fa91-4d01-a4af-299e2e555119, dfb194d4-e73f-46cd-a279-b8701d62b7e6, dfb78319-ff19-4f3b-8c86-ec21acbf8e55, dfcc815d-346f-4e5e-88ce-ff9d0a0cc168, dfd013de-7115-40e3-b7e5-c3d253a1e4e9, e02a3cc9-4b04-4c6c-bf08-32f61796c30c, e02f2dbe-72a1-4ab2-940d-698789c750e3, e0374898-c9bf-442f-b4db-0ca0cede33b8, e04551ea-35aa-4c61-90aa-ca5fe90998ab, e049f767-0877-4e25-b290-b760991a9b6e, e0afd7fb-04fb-4504-94f6-4852964722c8, e0b0751a-f840-4a33-88e6-5fe5c279fc77, e0b892ab-0cb4-456e-a585-c1f9c9b10065, e0e42e86-843f-4946-9423-f90972a04e52, e0f2ca2f-abbe-45ff-a54b-6229b11910e6, e1071a9a-90b4-47c0-88d0-3f564e848eba, e135e4db-d897-4a03-9eeb-017793c04d6f, e1508066-0bb0-4965-8f2d-b762bdaf2f42, e15270e0-8d5e-4026-9dbe-c5c227913097, e16733bb-2cf4-439f-81db-85686dd3b786, e1739994-6ae2-4ae8-8b1a-4e54d183f406, e17f6a99-f39d-4761-ab03-e7f316718336, e18e0cbb-8e20-431e-ab64-c26140f5d275, e19856dd-c15a-407b-b2f1-792e213cb5a1, e1b16df9-f536-4193-bbd8-3cd9fb26794a, e1eb9f06-d9ee-4cf2-9ff7-17913d8876d9, e1f8f7f7-d893-4af5-bb2a-c14575272dbb, e207a6e4-2c51-4a27-8919-4a7c8f63d38f, e221afe9-9dce-44fe-83da-3418eb176c2c, e22b0c47-afbd-49c0-9ce2-36344e30cc7d, e23d1702-0f53-4944-ad90-953d0ceadcbe, e27bd3d1-01fa-4acb-a2db-7adb940f058c, e28a9f25-670a-469c-90fa-c560f0f4141c, e2c4de85-86da-4de8-88b5-d1fbbecd4f65, e2d83edd-de89-4fec-8fc0-5bfa8d2e1ac5, e2dd4af2-986e-4b91-ab13-bbfb8edd245e, e326874f-0cdb-4185-80bd-7709d67e5d31, e334c356-3ea4-418b-bdf4-ea057b871445, e362b189-ef58-428a-a5e5-b3e33778427b, e3aa2c85-1599-4cc6-b645-eaf016131aea, e3c160c8-d1c8-40bf-a805-dd7276486eb5, e3dde182-c553-4145-a2f9-92ac7c1607cc, e3e49ced-4c18-4c22-9502-c4309a847eda, e413d4c1-0d92-4e12-82fc-754281f758f9, e42ba5e7-024e-4020-987b-1c693abe07a5, e438e16f-4206-48bc-a7d4-7fc31a72b249, e44f7a12-57d6-4efa-b698-6a1cd12f22d0, e48cbf66-eb6c-4025-bf2a-6003030aa080, e491cbb1-dc0c-42bc-8193-f01453ca620b, e49c7d3a-ce2f-4663-af69-b377f7facff1, e4e7d4cf-0996-45f9-a4dc-2e96302f5fb4, e4f5d2df-c52d-4eb6-8e98-b28c961b5992, e4fb7eff-96a5-4dc3-ab8c-867a829e4480, e512448c-464d-4d66-9027-69891f541f4b, e53b9d7e-f6ac-449b-9aac-f6b75c1fd001, e54a6190-9c7f-4500-8940-a7b79bccf923, e56254af-2110-4213-ae12-b4a72c2ec718, e577d018-cc72-4f69-8814-71343aafde90, e579e1e6-178a-4814-bb11-1732c027952c, e58cdd5a-9150-4374-9dde-f633e5d88911, e59bb23b-9fa8-4e82-931c-85ff68ecdcf4, e5aa58ef-d2bf-4869-9039-a5efc3ad9a63, e5abc1b8-d741-474b-9136-cfa01b8a3e70, e5c7119e-4ef9-4cd3-9244-cb0a10e2646c, e5e12b68-0925-49d6-8cb7-9ed83a978483, e5e251d9-3c56-4072-9580-5d97fcb49879, e623cee6-40d9-4b95-8f07-bba35a918c69, e6302743-6255-474b-9af0-5f1ed69000c8, e6371f02-1dfc-4e2f-8a6e-4f6f1ade5e5f, e649ca40-36f7-4965-9dee-2048680c2cc5, e649fe2c-2982-40ea-870d-195e5059dc3c, e64fb373-7ca1-4216-b450-fdaeef5dde07, e651e9a6-5a79-477b-ab6f-afff311d0ef8, e68d940b-fc01-46cc-bb83-be72523307d6, e6951d22-9b90-442f-b6ff-6450eef71b20, e696a0c7-37bc-4520-af2d-7d600048b871, e6b05fa1-411d-447e-90ab-ee13e24654fc, e6b25d39-c17a-4570-ad4d-bff42a6bf83c, e6c82c40-7758-4e55-b409-8957c4ededf5, e6cb7fa6-efa5-4ebf-a668-7ecd890be5f0, e6e4882c-94fd-4ccb-9817-821f264a3898, e73cb19b-7f2e-45d0-933a-17a776b9e214, e7a4c591-dff9-473c-aa24-56795e95916d, e7a85949-9664-438f-a83a-45d2045706aa, e7fb54f8-25e3-4809-8981-7e5ef4d3463b, e801243f-01d7-4fdd-9819-b5ce530b96e6, e8315f56-1f5f-4191-989c-c3b0f64ffe7f, e8355945-47c1-45ff-93c4-a3b09852ec6f, e866f094-74d8-40cb-8136-a12116d40321, e87e7a5b-1504-4c8c-9f33-95d8c1e9f220, e8805518-8756-4db1-a63c-c827b2134ab7, e88dd3a7-7b0c-4651-ba3b-0cf7a5e1556d, e89a86e5-95e1-435e-91af-3e9d653dad15, e8a26b59-6e74-431e-9e96-8e7644a3ef37, e8a65cef-6d44-43bc-aea0-53dab0efb675, e8afe6ca-f3c2-40e6-a5ec-94b95c9f8bd8, e8bfa697-44cc-45d5-aaac-8a96fad34dd3, e8f6c4cc-7aa6-4d3c-b3d4-fd52384aa40f, e8f7d3c5-5983-450d-963f-28b5e292d2fb, e903c872-9dd2-4acf-a419-0bb3fd2c9747, e9157952-f032-4f5f-a986-8af201aac701, e92abe21-ba67-475b-825b-560edb92a0e9, e9fb2d1a-9065-4cf2-9123-c10090785b1d, e9fe7c16-cdba-4084-a007-48bff5aee6cd, ea37e3a1-38fb-4e8d-96bf-80ac37c40b39, ea478ec7-0c59-428c-b6d6-57209b0b0dce, ea5b6aaa-3f11-4e7c-8c8a-adb26b9a5bfe, ea7a3b25-50a7-4faf-8e41-b9a3f4b0185e, ea84bb13-6151-47f9-a162-08395f5e44cb, ea8ca829-1a3b-4115-9862-f73085a1187e, ea9cea20-1e96-4564-aa13-6d85d3ee4776, eb002ee0-9f41-4916-830d-9392dd388867, eb8a8993-c953-4905-94c2-1d2fc07e98c6, eb8aaa94-8401-4e93-9bdc-5d5b18ba6926, eba0373e-c062-4280-906a-ae5cb826e26c, ebc26b38-b9f5-42c4-9b19-021b3678e0c9, ec02336e-f89c-492d-83db-31c052f80c09, ec0464f2-2c45-4f06-88a0-7b1fd5d8972f, ec12b639-3857-40e2-89b8-d764344bbbf3, ec1bce37-76d2-4f17-b471-9913d0e0f02b, ec1c4445-fac6-42f3-bcf4-2e961899d0f2, ec250d4b-7602-472c-8bad-5913bf2ce703, ec7a7b6b-dfd2-43c8-830c-1a3d7ee73720, eccd8c53-36cc-4aa6-ac75-367ef9a2f236, ecf1e856-88e9-45b7-b24b-a075f00c58ea, ed181100-252d-4d9f-af26-101f0b8ec9bd, ed29c17f-e9fe-4faf-b986-b4040a969812, ed3083be-e22e-49c6-b415-ddd898b4eb20, ed59ada4-a4a5-4006-8672-112c050c17d7, ed776ee4-cf5c-4d9a-9de6-32bdb75e845f, ed7bb004-0927-4535-8e15-05d5a92b6126, ed85ea69-b0cc-4a07-b8f8-1032a1655e55, edaa4293-cb41-48fb-bda5-bc6e3c590c47, edb2aabc-3f5a-4ef9-8349-8ff22f5af3be, edcdeac0-fee7-4a93-8d39-a6a517ffd21c, ede0da13-dbfa-4dc5-ba66-2c66b8f6770b, ede69993-ab33-42fe-8b10-3072d5d7ca9d, edf98e49-1d9d-4088-bd14-bb2ed8a988b1, ee004829-987f-4bf6-853f-53e0d12dcc4e, ee16e75b-b764-40d0-a255-144edafce358, ee68bd86-da1a-4f18-bd22-fe2544741329, eeb8d545-82a0-4667-91f8-fbbe6e6bd21c, eeb9c87a-f1db-4d46-8b29-74a5507a026a, eed5ca37-fd8b-4470-8e57-8ddc5b735cf2, eefd16c9-3b69-42cc-bdf9-9900acea7db0, ef14834f-d5d6-4c24-a11b-805e7ce23741, ef246c45-7f8e-4e4d-9300-0f53797da379, ef7c2b11-c939-4db5-a17a-4d0242bb59d8, efab77c1-4226-462d-8551-ad2e2f84ef62, efc3d680-7642-4ab5-bdfb-dd32554689e9, efc522ba-d977-4a2c-8e7f-8607d5a9b4e5, efd76d2a-2e6f-462a-b48f-af49421a5637, eff082f6-784a-4423-80be-04bfc8c38986, f01a866a-c80d-4eb9-9924-a0c4786560ea, f0305def-1173-45d9-acaf-d652dba81f8c, f07eccc5-6190-495b-b9d0-8714a89519a7, f0b214f9-bb87-4447-9174-5f84cd16be5d, f0bc1602-8e04-492e-8084-f97e619154a3, f101960f-e242-4f1c-b68c-57304394283c, f131ffdf-10a5-4dee-9749-d5d2a93530ea, f1c9416c-9b75-470f-a7d4-eb709c2b94f8, f1dfdddf-cb4f-4016-8ea2-be11f8690f8e, f1efb742-f840-4bdf-a357-6d77cbacdc03, f25da476-e868-4212-96be-b07c27674a4b, f27f6e06-d187-4a49-abf0-4a9623593081, f287d107-e6e1-4e4c-9a8a-a6a1e7ec8243, f292139c-f239-412e-8814-6c98fe7e5291, f295cc5b-f343-4a13-9803-29069dd6d191, f2c37d5e-bd26-466f-b8ac-59d22a3ad963, f34c76e2-d14e-4565-96e1-f301b9d6bdd3, f34ff366-7938-498d-9b91-b6104e0e5313, f350b650-117b-4928-8a2c-880663dba031, f39ceca3-1e63-4011-bf8b-bd31add99096, f3b69e4e-7ac6-4ee4-a329-7f6241e39bd2, f3de2e88-ebfb-41db-9af1-21092859a3fb, f4183841-f7b5-461d-a348-9751d6aa656e, f42b4e80-c9f0-4220-9348-10c453ea1082, f42c5da7-d32f-4b1b-9e77-df5920906ca5, f4426192-04a6-490b-954a-a125b4acfe22, f48bc073-43bb-445d-b242-f0d3f1ae489b, f49065e8-0e7a-4d73-8e85-b13d1f6d4069, f4a0c5af-a02f-49f8-8134-e414b9584297, f4ab12ae-58dd-4cbc-889a-d25616781336, f4c00000-5227-42cb-aec5-30a0148a5853, f4c97cae-f998-44da-9f00-972778cfbf35, f4cbad13-691e-4e22-aff7-7184f9af5a97, f4ddfbc1-719e-48c0-8cf9-7250c2703de7, f4e06974-067f-4575-b902-ccb3ab2ea1a6, f4f4e8ee-48f4-418c-8a15-3eded535b503, f525795d-60dd-424d-86f7-9ef46f9d3c9f, f5471941-975e-4411-aa7f-50358779253d, f59c806a-3598-413e-afcc-aecfe84ff2f3, f5aff3e6-b7c9-457f-87a4-cd55176ef75e, f5b12bd4-0444-43fc-a20e-4b86a4d5f81b, f5b6318e-504d-4228-9bb0-31821010f93c, f5c37329-c6cc-458f-9025-9e7c67df74df, f5ce12e3-f173-497d-a7c9-b1d517d0edb7, f5eaed2e-6d57-4938-b8ab-bfa3e858ee9e, f5ec49bf-4ec3-4d32-a424-b26f33f2c57d, f6198e63-d491-42c5-bcdf-7f10a7a0e63b, f62d6264-4caa-488d-b1e0-2a9d30bb731c, f653e178-9865-449f-a3ff-3e1814312df2, f69c3d7c-c627-48ac-9265-0a6853ef8c75, f6afebf6-9cde-47ab-8109-995825e43e21, f6b81da5-33c5-48bc-bc08-88bd4895efa9, f6b9cd55-b435-4e2d-8b9d-0b8899ded979, f6ca1084-fd5e-4ee0-8800-1980f5c22f83, f6d9c0ca-cc6f-489d-ac32-15896ce99bfe, f6e0cb3c-1a9b-4c7c-be0e-618ae1005a3b, f709f630-5bbb-43da-a987-e97916b3a32f, f7115581-8a64-405d-b5ef-29b9672894c1, f72b3a9d-1052-4756-a0be-bbf73f10cb92, f74f4304-eabe-46a1-8b38-69245d188446, f764802f-e362-40f6-a211-6fdc918f5dd9, f766c3f3-e528-4281-a84f-9b849c03babe, f7793c53-bd71-4d43-9ad5-91e1602875af, f77a1f88-c4fb-4018-a4fc-9be1a4b7eecc, f7b79ed5-a9d5-4ea4-aebf-fd0b0658f68d, f7ded52a-ddcb-4ab4-9d32-553ccc98d210, f8010b77-f697-4335-a14f-4d0a16adfb98, f85d30ba-9c15-4e7d-a776-6a5927f8aeb1, f8625ff5-584b-4741-8df3-774997be976b, f8ee50dc-c4cb-4a8b-b02c-a02332b97b89, f9074e49-1435-479c-b032-67f6a21bf100, f9434a17-48b0-4b43-8598-30e1b66fd68c, f94e93f8-184b-4a30-a62d-8c9e19082178, f9739964-716b-4b96-9144-59cc171696d5, f973d222-cdb4-4c3c-91fc-720266978738, f98755cc-3154-41a8-acf6-7792772d8396, f988f7f7-6e5b-46e7-9279-9aaaadd3047b, f990ed56-4c99-4a31-8cae-6e780e53e8c3, f993bfb9-f589-4f10-ab8f-1064f23efc99, f9a9d6d1-c05a-47b4-89c7-6235a71d4390, f9bde4cb-0b5e-45fa-9210-86b8b471f811, f9cab4dc-ee48-4247-bf3b-59262f8aaf10, f9eb2c5e-b3d0-495c-bce6-d2a1bad08fd0, fa00ec0f-514d-4937-9110-c105e18adab0, fa19fd1b-8dd8-43c7-bf1a-8cc70fc34e1f, fa1af5c3-8060-4f9a-8cd0-579078c0868e, fa31d647-e883-464e-80a3-f0da23f58d42, fa391e82-4012-4ce6-9fb9-4ea974190f40, fa55d11d-696f-4a2b-87d3-efd25c01191c, fa7a4a1a-3c4e-4d7c-b9ae-bb9b63058065, fa7b9008-0246-4573-90a9-92c48a01bcef, fa826b8c-cda5-4376-886a-e9752acd35c7, fab3969f-d0fe-4bda-a3cc-9ec9078ddcee, faca49c4-b7e5-4d2c-922e-ffc0abfb2d20, face1943-94d4-40bd-94ff-bcc0bd403c11, faf4f3f7-22d4-4ba1-b993-218c11aea0cf, fb36800e-b01d-4f94-aeb3-0c12820a49b6, fb4be846-3bf8-4a8f-b747-a4b2cadd8fe9, fb6d46e7-57e6-4a55-80f1-2a56f74c8450, fb8d9b62-7097-4fa8-950e-e8ff629ac3ba, fb9c1401-15ac-49e8-ac4a-39c2a322becc, fb9cfcb8-0196-4d1a-8c8c-b2b4a54ded4d, fb9db24a-849f-458b-9a46-0d3820e60570, fbabeb2e-6168-4b9f-8f3c-a38a782ae5d0, fbc4e8dc-0389-4216-bdc3-1dc21d7a9cb8, fbe1c4ac-c56b-4916-aa22-6924c16f7d09, fbf90350-a101-498e-b408-8d397be82e69, fc0608f7-4060-4c09-90b7-7d886d21fe66, fc1aabc8-c74a-4655-9f70-d41dc7d5d9a9, fcad6b44-d6b4-436b-bc37-9adead98e368, fce7c112-bc25-413f-998a-bb09fb578707, fcf8d3d0-fc03-4b7f-bb33-726333c357cd, fd1bfcea-a89b-499c-b378-73133bbd1dc0, fd3311f2-ab9f-46c4-93b3-557459eac8fc, fd42721d-8e52-403b-a6bb-a3a92b6f1c03, fd5940c7-3435-4253-a981-6ba8b67513f5, fd5e0bff-5f3f-48e9-81ae-9e35937389a9, fe133187-3018-4c62-a21b-247a9aa64171, fe1deca4-9f03-4fd4-8491-b304a0b32428, fe219f63-0ae8-4eca-a355-18a071ec6aa3, fe3f49ae-8ad7-4a50-8ca7-f4551f4c0f02, fe420e96-dead-4ca9-8574-2a0bc2e4b718, fe57d10a-84e5-473e-90ea-c53d755cf00c, fe60fe36-387f-4ccb-8b94-e655d9794743, fe62ce8d-7f75-4af1-b00a-60a773c4c467, fe8020c8-eed1-428d-b663-c518aa8fd02e, fe83ad99-9a00-44f1-9997-e65374217a55, fe879141-cbb5-4f50-93be-7140bbf95541, fe9f3d39-1331-42b6-bff5-92003892c9f6, feb4727d-aed7-4654-81ce-440de5a51367, febf4207-f581-4cd4-8ed7-85267da71794, fef0a505-2c06-4140-be0a-f3bdff963752, fef665d1-458a-4289-a8d4-5dfe32677382, ff1daf6e-f27f-4f14-ab0e-004d06193048, ff2d4bbb-6f35-49e0-bd75-5e091d2b32fa, ff2f98fe-df94-475c-9f17-a2e0e0ea131d, ff3f1adb-60a8-4177-8c1d-b1e52cb53505, ff521b79-b098-43a2-b640-4202d6fa468c, ff5c4642-96c8-4b1a-b876-11580a9ca129, ff5c6b93-0ee9-4e10-9b7b-605e020a6e13, ff73d5f4-f7a5-4e30-b7d4-1e63cde35abb, ffc0ddd6-0a75-459f-b699-1b264a8ce69f, ffddaf7a-39f0-4ff6-a070-46f812d3cd2d, fff248b1-04d6-42f4-89d1-c51ecfbefd70, fffef8ef-b7d2-43b5-afaa-7b521f95db2f, fffff56a-99ec-499c-ab16-a668477b63d2) and `date` <= 2026-08-24 group by `account_id`) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select `account...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select `account...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select `account...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `account...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `account...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(80): Illuminate\\Database\\Query\\Builder->get()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(372): App\\Http\\Controllers\\ReportsController->getAggregatedJournalData(Array, NULL, '2026-08-24', NULL, NULL, NULL, NULL, NULL)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getBalanceSheet(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getBalanceSheet', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getBalanceSheet')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#63 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select `account...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select `account...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select `account...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select `account...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select `account...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select `account...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(80): Illuminate\\Database\\Query\\Builder->get()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/ReportsController.php(372): App\\Http\\Controllers\\ReportsController->getAggregatedJournalData(Array, NULL, '2026-08-24', NULL, NULL, NULL, NULL, NULL)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\ReportsController->getBalanceSheet(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('getBalanceSheet', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\ReportsController), 'getBalanceSheet')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#74 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-24 21:53:30] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-26 11:07:56] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-26 11:07:56] local.ERROR: SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] No route to host (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 423 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#15 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#62 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No route to host at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('423')
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('Z6hPCaMrYHmvat2...')
#25 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#72 {main}
"} 
[2026-08-26 11:09:24] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `personal_access_tokens` where `personal_access_tokens`.`id` = 421 limit 1) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#17 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#64 {main}

[previous exception] [object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct('mysql:host=10.0...', 'junction', Object(SensitiveParameterValue), Array)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(83): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=10.0...', 'junction', '68e?]yQd\\xC2\\xA34~n', Array)
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=10.0...', Array, Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1339): call_user_func(Object(Closure))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1375): Illuminate\\Database\\Connection->getPdo()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(528): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(423): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from `...', Array)
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(983): Illuminate\\Database\\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(962): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(785): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from `...', Array, Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): Illuminate\\Database\\Connection->run('select * from `...', Array, Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2913): Illuminate\\Database\\Connection->select('select * from `...', Array, true)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2902): Illuminate\\Database\\Query\\Builder->runSelect()
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3456): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2901): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(739): Illuminate\\Database\\Query\\Builder->get(Array)
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(723): Illuminate\\Database\\Eloquent\\Builder->getModels(Array)
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(333): Illuminate\\Database\\Eloquent\\Builder->get(Array)
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(449): Illuminate\\Database\\Eloquent\\Builder->first(Array)
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->find('421')
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->forwardCallTo(Object(Illuminate\\Database\\Eloquent\\Builder), 'find', Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call('find', Array)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/PersonalAccessToken.php(66): Illuminate\\Database\\Eloquent\\Model::__callStatic('find', Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Guard.php(67): Laravel\\Sanctum\\PersonalAccessToken::findToken('CAPcAeiTUb86rXM...')
#28 [internal function]: Laravel\\Sanctum\\Guard->__invoke(Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/RequestGuard.php(57): call_user_func(Object(Laravel\\Sanctum\\Guard), Object(Illuminate\\Http\\Request), Object(Illuminate\\Auth\\EloquentUserProvider))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php(56): Illuminate\\Auth\\RequestGuard->user()
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(76): Illuminate\\Auth\\RequestGuard->check()
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(55): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#60 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#61 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#73 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#74 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#75 {main}
"} 
[2026-08-27 12:30:15] local.ERROR: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' (Connection: mysql, SQL: alter table `journals` add index `idx_journals_status_date`(`status`, `date`)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' (Connection: mysql, SQL: alter table `journals` add index `idx_journals_status_date`(`status`, `date`)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table `jo...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('journals', Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/database/migrations/2026_08_17_160925_add_indexes_to_journals_table.php(14): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(501): Illuminate\\Database\\Migrations\\Migration@anonymous->up()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(427): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(783): Illuminate\\Console\\View\\Components\\Task->render('2026_08_17_1609...', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2026_08_17_1609...', Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(189): Illuminate\\Database\\Migrations\\Migrator->runUp('/home/junctionf...', 11, false)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(132): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(641): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(1121): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#32 {main}

[previous exception] [object] (PDOException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:587)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(587): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table `jo...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table `jo...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table `jo...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table `jo...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('journals', Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/database/migrations/2026_08_17_160925_add_indexes_to_journals_table.php(14): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(501): Illuminate\\Database\\Migrations\\Migration@anonymous->up()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(427): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(783): Illuminate\\Console\\View\\Components\\Task->render('2026_08_17_1609...', Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2026_08_17_1609...', Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(189): Illuminate\\Database\\Migrations\\Migrator->runUp('/home/junctionf...', 11, false)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(132): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(641): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(1121): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#34 {main}
"} 
[2026-08-27 12:31:41] local.ERROR: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' (Connection: mysql, SQL: alter table `journals` add index `idx_journals_status_date`(`status`, `date`)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' (Connection: mysql, SQL: alter table `journals` add index `idx_journals_status_date`(`status`, `date`)) at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table `jo...', Array, Object(Closure))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table `jo...', Array, Object(Closure))
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table `jo...')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('journals', Object(Closure))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/database/migrations/2026_08_17_160925_add_indexes_to_journals_table.php(14): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(501): Illuminate\\Database\\Migrations\\Migration@anonymous->up()
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(427): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(783): Illuminate\\Console\\View\\Components\\Task->render('2026_08_17_1609...', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2026_08_17_1609...', Object(Closure))
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(189): Illuminate\\Database\\Migrations\\Migrator->runUp('/home/junctionf...', 11, false)
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(132): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(641): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(1121): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#32 {main}

[previous exception] [object] (PDOException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_journals_status_date' at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php:587)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(587): PDOStatement->execute()
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table `jo...', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table `jo...', Array, Object(Closure))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table `jo...', Array, Object(Closure))
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table `jo...')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('journals', Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/database/migrations/2026_08_17_160925_add_indexes_to_journals_table.php(14): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(501): Illuminate\\Database\\Migrations\\Migration@anonymous->up()
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(427): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(783): Illuminate\\Console\\View\\Components\\Task->render('2026_08_17_1609...', Object(Closure))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(224): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2026_08_17_1609...', Object(Closure))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(189): Illuminate\\Database\\Migrations\\Migrator->runUp('/home/junctionf...', 11, false)
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(132): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(641): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(1121): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#34 {main}
"} 
[2026-08-29 10:50:31] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:50:36] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:50:40] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:50:58] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:51:05] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:51:12] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:51:17] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:51:20] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:51:24] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:51:44] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 10:52:01] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 12:04:11] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 12:04:14] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 12:04:15] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:04:39] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:04:45] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:04:54] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:05:56] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:06:00] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:06:06] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:06:10] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-29 14:06:15] local.ERROR: Class "App\Http\Controllers\UserResource" not found {"userId":"1e5e9fe1-61ef-4697-bd4d-3f42418988e1","exception":"[object] (Error(code: 0): Class \"App\\Http\\Controllers\\UserResource\" not found at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/RoleController.php:85)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\RoleController->syncPermissions(Object(Illuminate\\Http\\Request))
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('syncPermissions', Array)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\RoleController), 'syncPermissions')
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Middleware/RuntimeEnvironmentMiddleware.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\RuntimeEnvironmentMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#55 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#56 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#57 {main}
"} 
[2026-08-31 14:32:32] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#55 {main}
"} 
[2026-08-31 14:32:33] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#55 {main}
"} 
[2026-09-02 17:25:57] local.ERROR: Attempt to read property "company_id" on null {"exception":"[object] (ErrorException(code: 0): Attempt to read property \"company_id\" on null at /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php:31)
[stacktrace]
#0 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(255): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Attempt to read...', '/home/junctionf...', 31)
#1 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/app/Http/Controllers/DashboardController.php(31): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Attempt to read...', '/home/junctionf...', 31)
#2 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DashboardController->dashboard(Object(Illuminate\\Http\\Request))
#3 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('dashboard', Array)
#4 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DashboardController), 'dashboard')
#5 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#6 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#7 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#8 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#9 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#10 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#11 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(125): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#12 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure))
#13 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api')
#14 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request))
#16 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#18 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#19 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#20 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#21 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#22 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#23 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#24 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(165): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->Laravel\\Sanctum\\Http\\Middleware\\{closure}(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php(24): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#29 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#32 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#33 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#34 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#35 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#36 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#37 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#42 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#53 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#54 /home/junctionforex/public_html/fxmate.junctionforex.co.ke/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#55 {main}
"} 
